Changeset 1355083
- Timestamp:
- 02/21/2016 08:06:49 AM (10 years ago)
- Location:
- portfolio-gallery-master/trunk
- Files:
-
- 16 edited
-
README.txt (modified) (2 diffs)
-
admin/class-portfolio-gallery-master-admin.php (modified) (12 diffs)
-
admin/partials/menu-pgm-settings-display.php (modified) (1 diff)
-
admin/partials/menu-pgm-styles-display.php (modified) (1 diff)
-
admin/partials/settings-section-pgm-main-settings.php (modified) (1 diff)
-
admin/partials/settings-section-pgm-style-dimension.php (modified) (1 diff)
-
admin/partials/settings-section-pgm-style-settings.php (modified) (1 diff)
-
includes/class-portfolio-gallery-master-activator.php (modified) (1 diff)
-
includes/class-portfolio-gallery-master-deactivator.php (modified) (1 diff)
-
includes/class-portfolio-gallery-master-i18n.php (modified) (1 diff)
-
includes/class-portfolio-gallery-master-loader.php (modified) (1 diff)
-
includes/class-portfolio-gallery-master.php (modified) (7 diffs)
-
portfolio-gallery-master.php (modified) (4 diffs)
-
public/class-portfolio-gallery-master-public.php (modified) (6 diffs)
-
public/partials/portfolio-gallery-master-public-display.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
portfolio-gallery-master/trunk/README.txt
r1258570 r1355083 4 4 Tags: portfolio gallery, direction aware portfolio gallery, portfolio plugin, portfolio, gallery 5 5 Requires at least: 3.5.x 6 Tested up to: 4. 3.17 Stable tag: 4. 3.16 Tested up to: 4.4.2 7 Stable tag: 4.4.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 61 61 Upgrade notices describe the reason a user should upgrade. No more than 300 characters. 62 62 63 = 0.5=63 = 1.0.1 = 64 64 This version fixes a security related bug. Upgrade immediately. 65 66 = 1.0.5 = 67 * Security Improvments. Blocked direct access to plugin files. 68 * When debug mode is turned on, it reports "notice: undefined variable" for 3 options under settings menu. This issue has been fixed. 65 69 66 70 == Support == -
portfolio-gallery-master/trunk/admin/class-portfolio-gallery-master-admin.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * The admin-specific functionality of the plugin. … … 24 24 * @since 1.0.0 25 25 * @access private 26 * @var string $p lugin_nameThe ID of this plugin.26 * @var string $portfolio_gallery_master The ID of this plugin. 27 27 */ 28 private $p lugin_name;28 private $portfolio_gallery_master; 29 29 30 30 /** … … 41 41 * 42 42 * @since 1.0.0 43 * @param string $p lugin_nameThe name of this plugin.43 * @param string $portfolio_gallery_master The name of this plugin. 44 44 * @param string $version The version of this plugin. 45 45 */ 46 public function __construct( $p lugin_name, $version ) {47 $this->p lugin_name = $plugin_name;46 public function __construct( $portfolio_gallery_master, $version ) { 47 $this->portfolio_gallery_master = $portfolio_gallery_master; 48 48 $this->version = $version; 49 49 } … … 55 55 */ 56 56 public function enqueue_styles() { 57 wp_enqueue_style( $this->p lugin_name. '-pgm-admin-css', plugin_dir_url( __FILE__ ) . 'css/portfolio-gallery-master-admin.css', array(), $this->version, 'all' );58 wp_enqueue_style( $this->p lugin_name. '-pgm-minicolors-css', plugin_dir_url( __FILE__ ) . 'css/jquery.minicolors.css', array(), $this->version, 'all' );57 wp_enqueue_style( $this->portfolio_gallery_master . '-pgm-admin-css', plugin_dir_url( __FILE__ ) . 'css/portfolio-gallery-master-admin.css', array(), $this->version, 'all' ); 58 wp_enqueue_style( $this->portfolio_gallery_master . '-pgm-minicolors-css', plugin_dir_url( __FILE__ ) . 'css/jquery.minicolors.css', array(), $this->version, 'all' ); 59 59 } 60 60 … … 65 65 */ 66 66 public function enqueue_scripts() { 67 wp_enqueue_script( $this->p lugin_name. '-pgm-admin-js', plugin_dir_url( __FILE__ ) . 'js/portfolio-gallery-master-admin.js', array(), $this->version, 'all' );68 wp_enqueue_script( $this->p lugin_name. '-pgm-minicolors-js', plugin_dir_url( __FILE__ ) . 'js/jquery.minicolors.min.js', array( 'jquery' ), $this->version, 'all' );67 wp_enqueue_script( $this->portfolio_gallery_master . '-pgm-admin-js', plugin_dir_url( __FILE__ ) . 'js/portfolio-gallery-master-admin.js', array(), $this->version, 'all' ); 68 wp_enqueue_script( $this->portfolio_gallery_master . '-pgm-minicolors-js', plugin_dir_url( __FILE__ ) . 'js/jquery.minicolors.min.js', array( 'jquery' ), $this->version, 'all' ); 69 69 } 70 70 … … 196 196 array($this, 'callback_pgm_display_mode'), 197 197 'pgm_settings_menu', 198 'settings_section_pgm_main_menu' 198 'settings_section_pgm_main_menu', 199 array($this, '') 199 200 ); 200 201 add_settings_field( … … 203 204 array($this, 'callback_pgm_display_mode_rows'), 204 205 'pgm_settings_menu', 205 'settings_section_pgm_main_menu' 206 'settings_section_pgm_main_menu', 207 array($this, '') 206 208 ); 207 209 add_settings_field( … … 210 212 array($this, 'callback_pgm_display_mode_min_width'), 211 213 'pgm_settings_menu', 212 'settings_section_pgm_main_menu' 214 'settings_section_pgm_main_menu', 215 array($this, '') 213 216 ); 214 217 add_settings_field( … … 217 220 array($this, 'callback_pgm_display_mode_max_width'), 218 221 'pgm_settings_menu', 219 'settings_section_pgm_main_menu' 222 'settings_section_pgm_main_menu', 223 array($this, '') 220 224 ); 221 225 register_setting( … … 444 448 $mode = get_option( 'pgm_portfolio_display_mode' ); 445 449 446 $html .= '450 $html = ' 447 451 <div class="pgm_portfolio_display_mode_settings"> 448 452 <label for="pgm_display_per_row">Number of portfolios to display per row:</label> … … 458 462 $mode = get_option( 'pgm_portfolio_display_mode' ); 459 463 460 $html .= '464 $html = ' 461 465 <div class="pgm_portfolio_display_mode_settings"> 462 466 <label for="pgm_display_min_width">Min width of each portfolio gallery item:</label> … … 469 473 $mode = get_option( 'pgm_portfolio_display_mode' ); 470 474 471 $html .= '475 $html = ' 472 476 <div class="pgm_portfolio_display_mode_settings"> 473 477 <label for="pgm_display_max_width">Max width of each portfolio gallery item:</label> -
portfolio-gallery-master/trunk/admin/partials/menu-pgm-settings-display.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Provide a admin area view for the plugin -
portfolio-gallery-master/trunk/admin/partials/menu-pgm-styles-display.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Provide a admin area view for the plugin -
portfolio-gallery-master/trunk/admin/partials/settings-section-pgm-main-settings.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Provide a admin area view for the plugin -
portfolio-gallery-master/trunk/admin/partials/settings-section-pgm-style-dimension.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Provide a admin area view for the plugin -
portfolio-gallery-master/trunk/admin/partials/settings-section-pgm-style-settings.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Provide a admin area view for the plugin -
portfolio-gallery-master/trunk/includes/class-portfolio-gallery-master-activator.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Fired during plugin activation -
portfolio-gallery-master/trunk/includes/class-portfolio-gallery-master-deactivator.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Fired during plugin deactivation -
portfolio-gallery-master/trunk/includes/class-portfolio-gallery-master-i18n.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Define the internationalization functionality -
portfolio-gallery-master/trunk/includes/class-portfolio-gallery-master-loader.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Register all actions and filters for the plugin -
portfolio-gallery-master/trunk/includes/class-portfolio-gallery-master.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * The file that defines the core plugin class … … 45 45 * @since 1.0.0 46 46 * @access protected 47 * @var string $p lugin_nameThe string used to uniquely identify this plugin.48 */ 49 protected $p lugin_name;47 * @var string $portfolio_gallery_master The string used to uniquely identify this plugin. 48 */ 49 protected $portfolio_gallery_master; 50 50 51 51 /** … … 69 69 public function __construct() { 70 70 71 $this->p lugin_name= 'portfolio-gallery-master';71 $this->portfolio_gallery_master = 'portfolio-gallery-master'; 72 72 $this->version = '1.0.0'; 73 73 … … 136 136 137 137 $plugin_i18n = new Portfolio_Gallery_Master_i18n(); 138 $plugin_i18n->set_domain( $this->get_p lugin_name() );138 $plugin_i18n->set_domain( $this->get_portfolio_gallery_master() ); 139 139 140 140 $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' ); … … 151 151 private function define_admin_hooks() { 152 152 153 $plugin_admin = new Portfolio_Gallery_Master_Admin( $this->get_p lugin_name(), $this->get_version() );153 $plugin_admin = new Portfolio_Gallery_Master_Admin( $this->get_portfolio_gallery_master(), $this->get_version() ); 154 154 155 155 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); … … 169 169 private function define_public_hooks() { 170 170 171 $plugin_public = new Portfolio_Gallery_Master_Public( $this->get_p lugin_name(), $this->get_version() );171 $plugin_public = new Portfolio_Gallery_Master_Public( $this->get_portfolio_gallery_master(), $this->get_version() ); 172 172 173 173 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_styles' ); … … 192 192 * @return string The name of the plugin. 193 193 */ 194 public function get_p lugin_name() {195 return $this->p lugin_name;194 public function get_portfolio_gallery_master() { 195 return $this->portfolio_gallery_master; 196 196 } 197 197 -
portfolio-gallery-master/trunk/portfolio-gallery-master.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * The plugin bootstrap file … … 17 17 * Plugin URI: https://icanwp.com/plugins/portfolio-gallery-master/ 18 18 * Description: Portfolio Gallery Master is designed to provide a very simple portfolio administrations using custom post type post. Each post users create under the PGM Portfolio becomes a gallery on the page where they put the shortcode. Each post needs a featured image assigned to the post and it will automatically scaled in the original ratio to be displayed. Each portfolio gallery has a mouse overlay effect that shows the title of the portfolio post. Users can adjust the frame color, font color, overlay background color, and many more from the styles and settings. This plugin also features a responsive mode by default that always show the galleries centered to the parent container and there is a mode where you can set to show a specific number or galleries per row and automatically scale when the browser size changes. 19 * Version: 1.0. 019 * Version: 1.0.5 20 20 * Author: Web Marketing Smart 21 21 * Author URI: https://icanwp.com/ … … 35 35 * This action is documented in includes/class-portfolio-gallery-master-activator.php 36 36 */ 37 function activate_p lugin_name() {37 function activate_portfolio_gallery_master() { 38 38 require_once plugin_dir_path( __FILE__ ) . 'includes/class-portfolio-gallery-master-activator.php'; 39 39 Portfolio_Gallery_Master_Activator::activate(); … … 44 44 * This action is documented in includes/class-portfolio-gallery-master-deactivator.php 45 45 */ 46 function deactivate_p lugin_name() {46 function deactivate_portfolio_gallery_master() { 47 47 require_once plugin_dir_path( __FILE__ ) . 'includes/class-portfolio-gallery-master-deactivator.php'; 48 48 Portfolio_Gallery_Master_Deactivator::deactivate(); 49 49 } 50 50 51 register_activation_hook( __FILE__, 'activate_p lugin_name' );52 register_deactivation_hook( __FILE__, 'deactivate_p lugin_name' );51 register_activation_hook( __FILE__, 'activate_portfolio_gallery_master' ); 52 register_deactivation_hook( __FILE__, 'deactivate_portfolio_gallery_master' ); 53 53 54 54 /** -
portfolio-gallery-master/trunk/public/class-portfolio-gallery-master-public.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * The public-facing functionality of the plugin. … … 24 24 * @since 1.0.0 25 25 * @access private 26 * @var string $p lugin_nameThe ID of this plugin.26 * @var string $portfolio_gallery_master The ID of this plugin. 27 27 */ 28 private $p lugin_name;28 private $portfolio_gallery_master; 29 29 30 30 /** … … 41 41 * 42 42 * @since 1.0.0 43 * @param string $p lugin_nameThe name of the plugin.43 * @param string $portfolio_gallery_master The name of the plugin. 44 44 * @param string $version The version of this plugin. 45 45 */ 46 public function __construct( $p lugin_name, $version ) {46 public function __construct( $portfolio_gallery_master, $version ) { 47 47 48 $this->p lugin_name = $plugin_name;48 $this->portfolio_gallery_master = $portfolio_gallery_master; 49 49 $this->version = $version; 50 50 … … 57 57 */ 58 58 public function enqueue_styles() { 59 wp_enqueue_style( $this->p lugin_name. '-pgm-public-css', plugin_dir_url( __FILE__ ) . 'css/portfolio-gallery-master-public.css', array(), $this->version, 'all' );59 wp_enqueue_style( $this->portfolio_gallery_master . '-pgm-public-css', plugin_dir_url( __FILE__ ) . 'css/portfolio-gallery-master-public.css', array(), $this->version, 'all' ); 60 60 } 61 61 … … 66 66 */ 67 67 public function enqueue_scripts() { 68 wp_enqueue_script( $this->p lugin_name. '-pgm-public-js' , plugin_dir_url( __FILE__ ) . 'js/portfolio-gallery-master-public.js', array( 'jquery' ), $this->version, false );69 wp_enqueue_script( $this->p lugin_name. '-pgm-public-hoverdir-js', plugin_dir_url( __FILE__ ) . 'js/jquery.hoverdir.js', array( 'jquery' ), $this->version, false );70 wp_enqueue_script( $this->p lugin_name. '-pgm-public-modernizer-js', plugin_dir_url( __FILE__ ) . 'js/modernizr.custom.97074.js', array( 'jquery' ), $this->version, false );68 wp_enqueue_script( $this->portfolio_gallery_master . '-pgm-public-js' , plugin_dir_url( __FILE__ ) . 'js/portfolio-gallery-master-public.js', array( 'jquery' ), $this->version, false ); 69 wp_enqueue_script( $this->portfolio_gallery_master . '-pgm-public-hoverdir-js', plugin_dir_url( __FILE__ ) . 'js/jquery.hoverdir.js', array( 'jquery' ), $this->version, false ); 70 wp_enqueue_script( $this->portfolio_gallery_master . '-pgm-public-modernizer-js', plugin_dir_url( __FILE__ ) . 'js/modernizr.custom.97074.js', array( 'jquery' ), $this->version, false ); 71 71 $pgm_loc = array( 72 72 'pgm_display_mode' => get_option( 'pgm_portfolio_display_mode' ), … … 79 79 'pgm_padding' => get_option( 'pgm_portfolio_padding' ) 80 80 ); 81 wp_localize_script( $this->p lugin_name. '-pgm-public-js', 'pgm_loc', $pgm_loc );81 wp_localize_script( $this->portfolio_gallery_master . '-pgm-public-js', 'pgm_loc', $pgm_loc ); 82 82 } 83 83 -
portfolio-gallery-master/trunk/public/partials/portfolio-gallery-master-public-display.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Provide a public-facing view for the plugin -
portfolio-gallery-master/trunk/uninstall.php
r1253780 r1355083 1 1 <?php 2 2 if ( ! defined( 'ABSPATH' ) ) exit; 3 3 /** 4 4 * Fired when the plugin is uninstalled.
Note: See TracChangeset
for help on using the changeset viewer.