Changeset 789143
- Timestamp:
- 10/17/2013 07:16:22 AM (12 years ago)
- Location:
- easy-shortcode-manager/tags/0.5.1
- Files:
-
- 7 copied
-
. (copied) (copied from easy-shortcode-manager/trunk)
-
README.txt (copied) (copied from easy-shortcode-manager/trunk/README.txt) (1 diff)
-
classes/class.lib.shortcodes.mba.php (copied) (copied from easy-shortcode-manager/trunk/classes/class.lib.shortcodes.mba.php) (25 diffs)
-
classes/class.lib.shortcodes.organic.php (copied) (copied from easy-shortcode-manager/trunk/classes/class.lib.shortcodes.organic.php)
-
classes/class.lib.shortcodes.ultimate.php (copied) (copied from easy-shortcode-manager/trunk/classes/class.lib.shortcodes.ultimate.php)
-
easy_shortcode_manager.php (copied) (copied from easy-shortcode-manager/trunk/easy_shortcode_manager.php) (2 diffs)
-
trt_ajax_form_param_shortcode.php (copied) (copied from easy-shortcode-manager/trunk/trt_ajax_form_param_shortcode.php)
Legend:
- Unmodified
- Added
- Removed
-
easy-shortcode-manager/tags/0.5.1/README.txt
r777725 r789143 49 49 == Changelog == 50 50 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 51 55 = 0.5 = 52 56 -
easy-shortcode-manager/tags/0.5.1/classes/class.lib.shortcodes.mba.php
r777725 r789143 1 1 <?php 2 2 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 5 5 -------------------------------------------------------------------------------------------------------*/ 6 6 function grande_image_deco_esm($atts,$content){ … … 13 13 add_shortcode('sprite_esm', 'grande_image_deco_esm'); 14 14 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' 17 17 -------------------------------------------------------------------------------------------------------*/ 18 18 19 19 function tooltip_esm($atts,$content){ 20 extract( shortcode_atts( 20 extract( shortcode_atts( 21 21 array( 'content_bulle' => 'Contenu de l\'info bulle', 22 22 'position_bulle' => 'top', … … 34 34 $content = "<div class='content-info-bulle ".$class."' >". do_shortcode($content)."</div>"; 35 35 $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>"; 37 37 38 38 $output = $content.''.$div_content_bulle_hidden.''.$div_position_bulle_hidden; … … 43 43 add_shortcode('tooltip_esm', 'tooltip_esm'); 44 44 45 /*-----------------------------------------------------------------------------------------------------// 46 Table : tableau avec initialisation de class CSS 45 /*-----------------------------------------------------------------------------------------------------// 46 Table : tableau avec initialisation de class CSS 47 47 -------------------------------------------------------------------------------------------------------*/ 48 48 49 49 function table_esm ($atts,$content=null){ 50 extract( shortcode_atts( 50 extract( shortcode_atts( 51 51 array( 'caption' => '', 52 52 'th' => '', … … 62 62 63 63 ),$atts ) ); 64 65 $tab_th = explode('|',$th);64 65 $tab_th = explode('|',$th); 66 66 $tab_td_1 = explode('|',$l1); 67 67 $tab_td_2 = explode('|',$l2); … … 72 72 $tab_td_7 = explode('|',$l7); 73 73 $tab_td_8 = explode('|',$l8); 74 74 75 75 $cpt_th = 0; 76 76 $output = ''; … … 97 97 foreach($tab_td_1 as $td1){ 98 98 if(trim($td1) !=""){ 99 $output .= "<td abbr='".$td1."'>".$td1."</td>";99 $output .= "<td>".$td1."</td>"; 100 100 } 101 101 } 102 $output .= "</tr>"; 102 $output .= "</tr>"; 103 103 } 104 104 if($tab_td_2[0]!= ""){ … … 106 106 foreach($tab_td_2 as $td2){ 107 107 if(trim($td2) !=""){ 108 $output .= "<td abbr='".$td2."'>".$td2."</td>";108 $output .= "<td>".$td2."</td>"; 109 109 } 110 110 } 111 $output .= "</tr>"; 111 $output .= "</tr>"; 112 112 } 113 113 if($tab_td_3[0]!= ""){ … … 115 115 foreach($tab_td_3 as $td3){ 116 116 if(trim($td3) !=""){ 117 $output .= "<td abbr='".$td3."'>".$td3."</td>";117 $output .= "<td>".$td3."</td>"; 118 118 } 119 119 } 120 $output .= "</tr>"; 120 $output .= "</tr>"; 121 121 } 122 122 if($tab_td_4[0]!= ""){ … … 124 124 foreach($tab_td_4 as $td4){ 125 125 if(trim($td4) !=""){ 126 $output .= "<td abbr='".$td4."'>".$td4."</td>";126 $output .= "<td>".$td4."</td>"; 127 127 } 128 128 } 129 $output .= "</tr>"; 129 $output .= "</tr>"; 130 130 } 131 131 … … 134 134 foreach($tab_td_5 as $td5){ 135 135 if(trim($td5) !=""){ 136 $output .= "<td abbr='".$td5."'>".$td5."</td>";136 $output .= "<td>".$td5."</td>"; 137 137 } 138 138 } … … 143 143 foreach($tab_td_6 as $td6){ 144 144 if(trim($td6) !=""){ 145 $output .= "<td abbr='".$td6."'>".$td6."</td>";145 $output .= "<td>".$td6."</td>"; 146 146 } 147 147 } … … 152 152 foreach($tab_td_7 as $td7){ 153 153 if(trim($td7) !=""){ 154 $output .= "<td abbr='".$td7."'>".$td7."</td>";154 $output .= "<td>".$td7."</td>"; 155 155 } 156 156 } … … 161 161 foreach($tab_td_8 as $td8){ 162 162 if(trim($td8) !=""){ 163 $output .= "<td abbr='".$td8."'>".$td8."</td>";163 $output .= "<td>".$td8."</td>"; 164 164 } 165 165 } … … 169 169 170 170 return $output; 171 171 172 172 } 173 173 … … 182 182 */ 183 183 function private_login_shortcode_esm( $atts, $content) { 184 extract( shortcode_atts( 184 extract( shortcode_atts( 185 185 array( 'login' => '', 186 186 'class'=>'' 187 187 ), 188 $atts ) 188 $atts ) 189 189 ); 190 190 191 191 global $current_user; 192 192 … … 204 204 205 205 add_shortcode('private_content_login_esm', 'private_login_shortcode_esm'); 206 206 207 207 function private_role_shortcode_esm( $atts, $content) { 208 extract( shortcode_atts( 208 extract( shortcode_atts( 209 209 array( 'role' => '', 210 210 'class'=>'' 211 211 ), 212 $atts ) 212 $atts ) 213 213 ); 214 214 … … 217 217 $current_role = implode($current_user->roles); 218 218 $tab_role = explode(",",$role); 219 219 220 220 // gestion role autorisé 221 221 if(in_array($current_role,$tab_role)){ 222 222 return '<div class="esm-private '.$class.'">' . do_shortcode( $content ) . '</div>'; 223 223 } 224 224 225 225 } 226 226 … … 228 228 229 229 function accordeon_slider_esm($atts){ 230 extract( shortcode_atts( 230 extract( shortcode_atts( 231 231 array( 'images' => '', 232 232 'size' => '200x200', 233 233 'width_max' =>'600', 234 234 'class' => ''), 235 $atts ) 235 $atts ) 236 236 ); 237 237 238 238 $tab_images = explode(';',$images); 239 239 $tab_info_image = array(); … … 243 243 foreach($tab_images as $image){ 244 244 $tab_info_image = explode(',',$image); 245 245 246 246 $slides[]= array( 247 247 'id' => $tab_info_image[0], 248 248 'link' => $tab_info_image[1], 249 249 'title' => $tab_info_image[2] 250 ); 250 ); 251 251 } 252 252 // Get dimensions … … 254 254 $width = $dimensions[0]; 255 255 $height = $dimensions[1]; 256 257 256 257 258 258 259 259 foreach ($slides as $slide ) { … … 272 272 273 273 function galerie_lien_esm($atts){ 274 extract( shortcode_atts( 274 extract( shortcode_atts( 275 275 array( 'images' => '', 276 276 'urls' => '', … … 280 280 'class'=> '' 281 281 ), 282 $atts ) 282 $atts ) 283 283 ); 284 284 285 285 $tab_images = explode(';',$images); 286 286 $tab_urls = explode(';',$urls); 287 287 $tab_targets = explode(';',$targets); 288 288 289 289 290 290 291 291 $tab_info_image = array(); … … 295 295 foreach($tab_images as $image){ 296 296 $tab_info_image = explode(',',$image); 297 297 298 298 $slides[]= array( 299 299 'link' => $tab_info_image[0], 300 300 'title' => $tab_info_image[1] 301 ); 301 ); 302 302 } 303 303 … … 313 313 314 314 if($slide['link'] != "") { 315 315 316 316 if($tab_targets[$cpt_image] == "blank"){ 317 317 $target = ' target="_blank" '; -
easy-shortcode-manager/tags/0.5.1/easy_shortcode_manager.php
r777725 r789143 5 5 * 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... 6 6 * Author: MBA Multimedia 7 * Version: 0.5 7 * Author URI: http://www.mba-multimedia.com/ 8 * Version: 0.5.1 8 9 * Licence: GPLv2 9 10 */ … … 472 473 } // end class 473 474 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 476 if ( $_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.