Changeset 2289953
- Timestamp:
- 04/23/2020 09:03:14 AM (6 years ago)
- Location:
- xamoom/trunk
- Files:
-
- 6 edited
-
block/js/block.js (modified) (1 diff)
-
includes/class-xamoom-activator.php (modified) (1 diff)
-
includes/class-xamoom.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
tiny-mce-plugin/xamoom-tiny-mce.js (modified) (1 diff)
-
xamoom.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
xamoom/trunk/block/js/block.js
r2067668 r2289953 170 170 } 171 171 }, 172 error: function( ){ //something went wrong (check console)173 alert(i18n_generic_error);172 error: function(e){ //something went wrong (check console) 173 console.error(i18n_generic_error, e); 174 174 }, 175 175 processData: false, -
xamoom/trunk/includes/class-xamoom-activator.php
r2067668 r2289953 30 30 31 31 /** 32 * Nothing to do here so far.32 * Sets transient flag 'xamoom-plugin-activated' so we know if we can show admin notice 33 33 * 34 34 * @since 1.0.0 35 35 */ 36 public static function activate() { } 36 public static function activate() { 37 set_transient( 'xamoom-plugin-activated', true, 5 ); 38 } 37 39 38 40 } -
xamoom/trunk/includes/class-xamoom.php
r2119204 r2289953 69 69 70 70 $this->plugin_name = 'xamoom'; 71 $this->version = ' 1.4.3';71 $this->version = '3.4.0'; 72 72 $this->api_endpoint = 'https://api.xamoom.net/consumer/'; 73 73 // $this->api_endpoint = 'https://xamoom-dev.appspot.com/consumer/'; // DEV 74 75 74 $this->load_dependencies(); 76 75 $this->set_locale(); … … 79 78 $this->define_public_hooks(); 80 79 $this->define_register_settings(); 80 81 add_action( 'admin_notices', array( $this, 'plugin_activation' ) ); 82 81 83 } 82 84 … … 201 203 register_setting( 'xamoom-settings-group', 'xamoom_custom_css' ); 202 204 } 203 204 205 206 public function plugin_activation() { 207 if( get_transient( 'xamoom-plugin-activated' ) ){ 208 209 $html = '<div class="notice notice-success is-dismissible">'; 210 $html .= '<p>'; 211 $locale = get_locale(); 212 213 if (substr($locale, 0, 2) == "de") { 214 $html .= __( "Vielen Dank für die Nutzung des xamoom Plugins. Wir bitten Sie nun zur Eingabe Ihres <a href='options-general.php?page=xamoom-settings'>API-Key hier.</a>", 'xamoom' ); 215 } else { 216 $html .= __( "Thank you very much for using the xamoom plugin. We kindly ask you to enter your <a href='options-general.php?page=xamoom-settings'>API-Key here.</a>", 'xamoom' ); 217 } 218 $html .= '</p>'; 219 $html .= '</div>'; 220 echo $html; 221 /* Delete transient, only display this notice once. */ 222 delete_transient( 'xamoom-plugin-activated' ); 223 } 224 } 205 225 206 226 /** … … 245 265 246 266 } 267 register_activation_hook( __FILE__, array( 'xamoom', 'fx_admin_notice_example_activation_hook' ) ); -
xamoom/trunk/readme.txt
r2243241 r2289953 3 3 Tags: CMS, Location Based Service, Mobile Marketing, NFC, QR, iBeacon 4 4 Requires at least: 4.5 5 Tested up to: 5. 2.45 Tested up to: 5.4 6 6 Requires PHP: 5.2.4 7 Stable tag: 3. 3.07 Stable tag: 3.4.0 8 8 9 9 The connection between the xamoom CMS and WordPress. Use your great mobile content also on the desktop. … … 43 43 44 44 == Changelog == 45 = 3.4 = 46 * Now shows activation message. 47 45 48 = 3.3 = 46 49 * Fix issue with time & location. -
xamoom/trunk/tiny-mce-plugin/xamoom-tiny-mce.js
r2119204 r2289953 152 152 } 153 153 }, 154 error: function( ){ //something went wrong (check console)155 alert(i18n_generic_error);154 error: function(e){ //something went wrong (check console) 155 console.error(i18n_generic_error, e); 156 156 }, 157 157 processData: false, -
xamoom/trunk/xamoom.php
r2243241 r2289953 37 37 * Plugin URI: http://xamoom.com 38 38 * Description: This plugin allows you to sync xamoom pages to Wordpress 39 * Version: 3. 3.039 * Version: 3.4.0 40 40 * Author: xamoom GmbH 41 41 * Author URI: http://xamoom.com/
Note: See TracChangeset
for help on using the changeset viewer.