Changeset 2645229
- Timestamp:
- 12/16/2021 03:14:10 PM (4 years ago)
- Location:
- mylisting-elementor-toolkit
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.15 (copied) (copied from mylisting-elementor-toolkit/trunk)
-
tags/1.0.15/ml-elementor-toolkit.php (modified) (5 diffs)
-
tags/1.0.15/plugin.php (modified) (1 diff)
-
tags/1.0.15/readme.txt (modified) (1 diff)
-
trunk/ml-elementor-toolkit.php (modified) (5 diffs)
-
trunk/plugin.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mylisting-elementor-toolkit/tags/1.0.15/ml-elementor-toolkit.php
r2634177 r2645229 4 4 * Description: A simple Elementor addon that adds elementor functionality to parts of the My Listing theme. 5 5 * Plugin URI: https://yellowwave.eu/ml-elementor-toolkit 6 * Version: 1.0.1 46 * Version: 1.0.15 7 7 * Author: YellowWave 8 8 * Author URI: https://yellowwave.nl … … 33 33 * @var string The plugin version. 34 34 */ 35 const VERSION = '1.0.1 4';35 const VERSION = '1.0.15'; 36 36 37 37 /** … … 64 64 // $this->init(); 65 65 // Init Plugin 66 add_action( ' plugins_loaded', array( $this, 'init' ) );66 add_action( 'init', array( $this, 'init' ) ); 67 67 } 68 68 … … 103 103 if (!defined( 'ELEMENTOR_PRO_VERSION' )) { 104 104 add_action( 'admin_notices', array( $this, 'admin_notice_missing_elementor_pro' ) ); 105 return; 106 } 107 108 if(!function_exists('mylisting')){ 109 add_action( 'admin_notices', array( $this, 'admin_notice_missing_mylisting' ) ); 105 110 return; 106 111 } … … 164 169 '<strong>' . esc_html__( 'Elementor Pro', 'ml-elementor-toolkit' ) . '</strong>' 165 170 ); 171 172 printf( '<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message ); 173 } 174 175 public function admin_notice_missing_mylisting() { 176 if ( isset( $_GET['activate'] ) ) { 177 unset( $_GET['activate'] ); 178 } 179 180 $message = sprintf( 181 /* translators: 1: Plugin name 2: Elementor */ 182 esc_html__( '"%1$s" requires "%2$s" to be installed and activated.', 'ml-elementor-toolkit-pro' ), 183 '<strong>' . esc_html__( 'MyListing Elementor Toolkit', 'ml-elementor-toolkit-pro' ) . '</strong>', 184 '<strong>' . esc_html__( 'My Listing Theme', 'ml-elementor-toolkit-pro' ) . '</strong>' 185 ); 166 186 167 187 printf( '<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message ); -
mylisting-elementor-toolkit/tags/1.0.15/plugin.php
r2634177 r2645229 121 121 require_once( __DIR__ . '/conditions/listing-type.php' ); 122 122 123 $conditions_manager->get_condition( 'job_listing' )->register_sub_condition( new Conditions\Listing_Type() ); 123 $job_listing = $conditions_manager->get_condition( 'job_listing' ); 124 if($job_listing){ 125 $job_listing->register_sub_condition( new Conditions\Listing_Type() ); 126 } 124 127 } 125 128 -
mylisting-elementor-toolkit/tags/1.0.15/readme.txt
r2634177 r2645229 64 64 == Changelog == 65 65 66 = 1.0.15 = 67 * Check if MyListing theme is active. 68 66 69 = 1.0.14 = 67 70 * NEW: Review count (number of reviews) dynamic tag -
mylisting-elementor-toolkit/trunk/ml-elementor-toolkit.php
r2634177 r2645229 4 4 * Description: A simple Elementor addon that adds elementor functionality to parts of the My Listing theme. 5 5 * Plugin URI: https://yellowwave.eu/ml-elementor-toolkit 6 * Version: 1.0.1 46 * Version: 1.0.15 7 7 * Author: YellowWave 8 8 * Author URI: https://yellowwave.nl … … 33 33 * @var string The plugin version. 34 34 */ 35 const VERSION = '1.0.1 4';35 const VERSION = '1.0.15'; 36 36 37 37 /** … … 64 64 // $this->init(); 65 65 // Init Plugin 66 add_action( ' plugins_loaded', array( $this, 'init' ) );66 add_action( 'init', array( $this, 'init' ) ); 67 67 } 68 68 … … 103 103 if (!defined( 'ELEMENTOR_PRO_VERSION' )) { 104 104 add_action( 'admin_notices', array( $this, 'admin_notice_missing_elementor_pro' ) ); 105 return; 106 } 107 108 if(!function_exists('mylisting')){ 109 add_action( 'admin_notices', array( $this, 'admin_notice_missing_mylisting' ) ); 105 110 return; 106 111 } … … 164 169 '<strong>' . esc_html__( 'Elementor Pro', 'ml-elementor-toolkit' ) . '</strong>' 165 170 ); 171 172 printf( '<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message ); 173 } 174 175 public function admin_notice_missing_mylisting() { 176 if ( isset( $_GET['activate'] ) ) { 177 unset( $_GET['activate'] ); 178 } 179 180 $message = sprintf( 181 /* translators: 1: Plugin name 2: Elementor */ 182 esc_html__( '"%1$s" requires "%2$s" to be installed and activated.', 'ml-elementor-toolkit-pro' ), 183 '<strong>' . esc_html__( 'MyListing Elementor Toolkit', 'ml-elementor-toolkit-pro' ) . '</strong>', 184 '<strong>' . esc_html__( 'My Listing Theme', 'ml-elementor-toolkit-pro' ) . '</strong>' 185 ); 166 186 167 187 printf( '<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message ); -
mylisting-elementor-toolkit/trunk/plugin.php
r2634177 r2645229 121 121 require_once( __DIR__ . '/conditions/listing-type.php' ); 122 122 123 $conditions_manager->get_condition( 'job_listing' )->register_sub_condition( new Conditions\Listing_Type() ); 123 $job_listing = $conditions_manager->get_condition( 'job_listing' ); 124 if($job_listing){ 125 $job_listing->register_sub_condition( new Conditions\Listing_Type() ); 126 } 124 127 } 125 128 -
mylisting-elementor-toolkit/trunk/readme.txt
r2634177 r2645229 64 64 == Changelog == 65 65 66 = 1.0.15 = 67 * Check if MyListing theme is active. 68 66 69 = 1.0.14 = 67 70 * NEW: Review count (number of reviews) dynamic tag
Note: See TracChangeset
for help on using the changeset viewer.