Changeset 27780


Ignore:
Timestamp:
03/16/14 19:08:53 (5 years ago)
Author:
Miklfe
Message:

Compatible avec Smilies Support

Location:
extensions/Slide
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/Slide/js/plugin/SlideEasyCaptcha.js

    r27566 r27780  
    77 */ 
    88  
    9  
    10 /*function _ECaptcha(){ 
    11 var $layerShow  = $('body').data('layerShow'), 
    12         $ele                    = $('#the_page', $layerShow), 
    13                 $EC_opt                 = $ele.data('slideec'), 
    14                 $bd1                    = $EC_opt.activate_on.challenge; 
    15  
    16                 console.log($bd1); 
    17  
    18                          
    19 }*/ 
    20  
    21  
    22  
    239function _ECaptcha(){ 
    2410        var $layerShow  = $('body').data('layerShow'); 
  • extensions/Slide/js/plugin/SlideGThumb.js

    r27566 r27780  
    77 */ 
    88  
    9 function _MyPiwiShop(){ 
     9function _GThumb(){ 
    1010        var $layerShow  = $('body').data('layerShow'); 
    1111        if($('#the_page', $layerShow).hasClass('GThumb')) { 
  • extensions/Slide/js/plugin/SlideMyPiwiShop.js

    r27741 r27780  
    22 * SlideMyPiwiShop - v1.0 - 01-01-2014 
    33 * plugin for Slide and GThumb+ 
    4  * Original by P@t for GThumb+ : http://fr.piwigo.org/ext/extension_view.php?eid=591 
     4 * Original by Mikfe for MyPiwiShop : http://fr.piwigo.org/ext/extension_view.php?eid=733 
    55 * Modified by Miklfe : http://piwitheme.fr/ 
    66 * 
  • extensions/Slide/js/slide.js

    r27741 r27780  
    315315                        if($('body').hasClass('MyPiwiShop')||$('body').hasClass('MyPiwiShopReady')) { 
    316316                                _MyPiwiShop() 
     317                        }; 
     318                        if($('body').hasClass('SmiliesSupport')||$('body').hasClass('SmiliesSupportReady')) { 
     319                                _SmiliesSupport() 
    317320                        }; 
    318321 
  • extensions/Slide/local_head.tpl

    r27566 r27780  
    33{combine_script id='menu' load='footer' require='jquery' path='themes/Slide/js/menu.js'} 
    44 
    5 {if not empty($pluginActive)}{foreach from=$pluginActive item=foo}{if $foo == 'GThumb'}{combine_script id='slideGT' load='footer' require='jquery' path='themes/Slide/js/plugin/SlideGThumb.js'}{/if}{/foreach}{/if} 
    6 {if not empty($pluginActive)}{foreach from=$pluginActive item=foo}{if $foo == 'lightbox'}{combine_script id='slideLB' load='footer' require='jquery' path='themes/Slide/js/plugin/SlideLightbox.js'}{/if}{/foreach}{/if} 
    7 {if not empty($pluginActive)}{foreach from=$pluginActive item=foo}{if $foo == 'EasyCaptcha'}{combine_script id='slideEC' load='footer' require='jquery' path='themes/Slide/js/plugin/SlideEasyCaptcha.js'}{/if}{/foreach}{/if} 
    8 {if not empty($pluginActive)}{foreach from=$pluginActive item=foo}{if $foo == 'MyPiwiShop'}{combine_script id='slidemps' load='footer' require='jquery' path='themes/Slide/js/plugin/SlideMyPiwiShop.js'}{/if}{/foreach}{/if} 
     5{if not empty($pluginActive)} 
     6{foreach from=$pluginActive item=foo}{if $foo == 'GThumb'}{combine_script id='slideGT' load='footer' require='jquery' path='themes/Slide/js/plugin/SlideGThumb.js'}{/if}{/foreach} 
     7{foreach from=$pluginActive item=foo}{if $foo == 'lightbox'}{combine_script id='slideLB' load='footer' require='jquery' path='themes/Slide/js/plugin/SlideLightbox.js'}{/if}{/foreach} 
     8{foreach from=$pluginActive item=foo}{if $foo == 'EasyCaptcha'}{combine_script id='slideEC' load='footer' require='jquery' path='themes/Slide/js/plugin/SlideEasyCaptcha.js'}{/if}{/foreach} 
     9{foreach from=$pluginActive item=foo}{if $foo == 'MyPiwiShop'}{combine_script id='slidemps' load='footer' require='jquery' path='themes/Slide/js/plugin/SlideMyPiwiShop.js'}{/if}{/foreach} 
     10{foreach from=$pluginActive item=foo} 
     11{if $foo == 'SmiliesSupport'} 
     12{combine_script id='slideSmS' load='footer' require='jquery' path='themes/Slide/js/plugin/SlideSmiliesSupport.js'} 
     13{combine_css id='markitup' order=10 path='plugins/SmiliesSupport/template/markitup/style.markitup.css'} 
     14{/if}{/foreach} 
     15{/if} 
    916 
    1017{combine_script id='slide' load='footer' require='jquery' path='themes/Slide/js/slide.js'} 
  • extensions/Slide/template/header.tpl

    r27566 r27780  
    5959<body id="{$BODY_ID}" {if not empty($pluginActive)}class="{foreach from=$pluginActive item=foo}{$foo} {/foreach}"{/if}> 
    6060 
    61 <div id="the_page" class="scrollpane {$BODY_ID} {if isset ($GThumb)}GThumb {/if}{if isset ($EASYCAPTCHA)}{if $EASYCAPTCHA.challenge == 'drag'}EC_drag {/if}{if $EASYCAPTCHA.challenge == 'tictac'}EC_tictac {/if}{/if}" {if isset ($lightbox_data)}data-lightbox={$lightbox_data}{/if}  {if isset ($GThumb)}data-slidegthumb={$slideGThumb} {if isset ($GThumb_big)}{assign var=gt_size value=$GThumb_big->get_size()}data-gth={$gt_size[1]} data-gtw={$gt_size[0]} data-gturl={$GThumb_big->get_url()} data-gtid={$GThumb_big->src_image->id}{/if}{/if}{if isset ($slideEasyCaptcha)}data-slideec={$slideEasyCaptcha}{/if} > 
     61<div id="the_page" class="scrollpane {$BODY_ID} {if isset ($GThumb)}GThumb {/if}{if isset ($EASYCAPTCHA)}{if $EASYCAPTCHA.challenge == 'drag'}EC_drag {/if}{if $EASYCAPTCHA.challenge == 'tictac'}EC_tictac {/if}{/if}" {if isset ($lightbox_data)}data-lightbox={$lightbox_data}{/if}  {if isset ($GThumb)}data-slidegthumb={$slideGThumb} {if isset ($GThumb_big)}{assign var=gt_size value=$GThumb_big->get_size()}data-gth={$gt_size[1]} data-gtw={$gt_size[0]} data-gturl={$GThumb_big->get_url()} data-gtid={$GThumb_big->src_image->id}{/if}{/if}{if isset ($slideEasyCaptcha)}data-slideec={$slideEasyCaptcha}{/if}> 
    6262{if not empty($header_msgs)} 
    6363<div class="header_msgs"> 
     
    7979 
    8080 
     81 
     82 
     83 
     84 
     85 
     86 
     87 
     88 
     89 
     90 
     91 
     92 
     93 
     94 
     95 
     96 
  • extensions/Slide/template/picture.tpl

    r27402 r27780  
    22{if isset($MENUBAR)}{$MENUBAR}{/if} 
    33 
    4 <div id="content"{if isset($MENUBAR)} class="contentWithMenu"{/if}> 
     4<div id="content"{if isset($MENUBAR)} class="contentWithMenu"{/if}   {if isset ($SMILIES)}data-smiliessupportr={$SMILIES.representant} data-smiliessupporttid={$SMILIES.textarea_id}{/if} > 
    55{if isset($errors) or not empty($infos)} 
    66{include file='infos_errors.tpl'} 
Note: See TracChangeset for help on using the changeset viewer.