Plugin Directory

Changeset 789143


Ignore:
Timestamp:
10/17/2013 07:16:22 AM (12 years ago)
Author:
wp-maverick
Message:

Tagged v0.5.1

Location:
easy-shortcode-manager/tags/0.5.1
Files:
7 copied

Legend:

Unmodified
Added
Removed
  • easy-shortcode-manager/tags/0.5.1/README.txt

    r777725 r789143  
    4949== Changelog ==
    5050
     51= 0.5.1 =
     52* Bug fix: To resolve a conflict with MailPoet plugin (Formerly Wysija), ESM is not loaded anymore on MailPoet admin pages
     53* Bug fix: Removed abbr attributes on td elements for table_esm shortcode HTML output
     54
    5155= 0.5 =
    5256
  • easy-shortcode-manager/tags/0.5.1/classes/class.lib.shortcodes.mba.php

    r777725 r789143  
    11<?php
    22
    3 /*-----------------------------------------------------------------------------------------------------//   
    4       Sprite_image : structure de cadre avec div prédéfinie pour insertion de sprite                 
     3/*-----------------------------------------------------------------------------------------------------//
     4      Sprite_image : structure de cadre avec div prédéfinie pour insertion de sprite
    55-------------------------------------------------------------------------------------------------------*/
    66    function grande_image_deco_esm($atts,$content){
     
    1313    add_shortcode('sprite_esm', 'grande_image_deco_esm');
    1414
    15 /*-----------------------------------------------------------------------------------------------------//   
    16       Info_bulle : structure pour affichage d'info bulle au survol de 'content'             
     15/*-----------------------------------------------------------------------------------------------------//
     16      Info_bulle : structure pour affichage d'info bulle au survol de 'content'
    1717-------------------------------------------------------------------------------------------------------*/
    1818
    1919    function tooltip_esm($atts,$content){
    20         extract( shortcode_atts( 
     20        extract( shortcode_atts(
    2121                    array(  'content_bulle' => 'Contenu de l\'info bulle',
    2222                        'position_bulle' => 'top',
     
    3434        $content = "<div class='content-info-bulle ".$class."' >". do_shortcode($content)."</div>";
    3535        $div_content_bulle_hidden = "<div class='div-content-bulle-hidden' style ='display:none;'>".$content_bulle."</div>";
    36     $div_position_bulle_hidden = "<div class='div-info-bulle-hidden' style ='display:none;'>".$position_bulle.'/'.$colorbk.'/'.$color."</div>";   
     36    $div_position_bulle_hidden = "<div class='div-info-bulle-hidden' style ='display:none;'>".$position_bulle.'/'.$colorbk.'/'.$color."</div>";
    3737
    3838        $output = $content.''.$div_content_bulle_hidden.''.$div_position_bulle_hidden;
     
    4343    add_shortcode('tooltip_esm', 'tooltip_esm');
    4444
    45 /*-----------------------------------------------------------------------------------------------------//   
    46       Table : tableau avec initialisation de class CSS       
     45/*-----------------------------------------------------------------------------------------------------//
     46      Table : tableau avec initialisation de class CSS
    4747-------------------------------------------------------------------------------------------------------*/
    4848
    4949  function table_esm ($atts,$content=null){
    50                    extract( shortcode_atts( 
     50                   extract( shortcode_atts(
    5151                        array(  'caption' => '',
    5252                                'th' => '',
     
    6262
    6363                              ),$atts ) );
    64          
    65       $tab_th      = explode('|',$th);
     64
     65      $tab_th   = explode('|',$th);
    6666      $tab_td_1 = explode('|',$l1);
    6767      $tab_td_2 = explode('|',$l2);
     
    7272      $tab_td_7 = explode('|',$l7);
    7373      $tab_td_8 = explode('|',$l8);
    74      
     74
    7575      $cpt_th = 0;
    7676      $output = '';
     
    9797        foreach($tab_td_1 as $td1){
    9898            if(trim($td1) !=""){
    99               $output .= "<td abbr='".$td1."'>".$td1."</td>";
     99              $output .= "<td>".$td1."</td>";
    100100            }
    101101        }
    102         $output .= "</tr>"; 
     102        $output .= "</tr>";
    103103      }
    104104      if($tab_td_2[0]!= ""){
     
    106106        foreach($tab_td_2 as $td2){
    107107            if(trim($td2) !=""){
    108               $output .= "<td abbr='".$td2."'>".$td2."</td>";
     108              $output .= "<td>".$td2."</td>";
    109109            }
    110110        }
    111         $output .= "</tr>"; 
     111        $output .= "</tr>";
    112112      }
    113113      if($tab_td_3[0]!= ""){
     
    115115        foreach($tab_td_3 as $td3){
    116116            if(trim($td3) !=""){
    117               $output .= "<td abbr='".$td3."'>".$td3."</td>";
     117              $output .= "<td>".$td3."</td>";
    118118            }
    119119        }
    120         $output .= "</tr>"; 
     120        $output .= "</tr>";
    121121      }
    122122      if($tab_td_4[0]!= ""){
     
    124124        foreach($tab_td_4 as $td4){
    125125            if(trim($td4) !=""){
    126               $output .= "<td abbr='".$td4."'>".$td4."</td>";
     126              $output .= "<td>".$td4."</td>";
    127127            }
    128128        }
    129         $output .= "</tr>"; 
     129        $output .= "</tr>";
    130130      }
    131131
     
    134134        foreach($tab_td_5 as $td5){
    135135          if(trim($td5) !=""){
    136             $output .= "<td abbr='".$td5."'>".$td5."</td>";
     136            $output .= "<td>".$td5."</td>";
    137137          }
    138138        }
     
    143143        foreach($tab_td_6 as $td6){
    144144          if(trim($td6) !=""){
    145             $output .= "<td abbr='".$td6."'>".$td6."</td>";
     145            $output .= "<td>".$td6."</td>";
    146146          }
    147147        }
     
    152152        foreach($tab_td_7 as $td7){
    153153          if(trim($td7) !=""){
    154             $output .= "<td abbr='".$td7."'>".$td7."</td>";
     154            $output .= "<td>".$td7."</td>";
    155155          }
    156156        }
     
    161161        foreach($tab_td_8 as $td8){
    162162          if(trim($td8) !=""){
    163             $output .= "<td abbr='".$td8."'>".$td8."</td>";
     163            $output .= "<td>".$td8."</td>";
    164164          }
    165165        }
     
    169169
    170170      return $output;
    171        
     171
    172172  }
    173173
     
    182182   */
    183183  function private_login_shortcode_esm( $atts, $content) {
    184     extract( shortcode_atts( 
     184    extract( shortcode_atts(
    185185        array( 'login' => '',
    186186               'class'=>''
    187187               ),
    188                 $atts ) 
     188                $atts )
    189189    );
    190    
     190
    191191    global $current_user;
    192192
     
    204204
    205205add_shortcode('private_content_login_esm', 'private_login_shortcode_esm');
    206  
     206
    207207  function private_role_shortcode_esm( $atts, $content) {
    208     extract( shortcode_atts( 
     208    extract( shortcode_atts(
    209209        array( 'role' => '',
    210210               'class'=>''
    211211               ),
    212                 $atts ) 
     212                $atts )
    213213    );
    214214
     
    217217    $current_role = implode($current_user->roles);
    218218    $tab_role = explode(",",$role);
    219    
     219
    220220    // gestion role autorisé
    221221    if(in_array($current_role,$tab_role)){
    222222      return '<div class="esm-private '.$class.'">' . do_shortcode( $content ) . '</div>';
    223223    }
    224  
     224
    225225  }
    226226
     
    228228
    229229function accordeon_slider_esm($atts){
    230    extract( shortcode_atts( 
     230   extract( shortcode_atts(
    231231        array(  'images' => '',
    232232                'size' => '200x200',
    233233                'width_max' =>'600',
    234234                'class' => ''),
    235                 $atts ) 
     235                $atts )
    236236    );
    237  
     237
    238238    $tab_images = explode(';',$images);
    239239    $tab_info_image = array();
     
    243243    foreach($tab_images as $image){
    244244      $tab_info_image = explode(',',$image);
    245      
     245
    246246      $slides[]= array(
    247247        'id'  => $tab_info_image[0],
    248248        'link'  => $tab_info_image[1],
    249249        'title' => $tab_info_image[2]
    250         );       
     250        );
    251251    }
    252252    // Get dimensions
     
    254254    $width = $dimensions[0];
    255255    $height = $dimensions[1];
    256  
    257    
     256
     257
    258258
    259259    foreach ($slides as $slide ) {
     
    272272
    273273function galerie_lien_esm($atts){
    274      extract( shortcode_atts( 
     274     extract( shortcode_atts(
    275275        array(  'images' => '',
    276276                'urls' => '',
     
    280280                'class'=> ''
    281281                ),
    282                 $atts ) 
     282                $atts )
    283283    );
    284  
     284
    285285   $tab_images  = explode(';',$images);
    286286   $tab_urls    = explode(';',$urls);
    287287   $tab_targets = explode(';',$targets);
    288288
    289    
     289
    290290
    291291   $tab_info_image = array();
     
    295295   foreach($tab_images as $image){
    296296     $tab_info_image = explode(',',$image);
    297      
     297
    298298     $slides[]= array(
    299299       'link'   => $tab_info_image[0],
    300300       'title'  => $tab_info_image[1]
    301        );       
     301       );
    302302   }
    303303
     
    313313
    314314      if($slide['link'] != "") {
    315        
     315
    316316        if($tab_targets[$cpt_image] == "blank"){
    317317          $target = ' target="_blank" ';
  • easy-shortcode-manager/tags/0.5.1/easy_shortcode_manager.php

    r777725 r789143  
    55 * Description: WordPress easy shortcode manager is a plugin which add a button in TinyMCE editor to help you adding various shortcodes to your post or page content. With a simple and intuitive interface you'll be able to add buttons, tables, columns, alert boxes, icons, and a lot of complex layouts...
    66 * Author: MBA Multimedia
    7  * Version: 0.5
     7 * Author URI: http://www.mba-multimedia.com/
     8 * Version: 0.5.1
    89 * Licence: GPLv2
    910 */
     
    472473} // end class
    473474
    474 $Easy_shortcode_manager = new Easy_shortcode_manager();
    475 
     475// 2013.10.17: Fix a conflict with MailPoet (formerly Wysija). ESM is not loaded on MailPoet admin pages
     476if ( $_GET['page'] != 'wysija_campaigns' )
     477{
     478    $Easy_shortcode_manager = new Easy_shortcode_manager();
     479}
     480
Note: See TracChangeset for help on using the changeset viewer.