?? general_settings.twig
字號:
{% extends "layout.twig" %}{% block title %}${ "Site Configuration" | translate }{% endblock %}{% block content %} <h1>${ "Site Configuration" | translate }</h1> <form id="general_settings" class="split" action="{% admin "general_settings" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data"> <fieldset> <p> <label for="name">${ "Site Name" | translate }</label> <input class="text" type="text" name="name" value="${ site.name | escape }" id="name" /> </p> <p> <label for="description">${ "Description" | translate }</label> <textarea name="description" rows="2" cols="40">${ site.description | escape(false, false) }</textarea> </p> <p> <label for="chyrp_url">${ "Chyrp URL" | translate }</label> <input class="text" type="text" name="chyrp_url" value="${ site.chyrp_url | escape }" id="chyrp_url" /> </p> <p> <label for="url"> ${ "Alternate URL" | translate } <span class="sub">${ "(optional)" | translate }</span> </label> <input class="text" type="text" name="url" value="{% if site.url != site.chyrp_url %}${ site.url | escape }{% endif %}" id="url" /> <a href="{% admin "help&id=alternate_urls" %}" class="help emblem"><img src="images/icons/help.png" alt="help" /></a> <small> ${ "Enter an alternate address here if you want your homepage URL to be different from the URL where Chyrp is normally available." | translate } </small> </p> <p> <label for="email">${ "Contact E-Mail Address" | translate }</label> <input class="text" type="text" name="email" value="${ site.email | escape }" id="email" /> </p> <p> <label for="timezone">${ "What time is it?" | translate }</label> <select name="timezone" id="timezone"> {% for zone in timezones %} <option value="$zone.name"${ zone.name | option_selected(site.timezone) }>${ zone.now | strftime("%I:%M %p on %B %e, %Y" | translate) } (GMT{% if zone.offset >= 0 %}+{% endif %}$zone.offset)</option> {% endfor %} </select> </p> <p> <label for="locale">${ "Language" | translate }</label> <select name="locale" id="locale"> {% for locale in locales %} <option value="$locale.code"${ locale.code | option_selected(site.locale) }>$locale.name</option> {% endfor %} <option value="en_US"${ "en_US" | option_selected(site.locale) }>English (US)</option> </select> </p> <p class="buttons"> <button type="submit" class="yay"><img src="images/icons/success.png" alt="success" />${ "Update" | translate }</button> </p> <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" /> </fieldset> </form>{% endblock %}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -