Plugin Directory

Changeset 1302776


Ignore:
Timestamp:
12/08/2015 07:56:58 AM (10 years ago)
Author:
benohead
Message:

tagging version 1.0.3

Location:
wp-advertize-it
Files:
1 added
5 edited
17 copied

Legend:

Unmodified
Added
Removed
  • wp-advertize-it/tags/1.0.3/bootstrap.php

    r1302762 r1302776  
    44Plugin URI:  https://wordpress.org/plugins/wp-advertize-it/
    55Description: A plugin to place adsense blocks on your site
    6 Version:     1.0.2
     6Version:     1.0.3
    77Author:      Henri Benoit, Alexander Herdt, amazingweb.de
    88Author URI:  http://benohead.com
  • wp-advertize-it/tags/1.0.3/classes/wp-advertize-it.php

    r1302762 r1302776  
    2424         * Plugin version
    2525         */
    26         const VERSION = '1.0.2';
     26        const VERSION = '1.0.3';
    2727        /**
    2828         * Prefix used to identify things related to this plugin
  • wp-advertize-it/tags/1.0.3/classes/wpai-offers.php

    r1301533 r1302776  
    8181        public function register_hook_callbacks()
    8282        {
    83             add_action('admin_menu', __CLASS__ . '::register_settings_pages');
     83            add_action('admin_menu', array($this, 'register_settings_pages'));
    8484            add_action('init', array($this, 'init'));
    8585            add_action('admin_init', array($this, 'register_settings'));
     
    160160         * @mvc Controller
    161161         */
    162         public static function register_settings_pages()
    163         {
    164             add_menu_page(WPAI_NAME,
     162        public function register_settings_pages()
     163        {
     164            $settingsPage = add_menu_page(WPAI_NAME,
    165165                    WPAI_NAME . '&nbsp;<i class="glyphicon glyphicon-signal"></i>',
    166166                    self::REQUIRED_CAPABILITY,
    167167                    'wpai_main',
    168168                    __CLASS__ . '::markup_offers_page');
    169            
     169
     170            add_action( 'load-' . $settingsPage, array($this, 'load_bootstrap_css') );
     171
    170172            /*add_submenu_page(
    171173            'wpai_main',
     
    177179                    );*/
    178180        }
    179        
     181
     182        public function load_bootstrap_css(){
     183            add_action( 'admin_enqueue_scripts', array($this, 'enqueue_bootstrap_css' ) );
     184        }
     185
     186        public function enqueue_bootstrap_css()
     187        {
     188            wp_register_style(self::PREFIX . 'bootstrap-css',
     189                plugins_url('css/bootstrap-3.3.5-dist/css/bootstrap.min.css', dirname(__FILE__)),
     190                array(),
     191                null);
     192            wp_enqueue_style(self::PREFIX . 'bootstrap-css');
     193        }
     194
    180195        /*public static function add_base_tag() {
    181196       
     
    342357                    true
    343358            );*/
    344            
    345             wp_register_style(self::PREFIX . 'bootstrap-css',
    346                     plugins_url('css/bootstrap-3.3.5-dist/css/bootstrap.min.css', dirname(__FILE__)),
    347                     array(),
    348                     null);
    349            
     359
    350360            if (is_admin()) {
    351                 wp_enqueue_style(self::PREFIX . 'bootstrap-css');
    352361                wp_enqueue_script(self::PREFIX . 'angularjs');
    353362                //wp_enqueue_script(self::PREFIX . 'ngroute');
  • wp-advertize-it/tags/1.0.3/readme.txt

    r1302762 r1302776  
    55Requires at least: 4.2.3
    66Tested up to: 4.3.1
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    126126== Changelog ==
    127127
     128= 1.0.3 =
     129
     130* bootstrap css only loaded in own settings page
     131
     132= 1.0.2 =
     133
     134* fixed compatibility issue with PHP 5.3 in db upgrade
     135
    128136= 1.0.1 =
    129137
  • wp-advertize-it/trunk/bootstrap.php

    r1302762 r1302776  
    44Plugin URI:  https://wordpress.org/plugins/wp-advertize-it/
    55Description: A plugin to place adsense blocks on your site
    6 Version:     1.0.2
     6Version:     1.0.3
    77Author:      Henri Benoit, Alexander Herdt, amazingweb.de
    88Author URI:  http://benohead.com
  • wp-advertize-it/trunk/classes/wp-advertize-it.php

    r1302762 r1302776  
    2424         * Plugin version
    2525         */
    26         const VERSION = '1.0.2';
     26        const VERSION = '1.0.3';
    2727        /**
    2828         * Prefix used to identify things related to this plugin
  • wp-advertize-it/trunk/classes/wpai-offers.php

    r1301533 r1302776  
    8181        public function register_hook_callbacks()
    8282        {
    83             add_action('admin_menu', __CLASS__ . '::register_settings_pages');
     83            add_action('admin_menu', array($this, 'register_settings_pages'));
    8484            add_action('init', array($this, 'init'));
    8585            add_action('admin_init', array($this, 'register_settings'));
     
    160160         * @mvc Controller
    161161         */
    162         public static function register_settings_pages()
    163         {
    164             add_menu_page(WPAI_NAME,
     162        public function register_settings_pages()
     163        {
     164            $settingsPage = add_menu_page(WPAI_NAME,
    165165                    WPAI_NAME . '&nbsp;<i class="glyphicon glyphicon-signal"></i>',
    166166                    self::REQUIRED_CAPABILITY,
    167167                    'wpai_main',
    168168                    __CLASS__ . '::markup_offers_page');
    169            
     169
     170            add_action( 'load-' . $settingsPage, array($this, 'load_bootstrap_css') );
     171
    170172            /*add_submenu_page(
    171173            'wpai_main',
     
    177179                    );*/
    178180        }
    179        
     181
     182        public function load_bootstrap_css(){
     183            add_action( 'admin_enqueue_scripts', array($this, 'enqueue_bootstrap_css' ) );
     184        }
     185
     186        public function enqueue_bootstrap_css()
     187        {
     188            wp_register_style(self::PREFIX . 'bootstrap-css',
     189                plugins_url('css/bootstrap-3.3.5-dist/css/bootstrap.min.css', dirname(__FILE__)),
     190                array(),
     191                null);
     192            wp_enqueue_style(self::PREFIX . 'bootstrap-css');
     193        }
     194
    180195        /*public static function add_base_tag() {
    181196       
     
    342357                    true
    343358            );*/
    344            
    345             wp_register_style(self::PREFIX . 'bootstrap-css',
    346                     plugins_url('css/bootstrap-3.3.5-dist/css/bootstrap.min.css', dirname(__FILE__)),
    347                     array(),
    348                     null);
    349            
     359
    350360            if (is_admin()) {
    351                 wp_enqueue_style(self::PREFIX . 'bootstrap-css');
    352361                wp_enqueue_script(self::PREFIX . 'angularjs');
    353362                //wp_enqueue_script(self::PREFIX . 'ngroute');
  • wp-advertize-it/trunk/readme.txt

    r1302762 r1302776  
    55Requires at least: 4.2.3
    66Tested up to: 4.3.1
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    126126== Changelog ==
    127127
     128= 1.0.3 =
     129
     130* bootstrap css only loaded in own settings page
     131
     132= 1.0.2 =
     133
     134* fixed compatibility issue with PHP 5.3 in db upgrade
     135
    128136= 1.0.1 =
    129137
Note: See TracChangeset for help on using the changeset viewer.