Plugin Directory

Changeset 2289953


Ignore:
Timestamp:
04/23/2020 09:03:14 AM (6 years ago)
Author:
xamoom1
Message:

update trunk

Location:
xamoom/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • xamoom/trunk/block/js/block.js

    r2067668 r2289953  
    170170            }
    171171          },
    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);
    174174          },
    175175          processData: false,
  • xamoom/trunk/includes/class-xamoom-activator.php

    r2067668 r2289953  
    3030
    3131    /**
    32      * Nothing to do here so far.
     32     * Sets transient flag 'xamoom-plugin-activated' so we know if we can show admin notice
    3333     *
    3434     * @since    1.0.0
    3535     */
    36     public static function activate() { }
     36    public static function activate() {
     37            set_transient( 'xamoom-plugin-activated', true, 5 );
     38     }
    3739
    3840}
  • xamoom/trunk/includes/class-xamoom.php

    r2119204 r2289953  
    6969
    7070        $this->plugin_name = 'xamoom';
    71         $this->version = '1.4.3';
     71        $this->version = '3.4.0';
    7272        $this->api_endpoint = 'https://api.xamoom.net/consumer/';
    7373        // $this->api_endpoint = 'https://xamoom-dev.appspot.com/consumer/'; // DEV
    74 
    7574        $this->load_dependencies();
    7675        $this->set_locale();
     
    7978        $this->define_public_hooks();
    8079        $this->define_register_settings();
     80
     81        add_action( 'admin_notices', array( $this, 'plugin_activation' ) );
     82       
    8183    }
    8284
     
    201203        register_setting( 'xamoom-settings-group', 'xamoom_custom_css' );
    202204    }
    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    }
    205225
    206226    /**
     
    245265
    246266}
     267register_activation_hook( __FILE__, array( 'xamoom', 'fx_admin_notice_example_activation_hook' ) );
  • xamoom/trunk/readme.txt

    r2243241 r2289953  
    33Tags: CMS, Location Based Service, Mobile Marketing, NFC, QR, iBeacon
    44Requires at least: 4.5
    5 Tested up to: 5.2.4
     5Tested up to: 5.4
    66Requires PHP: 5.2.4
    7 Stable tag: 3.3.0
     7Stable tag: 3.4.0
    88
    99The connection between the xamoom CMS and WordPress. Use your great mobile content also on the desktop.
     
    4343
    4444== Changelog ==
     45= 3.4 =
     46* Now shows activation message.
     47
    4548= 3.3 =
    4649* Fix issue with time & location.
  • xamoom/trunk/tiny-mce-plugin/xamoom-tiny-mce.js

    r2119204 r2289953  
    152152        }
    153153      },
    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);
    156156      },
    157157      processData: false,
  • xamoom/trunk/xamoom.php

    r2243241 r2289953  
    3737 * Plugin URI:        http://xamoom.com
    3838 * Description:       This plugin allows you to sync xamoom pages to Wordpress
    39  * Version:           3.3.0
     39 * Version:           3.4.0
    4040 * Author:            xamoom GmbH
    4141 * Author URI:        http://xamoom.com/
Note: See TracChangeset for help on using the changeset viewer.