Dotclear

Changeset 1316:751f3031bcc7


Ignore:
Timestamp:
08/09/13 11:14:13 (11 years ago)
Author:
Dsls
Branch:
twig
Message:

Manual merge for remaining little things from default, need to cope with this 3px difference in search box...
Btw, fixes checkboxes problems

Location:
inc/admin
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/class.dc.admincontext.php

    r1156 r1316  
    421421                    'action' => 'switchblog'))) 
    422422               ->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(); 
    423434     } 
    424435      
  • inc/admin/default-templates/auth.html.twig

    r1147 r1316  
    99  <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> 
    1010  <meta name="GOOGLEBOT" content="NOSNIPPET" /> 
     11  <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
    1112  <title>{{vendor_name}}</title> 
    1213  <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> 
     
    6364               <p>{{ form_field('user_id') }}</p> 
    6465               <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> 
    6768     {% if safe_mode %} 
    6869          </fieldset> 
  • inc/admin/default-templates/forms/form_layout.html.twig

    r1154 r1316  
    5151{% set nestedlabel = true %} 
    5252{% set labelclass = "classic" %} 
     53{% set descafter = true %} 
    5354    {{ 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 %}#} 
    6455{% endblock field_checkbox %} 
    6556 
    6657{% block field_attr %} 
    6758{% 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 %} 
    6960    {% for attrname,attrvalue in attr %}{{attrname}}="{{attrvalue}}" {% endfor %} 
    7061{% endspaceless %} 
     
    112103            {% set labelclass = labelclass ~ " required" %} 
    113104        {% 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 %} 
    115108        {% if nestedlabel is empty %}</label> {% endif %} 
    116109    {% endif %} 
     
    121114{% spaceless %} 
    122115    {% if label is not empty %} 
     116          {% if descafter %} {{label}} {% endif %} 
    123117        {% if nestedlabel is not empty %}</label>{% endif %} 
    124118    {% endif %} 
  • inc/admin/default-templates/layout.html.twig

    r1147 r1316  
    88     <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> 
    99     <meta name="GOOGLEBOT" content="NOSNIPPET" /> 
     10     <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
    1011     <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> 
    1112     {% if rtl is not empty %} 
     
    2930               <div id="info-box1"> 
    3031                 {% form 'switchblog_menu' %} 
     32                     
    3133                    {% if blog_count > 1 and blog_count < 20 %} 
    32                          {{ form_field('switchblog',{},{'nestedlabel' : true, labelclass:'classic'}) }} 
     34                         {{ form_field('switchblog',{},{'labelclass':'classic nomobile'}) }} 
    3335                         <noscript>{{ form_field('switchblog_submit') }}</noscript> 
    3436                    {% else %} 
     
    3638                         {% if blogs is not empty %} - <a href="blogs.php">{{__('Change blog')}}</a>{% endif %} 
    3739                    {% 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> 
    3941                 {% endform %} 
    4042               </div> 
    4143               <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> 
    4446                    <a href="index.php?logout=1" class="logout">{{__('Logout %s')|format(current_user.id)}} <img src="{{theme_url}}images/logout.png" alt="" /></a> 
    4547               </div> 
     
    9698          <div id="main-menu"> 
    9799               {% 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 %} 
    98105               {% for menu in menus %} 
    99106               {% if menu.items is not empty %} 
     
    122129          </div> 
    123130     </div> 
    124      {% block debug %} 
     131     {#{% block debug %} 
    125132       {% set debug_info = debug_info() %} 
    126133       {% if debug_info is not empty %} 
     
    138145          </div></div> 
    139146       {% endif %} 
    140      {% endblock %} 
     147     {% endblock %}#} 
    141148     </body> 
    142149</html> 
  • inc/admin/lib.dc.page.php

    r1315 r1316  
    188188           
    189189          self::jsVar('dotclear.msg.help', 
    190                __('help')). 
     190               __('Help about this page')). 
     191          self::jsVar('dotclear.msg.help_hide', 
     192               __('Hide')). 
    191193          self::jsVar('dotclear.msg.no_selection', 
    192194               __('no selection')). 
  • inc/admin/prepend.php

    r1315 r1316  
    284284     # Set menu titles 
    285285      
    286      $_menu['System']->title = __('System'); 
     286     $_menu['System']->title = __('System settings'); 
    287287     $_menu['Blog']->title = __('Blog'); 
    288      $_menu['Plugins']->title = __('Plugins'); 
     288     $_menu['Plugins']->title = __('Additional plugins'); 
    289289     if (!$user_ui_nofavmenu) 
    290290          $_menu['Favorites']->title = __('My favorites'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map