Changeset 1316:751f3031bcc7
- Timestamp:
- 08/09/13 11:14:13 (11 years ago)
- Branch:
- twig
- Location:
- inc/admin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/class.dc.admincontext.php
r1156 r1316 421 421 'action' => 'switchblog'))) 422 422 ->setup(); 423 # Switch blog form 424 $sform = new dcForm($this->core,'search-menu','search.php','GET'); 425 $sform 426 ->addField( 427 new dcFieldText('q','',array( 428 'maxlength' => 255, 429 'label' => __('Search:')))) 430 ->addField( 431 new dcFieldSubmit('ok',__('OK'),array( 432 ))) 433 ->setup(); 423 434 } 424 435 -
inc/admin/default-templates/auth.html.twig
r1147 r1316 9 9 <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> 10 10 <meta name="GOOGLEBOT" content="NOSNIPPET" /> 11 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 11 12 <title>{{vendor_name}}</title> 12 13 <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> … … 63 64 <p>{{ form_field('user_id') }}</p> 64 65 <p>{{ form_field('user_pwd') }}</p> 65 <p>{{ form_field('user_remenber' ) }}</p>66 <p>{{ form_field('auth_login' )}}</p>66 <p>{{ form_field('user_remenber',{},{'nestedlabel':true, 'labelclass':'classic'}) }}</p> 67 <p>{{ form_field('auth_login',{"class":"add button"}) }}</p> 67 68 {% if safe_mode %} 68 69 </fieldset> -
inc/admin/default-templates/forms/form_layout.html.twig
r1154 r1316 51 51 {% set nestedlabel = true %} 52 52 {% set labelclass = "classic" %} 53 {% set descafter = true %} 53 54 {{ block('field_input') }} 54 {#{% spaceless %}55 56 {% if label is not empty %}57 <label for="{{name}}" class="classic">58 {% endif %}59 <input type="checkbox" {{ block('field_attr') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} />60 {% if label is not empty %}61 {{ label }}</label>62 {% endif %}63 {% endspaceless %}#}64 55 {% endblock field_checkbox %} 65 56 66 57 {% block field_attr %} 67 58 {% spaceless %} 68 id="{{id}}" name="{{name}}" {% if read_only %} disabled="disabled"{% endif %}{% if required %} required="required"{% endif %}{% if max _length %} maxlength="{{ max_length }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %}59 id="{{id}}" name="{{name}}" {% if read_only %} disabled="disabled"{% endif %}{% if required %} required="required"{% endif %}{% if maxlength %} maxlength="{{ maxlength }}"{% endif %}{% if pattern %} pattern="{{ pattern }}"{% endif %} 69 60 {% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %} 70 61 {% endspaceless %} … … 112 103 {% set labelclass = labelclass ~ " required" %} 113 104 {% endif %} 114 <label for="{{name}}" {% if labelclass is not empty %}class="{{labelclass}}"{% endif %} {% if required is not empty %}<abbr title="{{__('Required field')}}">*</abbr>{% else %}>{% endif %} {{label}} 105 <label for="{{name}}" {% if labelclass is not empty %}class="{{labelclass}}"{% endif %}>{% if required is not empty %}<abbr title="{{__('Required field')}}">*</abbr>{% endif %} 106 107 {% if descafter is empty %} {{label}} {% endif %} 115 108 {% if nestedlabel is empty %}</label> {% endif %} 116 109 {% endif %} … … 121 114 {% spaceless %} 122 115 {% if label is not empty %} 116 {% if descafter %} {{label}} {% endif %} 123 117 {% if nestedlabel is not empty %}</label>{% endif %} 124 118 {% endif %} -
inc/admin/default-templates/layout.html.twig
r1147 r1316 8 8 <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> 9 9 <meta name="GOOGLEBOT" content="NOSNIPPET" /> 10 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 10 11 <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> 11 12 {% if rtl is not empty %} … … 29 30 <div id="info-box1"> 30 31 {% form 'switchblog_menu' %} 32 31 33 {% if blog_count > 1 and blog_count < 20 %} 32 {{ form_field('switchblog',{},{' nestedlabel' : true, labelclass:'classic'}) }}34 {{ form_field('switchblog',{},{'labelclass':'classic nomobile'}) }} 33 35 <noscript>{{ form_field('switchblog_submit') }}</noscript> 34 36 {% else %} … … 36 38 {% if blogs is not empty %} - <a href="blogs.php">{{__('Change blog')}}</a>{% endif %} 37 39 {% endif %} 38 < a href="{{current_blog.url}}" onclick="window.open(this.href);return false;" title="{{__('Go to site')}} ({{__('new window')}})">{{__('Go to site')}} <img src="{{theme_url}}images/outgoing.png" alt="" /></a>40 <p class="nomobile"><a href="{{current_blog.url}}" onclick="window.open(this.href);return false;" title="{{__('Go to site')}} ({{__('new window')}})">{{__('Go to site')}} <img src="{{theme_url}}images/outgoing.png" alt="" /></a></p> 39 41 {% endform %} 40 42 </div> 41 43 <div id="info-box2"> 42 <a {%if current_page == 'index' %}class="active" {% endif %}href="index.php">{{__('My dashboard')}}</a><span> | </span>43 <a {%if current_page == 'preferences' %}class="active" {% endif %}href="preferences.php">{{__('My preferences')}}</a><span> | </span>44 <a class="smallscreen{%if current_page == 'index' %} active" {% endif %}" href="index.php">{{__('My dashboard')}}</a><span class="smallscreen"> | </span> 45 <a class="smallscreen{%if current_page == 'preferences' %} active" {% endif %}" href="preferences.php">{{__('My preferences')}}</a><span class="smallscreen"> | </span> 44 46 <a href="index.php?logout=1" class="logout">{{__('Logout %s')|format(current_user.id)}} <img src="{{theme_url}}images/logout.png" alt="" /></a> 45 47 </div> … … 96 98 <div id="main-menu"> 97 99 {% block menus %} 100 {% form 'search-menu' with {'id':'search-menu'} %} 101 <p> {{ form_field('q',{'size':30},{'labelclass':'hidden'}) }} 102 {{ form_field('ok') }} 103 </p> 104 {% endform %} 98 105 {% for menu in menus %} 99 106 {% if menu.items is not empty %} … … 122 129 </div> 123 130 </div> 124 { % block debug %}131 {#{% block debug %} 125 132 {% set debug_info = debug_info() %} 126 133 {% if debug_info is not empty %} … … 138 145 </div></div> 139 146 {% endif %} 140 {% endblock %} 147 {% endblock %}#} 141 148 </body> 142 149 </html> -
inc/admin/lib.dc.page.php
r1315 r1316 188 188 189 189 self::jsVar('dotclear.msg.help', 190 __('help')). 190 __('Help about this page')). 191 self::jsVar('dotclear.msg.help_hide', 192 __('Hide')). 191 193 self::jsVar('dotclear.msg.no_selection', 192 194 __('no selection')). -
inc/admin/prepend.php
r1315 r1316 284 284 # Set menu titles 285 285 286 $_menu['System']->title = __('System ');286 $_menu['System']->title = __('System settings'); 287 287 $_menu['Blog']->title = __('Blog'); 288 $_menu['Plugins']->title = __(' Plugins');288 $_menu['Plugins']->title = __('Additional plugins'); 289 289 if (!$user_ui_nofavmenu) 290 290 $_menu['Favorites']->title = __('My favorites');
Note: See TracChangeset
for help on using the changeset viewer.