Hongmu Notes
Home Program Notes After calling the smart tag in Empire CMS, how to output the new logo behind the title?
Program Notes Empire cms

After calling the smart tag in Empire CMS, how to output the new logo behind the title?

After calling the smart tag in Empire CMS, how to output the new logo behind the title?

1. CSS code:

.newpage::after {
    content: "新";               /* 显示的文字 */
    display: inline-block;
    color: #ff0000; 
    font-weight: bold;           
    font-size: 14px;             
    margin-left: 8px;            
    animation: gentleJump 1s ease-in-out infinite; 
}

@keyframes gentleJump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); } 
    100% { transform: translateY(0); }
}

2.php code: determines and outputs the value of the `class` attribute.

<?php if (time() - intval($bqr['newstime']) <= 259200){echo 'newpage';}?>

3. Complete Dynamic Tag invocation code.

[e:loop={1,8,0,0}]
<li>
<a class="<?php if (time() - intval($bqr['newstime']) <= 259200){echo 'newpage';}?>" href="<?=$bqsr['titleurl']?>"  title="$bqr['title']"><?=esub($bqr['title'],15,"...")?></a>
<span class="carousel-date"><?=date("Y-m-d",$bqr[newstime])?></span>
</li>
[/e:loop]

Display effect:

20260304115453596-image

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Empire CMS database statement & SQL statement format

Empire CMS database statement & SQL statement format Program Notes Empire cms

Introduction to Imperial CMS extended SQL program writing, basic examples of Imperial CMS database statements & SQL statement formats: Note: The following examples are based on placing PHP files in the system root directory. Example 1: Connect to MYSQL program. (a.php)<?php require('e/class/connect.php'); //Introduce database configuration files and public function files requ…
👁 351
Empire CMS obtains the system COOKIE variable function getcvar()

Empire CMS obtains the system COOKIE variable function getcvar() Program Notes Empire cms

Get the system COOKIE variable function syntax: getcvar($var,$ecms) Description: $var: is the variable name $ecms: 0 is to set the foreground COOKIE variable, 1 is to set the background COOKIE variable. This parameter can be omitted and defaults to 0. Usage example: getcvar('mlusername'), get the user name of the front-end login member getcvar('loginu...
👁 294
Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3748

Recommended reading

(Adaptive Mobile Version) Responsive website template for early childhood education institutions (primary and secondary schools) – PBootCMS template; Download HTML5 educational training institution website source code – 0483

(Adaptive Mobile Version) Responsive website template for early childhood education institutions (primary and secondary schools) – PBootCMS template; Download HTML5 educational training institution website source code – 0483 Practical Collection pbootcms Template

This PbootCMS template features a blue color scheme and is ideal for the fiberglass products and environmental protection equipment industries; it supports both PC and WAP devices. Its clean and professional design effectively showcases the application scenarios and performance advantages of FRP products, helping composite materials or environmental protection equipment companies demonstrate their product capabilities online and attract customers. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extract...
👁 68
Fresh Fruit Picking Garden Rural Tourism Website Template 0459

Fresh Fruit Picking Garden Rural Tourism Website Template 0459 Practical Collection Yiyou template

An eYouCMS website template designed for fresh fruit picking farms and rural agritourism businesses. Its fresh and natural design effectively showcases the orchard environment, picking experiences, rural characteristics, and leisure tourism services. This template helps agritourism businesses attract online visitors and enhance their brand awareness. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for eYouCMS | eYouCMS (...
👁 53
(Adaptive Mobile Version) Advertising Agency Website Template; Advertising Design Agency Website Source Code – 1050

(Adaptive Mobile Version) Advertising Agency Website Template; Advertising Design Agency Website Source Code – 1050 Practical Collection pbootcms Template

A PbootCMS website template designed for advertising and cultural agencies as well as advertising design firms, supporting mobile access. Its creative and visually appealing design makes it ideal for these agencies to showcase their brand strategy, design works, and case studies. This template helps advertising agencies demonstrate their professional expertise online and attract brand clients. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.c...
👁 49
Responsive skincare and beauty cosmetics website template – 1061

Responsive skincare and beauty cosmetics website template – 1061 Practical Collection Yiyou template

An eYou CMS responsive website template designed for the skincare, beauty, and cosmetics industries. Its stylish and sophisticated design is perfect for showcasing skincare products, cosmetic collections, beauty services, and brand stories. This template helps beauty brands showcase their products online and attract female consumers. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for eYou CMS...
👁 35
Empire CMS – Video Membership Playback Software Download | News Portal | Full-Website Responsive Template 045

Empire CMS – Video Membership Playback Software Download | News Portal | Full-Website Responsive Template 045 Practical Collection empire template

Built using the latest version of the EmpireCMS core, this solution is secure, reliable, and offers superior performance. All operations are performed via the backend – no coding knowledge is required; you can simply configure the homepage display settings! The default SEO settings are already configured, so no additional template adjustments are needed. The list display logic is as follows: when a title image is provided, if the content contains three or more images, the system automatically extracts these content images to display them as a multi-image gallery; if there are fewer than three images, only the title image is displayed. If no title image is specified...
👁 320