Changeset 2007350
- Timestamp:
- 01/06/2019 11:44:14 PM (7 years ago)
- Location:
- albnet-shortcodes/trunk
- Files:
-
- 5 added
- 6 edited
-
README.txt (modified) (2 diffs)
-
albnet-shortcodes.php (modified) (2 diffs)
-
img (added)
-
img/icon-128x128.png (added)
-
settings (added)
-
settings/index.php (added)
-
settings/init.php (added)
-
shortcode-archive.php (modified) (1 diff)
-
shortcode-card.php (modified) (1 diff)
-
shortcode-horizontal.php (modified) (1 diff)
-
shortcode-slideshow.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
albnet-shortcodes/trunk/README.txt
r2007329 r2007350 128 128 = What kind of support do you provide? = 129 129 130 == Screenshots == 131 132 1. Clean layout for posts 133 130 134 == Changelog == 131 135 … … 134 138 1.0.1 Add docs for shortcode options in installation instructions 135 139 136 == Screenshots == 137 138 1. Clean layout for posts 140 1.1.1 Add settings page and Ads configuration option -
albnet-shortcodes/trunk/albnet-shortcodes.php
r2007329 r2007350 12 12 * Plugin URI: https://shortcodes.albreis.com.br 13 13 * Description: A lot of shortcodes to show posts 14 * Version: 1.0. 114 * Version: 1.0.2 15 15 * Author: Albreis Network <[email protected]> 16 16 * Author URI: https://albreis.com.br … … 21 21 */ 22 22 23 register_activation_hook( __FILE__, 'albnet_shortcode_activate' ); 24 function albnet_shortcode_activate(){ 25 26 // Require parent plugin 27 if ( ! is_plugin_active( 'advanced-custom-fields/acf.php' ) && current_user_can( 'activate_plugins' ) ) { 28 // Stop activation redirect and show error 29 wp_die('Sorry, but this plugin requires the Advanced Custom Fields to be installed and active. <br><a href="' . admin_url( 'plugins.php' ) . '">« Return to Plugins</a>'); 30 } 31 } 23 /** 24 * Load settings page 25 */ 26 require 'settings/init.php'; 27 28 /** 29 * Add admin menu 30 */ 31 add_action( 'admin_menu', function(){ 32 33 add_menu_page( 'Albnet Shortcodes', 'Albnet Shortcodes', 'publish_posts', 'albnet_shortcodes', function(){ 34 require 'settings/index.php'; 35 }, 'dashicons-schedule', 0 ); 36 37 } ); 38 32 39 33 40 /** -
albnet-shortcodes/trunk/shortcode-archive.php
r2007320 r2007350 41 41 </div> 42 42 <?php if($a['show_ads'] && ($index % $a['ads_step']) == 0): ?> 43 <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> 44 <!-- Cabeçalho Portal CM7 --> 45 <ins class="adsbygoogle" data-ad-client="ca-pub-5540064341177737" data-ad-slot="9742088570"></ins> 46 <script> 47 (adsbygoogle = window.adsbygoogle || []).push({}); 48 </script> 43 <div class="albnet-shortcode-ads"><?php echo get_option('albnet_shortcodes_ads_code'); ?></div> 49 44 <?php endif; $index++; ?> 50 45 </div> -
albnet-shortcodes/trunk/shortcode-card.php
r2007320 r2007350 66 66 </div> 67 67 <?php if($a['show_ads'] && ($index % $a['ads_step']) == 0): ?> 68 <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> 69 <!-- Cabeçalho Portal CM7 --> 70 <ins class="adsbygoogle" data-ad-client="ca-pub-5540064341177737" data-ad-slot="9742088570"></ins> 71 <script> 72 (adsbygoogle = window.adsbygoogle || []).push({}); 73 </script> 68 <div class="albnet-shortcode-ads"><?php echo get_option('albnet_shortcodes_ads_code'); ?></div> 74 69 <?php endif; $index++; ?> 75 70 <?php } ?> -
albnet-shortcodes/trunk/shortcode-horizontal.php
r2007320 r2007350 67 67 </div> 68 68 <?php if($a['show_ads'] && ($index % $a['ads_step']) == 0): ?> 69 <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> 70 <!-- Cabeçalho Portal CM7 --> 71 <ins class="adsbygoogle" data-ad-client="ca-pub-5540064341177737" data-ad-slot="9742088570"></ins> 72 <script> 73 (adsbygoogle = window.adsbygoogle || []).push({}); 74 </script> 69 <div class="albnet-shortcode-ads"><?php echo get_option('albnet_shortcodes_ads_code'); ?></div> 75 70 <?php endif; $index++; ?> 76 71 <?php } ?> -
albnet-shortcodes/trunk/shortcode-slideshow.php
r2007320 r2007350 49 49 <!--ul class="uk-slideshow-nav uk-dotnav uk-flex-center"></ul--> 50 50 </div> 51 <?php if($a['show_ads']): ?> 52 <div class="albnet-shortcode-ads"><?php echo get_option('albnet_shortcodes_ads_code'); ?></div> 53 <?php endif; ?> 51 54 <?php } wp_reset_postdata(); ?> 52 55 </div>
Note: See TracChangeset
for help on using the changeset viewer.