Ignore:
Timestamp:
Oct 4, 2013, 10:09:05 PM (11 years ago)
Author:
mistic100
Message:

add light mode: no script loaded
tests in migration task
add an id to the div on picture page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SocialButtons/template/admin.tpl

    r23201 r24757  
    33{html_style}{literal}
    44.socialbutt.disabled thead img {
     5  -webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */
    56  filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='saturate' values='0'/></filter></svg>#grayscale"); /* Firefox 10+ */
    67  filter: gray; /* IE6-9 */
    7   -webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */
    88}
    9 {/literal}{/html_style}
     9{/literal}
     10{if $light}
     11.not-light {ldelim} display:none; }
     12{/if}
     13{/html_style}
    1014
    1115{footer_script}{literal}
     
    2327  }
    2428});
     29
     30jQuery("input#light_mode").on('change', function() {
     31  if ($(this).is(":checked")) {
     32    $('.not-light').hide();
     33  }
     34  else {
     35    $('.not-light').show();
     36  }
     37});
     38
     39jQuery(".showInfo").tipTip({
     40  delay: 0,
     41  fadeIn: 200,
     42  fadeOut: 200,
     43  maxWidth: '300px',
     44  defaultPosition: 'bottom'
     45});
    2546{/literal}{/footer_script}
    2647
     
    5475    </td>
    5576  </tr>
     77  <tr class="property">
     78    <td>
     79      <label for="light_mode">{'Light mode'|@translate}</label>
     80    </td>
     81    <td>
     82      <input type="checkbox" id="light_mode" name="light" {if $light}checked="checked"{/if}/>
     83      <a class="showInfo" title="{'When light mode is activated no external script is loaded, it <b>speeds up the load of the page and disables user tracking</b> but also disables annotations and in-page popups.'|@translate}">i</a>
     84    </td>
     85  </tr>
    5686</table>
    5787</div>
     
    87117      </label></td>
    88118    </tr>
    89     <tr class="property">
     119    <tr class="property not-light">
    90120      <td>
    91121        {'Annotation'|@translate}
     
    145175      </label></td>
    146176    </tr>
    147     <tr class="property">
     177    <tr class="property not-light">
    148178      <td>
    149179        {'Annotation'|@translate}
     
    180210      </td>
    181211    </tr>
    182     <tr class="property">
     212    <tr class="property not-light">
    183213      <td>
    184214        {'Annotation'|@translate}
     
    221251      </label></td>
    222252    </tr>
    223     <tr class="property">
     253    <tr class="property not-light">
    224254      <td>
    225255        {'Annotation'|@translate}
Note: See TracChangeset for help on using the changeset viewer.