Changeset 1376579
- Timestamp:
- 03/22/2016 07:26:31 PM (10 years ago)
- Location:
- dynamic-audio-player-basic/trunk
- Files:
-
- 2 edited
-
dynamicplayer.php (modified) (8 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dynamic-audio-player-basic/trunk/dynamicplayer.php
r1206862 r1376579 4 4 Plugin URI: http://dynamicaudioplayer.com 5 5 Description: This plugin allows you to add an audio player widget with a dynamic playlist and shortcodes for single buttons 6 Version: 2. 2.16 Version: 2.3.0 7 7 Author: Manolo Salsas Durán 8 8 Author URI: http://msalsas.com/en/ … … 92 92 $includedPages = array(); 93 93 $includedHomePage = false; 94 $includedShopPage = false; 94 95 95 96 foreach($dyn_option as $option) … … 130 131 if(isset($option["dynPlayerShowHomePage"])) { 131 132 $includedHomePage = $option["dynPlayerShowHomePage"] == "true" ? true : false; 133 break; 134 } 135 } 136 foreach($dyn_option as $option) 137 { 138 if(isset($option["dynPlayerShowShopPage"])) { 139 $includedShopPage = $option["dynPlayerShowShopPage"] == "true" ? true : false; 132 140 break; 133 141 } … … 178 186 return null; 179 187 } 180 188 elseif(function_exists('is_shop') && is_shop()) { 189 if(! $includedShopPage) 190 return null; 191 } 181 192 dyn_scripts($dyn_option); 182 193 } … … 369 380 'dynPlayerExcludePosts' => '', 370 381 'dynPlayerIncludePosts' => '', 382 'dynPlayerShowShopPage' => '', 371 383 ); 372 384 $active_sidebars['dynamic-player-sidebar'] = array('dynamic-player-widget-1') ; … … 453 465 $instance['dynPlayerExcludePosts'] = strip_tags( $new_instance['dynPlayerExcludePosts'] ); 454 466 $instance['dynPlayerIncludePosts'] = strip_tags( $new_instance['dynPlayerIncludePosts'] ); 467 $instance['dynPlayerShowShopPage'] = strip_tags( $new_instance['dynPlayerShowShopPage'] ); 455 468 456 469 return $instance; … … 476 489 'dynPlayerIncludePages' => '', 477 490 'dynPlayerExcludePosts' => '', 478 'dynPlayerIncludePosts' => '' 491 'dynPlayerIncludePosts' => '', 492 'dynPlayerShowShopPage' => '' 479 493 ); 480 494 $instance = wp_parse_args( (array) $instance, $defaults ); ?> … … 602 616 </p> 603 617 618 <p> 619 <label for="<?php echo $this->get_field_id( 'dynPlayerShowShopPage' ); ?>"> 620 Show in shop page (only for Woocommerce plugin) 621 </label> 622 <select id="<?php echo $this->get_field_id('dynPlayerShowShopPage'); ?>" name="<?php echo $this->get_field_name('dynPlayerShowShopPage'); ?>" class="widefat" style="width:100%;"> 623 <option <?php selected( $instance['dynPlayerShowShopPage'], 'true'); ?> value="true">true</option> 624 <option <?php selected( $instance['dynPlayerShowShopPage'], 'false'); ?> value="false">false</option> 625 </select> 626 </p> 604 627 605 628 <?php -
dynamic-audio-player-basic/trunk/readme.txt
r1347480 r1376579 49 49 50 50 == Changelog == 51 52 = 2.3.0 = 53 Add "exclude from Shop page" option (for Woocommerce plugin). 51 54 52 55 = 2.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.