Ecmall Announcement Pendant Analysis-the notation for this pendant has been updated.

Source: Internet
Author: User

Ecmall 's homepage is basically implemented by the form of a pendant. Ecmall all the pendant programs are under the External\widgets file. Ecmall Home Bulletin Plug-in, is the notice directory inside.

Analysis of the file inside, config.html is some script parameters, and widget.info.php is a description of the pendant. The most important is main.widget.php and widget.html where widget.html is the template for the pendant, and it is also the standard Ecmall Smarty label.

Widget.html, there is a section of code below.

<ul class= "News_list" >

<!--{foreach from= $widget _data.notices item=article}-->

<li>{$article. add_time|date:m-d} <a href= "index.php?app=article&amp;act=view&amp;article_id={$ ARTICLE.ARTICLE_ID} "title=" {$article. Title|escape} ">{$article .title|escape}</a></li>

<!--{/foreach}-->

</ul>

He is used to display information about the display of the pendant.

{$article. add_time|date:m-d} is the time in which the article was published. {$article. Title|escape} is the title name of the article.

If you want to modify them, you need to adjust these local variables.

Ecmall Announcement Pendant Analysis (RPM)--This pendant has been written in an updated notation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.