Changeset 2109580
- Timestamp:
- 06/20/2019 02:31:58 PM (7 years ago)
- Location:
- wpstudio-testimonial-slider/trunk
- Files:
-
- 4 edited
-
genesis-testimonials.php (modified) (4 diffs)
-
inc/gts-admin.php (modified) (1 diff)
-
readme.md (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpstudio-testimonial-slider/trunk/genesis-testimonials.php
r2089782 r2109580 4 4 * Plugin URI: http://wpstud.io/plugins 5 5 * Description: The Genesis Testimonials Slider is a simple-to-use plugin for adding Testimonials to your Genesis Theme, using a shortcode or a widget. 6 * Version: 1. 46 * Version: 1.5 7 7 * Author: Frank Schrijvers, WPStudio 8 8 * Author URI: http://www.wpstud.io … … 46 46 } 47 47 48 register_activation_hook( __FILE__, 'wpstudio_gts_activation_check' );49 /**50 * This function runs on plugin activation. It checks to make sure the required51 * minimum Genesis version is installed. If not, it deactivates itself.52 */53 function wpstudio_gts_activation_check() {54 55 $latest = '2.0';56 $theme_info = wp_get_theme( 'genesis' );57 58 if ( ! function_exists( 'genesis_pre' ) ) {59 60 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin.61 wp_die( sprintf( __( 'Sorry, you can\'t activate %1$sGenesis Slide-in Widget unless you have installed the %3$sGenesis Framework%4$s. Go back to the %5$sPlugins Page%4$s.', 'wpstudio-testimonial-slider' ), '<em>', '</em>', '<a href="http://www.studiopress.com/themes/genesis" target="_blank">', '</a>', '<a href="javascript:history.back()">' ) );62 }63 64 if ( version_compare( $theme_info['Version'], $latest, '<' ) ) {65 66 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin.67 /* translators: Genesis Framework version check. */68 wp_die( sprintf( __( 'Sorry, you can\'t activate %1$sGenesis Slide-in Widget unless you have installed the %3$sGenesis %4$s%5$s. Go back to the %6$sPlugins Page%5$s.', 'wpstudio-testimonial-slider' ), '<em>', '</em>', '<a href="http://www.studiopress.com/themes/genesis" target="_blank">', $latest, '</a>', '<a href="javascript:history.back()">' ) );69 70 }71 72 }73 74 /**75 * This function runs on plugin deactivation.76 */77 function wpstudio_gts_deactivate_check() {78 79 if ( ! function_exists( 'genesis_pre' ) ) {80 deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin.81 }82 83 }84 85 add_action( 'after_switch_theme', 'wpstudio_gts_deactivate_check', 10 );86 87 48 /** 88 49 * Enqueue scripts and styles. … … 103 64 function wpstudio_gts_init() { 104 65 105 if ( function_exists( 'genesis_pre' ) ) {106 107 66 require dirname( __FILE__ ) . '/inc/gts-admin.php'; 108 67 include dirname( __FILE__ ) . '/inc/gts-company.php'; … … 113 72 new WPSTUDIO_gts_Settings(); 114 73 115 }74 } 116 75 117 } 118 add_action( 'after_setup_theme', 'wpstudio_gts_init' ); 76 add_action( 'genesis_setup', 'wpstudio_gts_init' ); 119 77 120 78 // Image size for testimonial thumb. -
wpstudio-testimonial-slider/trunk/inc/gts-admin.php
r1978852 r2109580 10 10 11 11 /** 12 * Register a metabox and default settings for the Genesis Simple Logo.12 * Register a new admin page for the testimonial settings. 13 13 * 14 14 * @package Genesis\Admin -
wpstudio-testimonial-slider/trunk/readme.md
r2089782 r2109580 4 4 * Tags: testimonials, testimonial, testimonials plugin, widget, genesis, slider, Genesis Framework, genesiswp 5 5 * Requires at least: 3.6 6 * Tested up to: 5.2 7 * Stable tag: 1. 46 * Tested up to: 5.2.2 7 * Stable tag: 1.5 8 8 * License: GPLv2 or later 9 9 * License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 61 61 ## Changelog 62 63 **1.5** 64 * Update: fix for Genesis 3.0 65 * Removed genesis_pre function check on activation 66 62 67 63 68 **1.4** -
wpstudio-testimonial-slider/trunk/readme.txt
r2089782 r2109580 3 3 Tags: testimonials, testimonial, testimonials plugin, widget, genesis, slider, Genesis Framework, genesiswp 4 4 Requires at least: 3.6 5 Tested up to: 5.2 6 Stable tag: 1. 45 Tested up to: 5.2.2 6 Stable tag: 1.5 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 == Changelog == 61 61 62 = 1.5 = 63 * Update: fix for Genesis 3.0 64 * Removed genesis_pre function check on activation 65 62 66 = 1.4 = 63 67 * Tweak: removed Structured Data. Testimonials are used in many diffrent ways. The structured data is a limitation here.
Note: See TracChangeset
for help on using the changeset viewer.