1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

美化 Add clock to footer

Discussion in 'XenForo中文版' started by admin, 2012-02-23.

  1. admin

    admin 管理员 Staff Member

    Joined:
    2011-11-01
    Messages:
    3,671
    Likes Received:
    2,425
    Simply put, this adds the date and time to your footer. Clicking it will take you to the Preferences page, where you can change the time zone.
    (Note: I'm hoping to adjust it to make it to show just the time once I figure out that code.)

    To install, go to <ul class="footerLinks"> in the "footer" template, and add the following code before the </ul> tag.
    Code:
    <li><a href="{xen:link 'account/preferences'}"><div class="time muted">{xen:datetime $datetime, 'absolute'}</div></a></li>
    Then...you're done
     
Loading...