Version Description
- Various small bug fixes
Download this release
Release Info
| Developer | dev7studios |
| Plugin | |
| Version | 1.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.0 to 1.0.1
- changelog.txt +3 -0
- includes/core/includes/admin-ajax.php +4 -18
- includes/core/includes/admin-edit.php +22 -21
- includes/core/includes/admin-images.php +3 -18
- includes/core/includes/admin-settings.php +3 -18
- includes/core/includes/admin-view.php +4 -18
- includes/core/includes/assets.php +3 -18
- includes/core/includes/edd_sl_plugin_updater.php +1 -1
- includes/core/includes/images.php +1 -21
- includes/core/includes/post-type.php +3 -18
- includes/core/includes/shortcode.php +4 -19
- includes/core/plugin.php +9 -8
- includes/plugin.php +4 -3
- nivo-slider-lite.php +2 -2
- readme.txt +5 -2
changelog.txt
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
*** Nivo Slider Lite WordPress Plugin Changelog ***
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
2015.09.15 - version 1.0.0
|
| 4 |
* Initial release
|
| 1 |
*** Nivo Slider Lite WordPress Plugin Changelog ***
|
| 2 |
|
| 3 |
+
2016.09.02 - version 1.0.1
|
| 4 |
+
* Various small bug fixes
|
| 5 |
+
|
| 6 |
2015.09.15 - version 1.0.0
|
| 7 |
* Initial release
|
includes/core/includes/admin-ajax.php
CHANGED
|
@@ -19,16 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
-
class Dev7_Core_Admin_AJAX {
|
| 23 |
-
|
| 24 |
-
/**
|
| 25 |
-
* Plugin labels
|
| 26 |
-
*
|
| 27 |
-
* @var object
|
| 28 |
-
* @access private
|
| 29 |
-
* @since 2.2
|
| 30 |
-
*/
|
| 31 |
-
private $labels;
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Instance of Dev7 Images Core Class
|
|
@@ -49,16 +40,11 @@ class Dev7_Core_Admin_AJAX {
|
|
| 49 |
private $options;
|
| 50 |
|
| 51 |
/**
|
| 52 |
-
*
|
| 53 |
-
*
|
| 54 |
-
* @since 2.2
|
| 55 |
-
*
|
| 56 |
-
* @param array $labels Specific plugin label data
|
| 57 |
*/
|
| 58 |
-
|
| 59 |
-
$this->labels = $labels;
|
| 60 |
$this->options = get_option( $this->labels->options_key );
|
| 61 |
-
$this->core_images = new Dev7_Core_Images( $this->labels );
|
| 62 |
|
| 63 |
add_action( 'wp_ajax_' . $this->labels->post_type . '_set_meta_link', array( $this, 'set_meta_link' ) );
|
| 64 |
add_action( 'wp_ajax_' . $this->labels->post_type . '_get_meta_link', array( $this, 'get_meta_link' ) );
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
+
class Dev7_Core_Admin_AJAX extends Dev7_Core {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Instance of Dev7 Images Core Class
|
| 40 |
private $options;
|
| 41 |
|
| 42 |
/**
|
| 43 |
+
* "construct" setting up ajax action hooks
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
*/
|
| 45 |
+
protected function core_init() {
|
|
|
|
| 46 |
$this->options = get_option( $this->labels->options_key );
|
| 47 |
+
$this->core_images = new Dev7_Core_Images( $this->labels, $this->is_lite );
|
| 48 |
|
| 49 |
add_action( 'wp_ajax_' . $this->labels->post_type . '_set_meta_link', array( $this, 'set_meta_link' ) );
|
| 50 |
add_action( 'wp_ajax_' . $this->labels->post_type . '_get_meta_link', array( $this, 'get_meta_link' ) );
|
includes/core/includes/admin-edit.php
CHANGED
|
@@ -19,16 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
-
class Dev7_Core_Admin_Edit {
|
| 23 |
-
|
| 24 |
-
/**
|
| 25 |
-
* Plugin labels
|
| 26 |
-
*
|
| 27 |
-
* @var object
|
| 28 |
-
* @access private
|
| 29 |
-
* @since 2.2
|
| 30 |
-
*/
|
| 31 |
-
private $labels;
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Instance of Dev7 Images Core Class
|
|
@@ -40,15 +31,10 @@ class Dev7_Core_Admin_Edit {
|
|
| 40 |
private $core_images;
|
| 41 |
|
| 42 |
/**
|
| 43 |
-
*
|
| 44 |
-
*
|
| 45 |
-
* @since 2.2
|
| 46 |
-
*
|
| 47 |
-
* @param array $labels Specific plugin label data
|
| 48 |
*/
|
| 49 |
-
|
| 50 |
-
$this->
|
| 51 |
-
$this->core_images = new Dev7_Core_Images( $this->labels );
|
| 52 |
|
| 53 |
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
| 54 |
add_action( 'save_post', array( $this, 'save_post' ) );
|
|
@@ -119,12 +105,27 @@ class Dev7_Core_Admin_Edit {
|
|
| 119 |
echo '<div class="useful-links">';
|
| 120 |
echo '<p>' . __( 'Website:', 'dev7core' ) . ' <a href="' . DEV7_SITE_URL . '/products/' . $this->labels->slug . '/" target="_blank">' . $this->labels->plugin_name . '</a></p>';
|
| 121 |
echo '<p>' . __( 'Created by:', 'dev7core' ) . ' <a href="' . DEV7_SITE_URL . '" target="_blank">Dev7studios</a></p>';
|
| 122 |
-
|
| 123 |
-
|
|
|
|
|
|
|
| 124 |
echo '<p>' . __( 'Changelog:', 'dev7core' ) . ' <a href="' . $this->labels->plugin_url . 'changelog.txt" target="_blank">Changelog</a></p>';
|
| 125 |
echo '</div>';
|
| 126 |
}
|
| 127 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
/**
|
| 129 |
* Adds the Image Upload meta box to the edit screen to configure the [gallery]
|
| 130 |
*
|
|
@@ -354,7 +355,7 @@ class Dev7_Core_Admin_Edit {
|
|
| 354 |
break;
|
| 355 |
|
| 356 |
case 'custom':
|
| 357 |
-
echo $setting->custom;
|
| 358 |
break;
|
| 359 |
|
| 360 |
}
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
+
class Dev7_Core_Admin_Edit extends Dev7_Core {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Instance of Dev7 Images Core Class
|
| 31 |
private $core_images;
|
| 32 |
|
| 33 |
/**
|
| 34 |
+
* "construct" setting up the [gallery] edit screen
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*/
|
| 36 |
+
protected function core_init() {
|
| 37 |
+
$this->core_images = new Dev7_Core_Images( $this->labels, $this->is_lite );
|
|
|
|
| 38 |
|
| 39 |
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
| 40 |
add_action( 'save_post', array( $this, 'save_post' ) );
|
| 105 |
echo '<div class="useful-links">';
|
| 106 |
echo '<p>' . __( 'Website:', 'dev7core' ) . ' <a href="' . DEV7_SITE_URL . '/products/' . $this->labels->slug . '/" target="_blank">' . $this->labels->plugin_name . '</a></p>';
|
| 107 |
echo '<p>' . __( 'Created by:', 'dev7core' ) . ' <a href="' . DEV7_SITE_URL . '" target="_blank">Dev7studios</a></p>';
|
| 108 |
+
if ( ! $this->is_lite ) {
|
| 109 |
+
echo '<p>' . __( 'Support:', 'dev7core' ) . ' <a href="' . DEV7_SITE_URL . '/support" target="_blank">Support</a></p>';
|
| 110 |
+
}
|
| 111 |
+
echo '<p>' . __( 'Documentation:', 'dev7core' ) . ' <a href="' . $this->get_documentation_link() . '" target="_blank">Documentation</a></p>';
|
| 112 |
echo '<p>' . __( 'Changelog:', 'dev7core' ) . ' <a href="' . $this->labels->plugin_url . 'changelog.txt" target="_blank">Changelog</a></p>';
|
| 113 |
echo '</div>';
|
| 114 |
}
|
| 115 |
|
| 116 |
+
/**
|
| 117 |
+
* Get the documentation link
|
| 118 |
+
*
|
| 119 |
+
* @return string
|
| 120 |
+
*/
|
| 121 |
+
private function get_documentation_link() {
|
| 122 |
+
if ( isset( $this->labels->documentation ) && $this->labels->documentation ) {
|
| 123 |
+
return $this->labels->documentation;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
return 'http://docs.dev7studios.com';
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
/**
|
| 130 |
* Adds the Image Upload meta box to the edit screen to configure the [gallery]
|
| 131 |
*
|
| 355 |
break;
|
| 356 |
|
| 357 |
case 'custom':
|
| 358 |
+
echo isset($setting->custom) ? $setting->custom : '';
|
| 359 |
break;
|
| 360 |
|
| 361 |
}
|
includes/core/includes/admin-images.php
CHANGED
|
@@ -19,27 +19,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
-
class Dev7_Core_Admin_Images {
|
| 23 |
|
| 24 |
/**
|
| 25 |
-
*
|
| 26 |
-
*
|
| 27 |
-
* @var object
|
| 28 |
-
* @access private
|
| 29 |
-
* @since 2.2
|
| 30 |
*/
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
/**
|
| 34 |
-
* Main construct setting up the [gallery] images class
|
| 35 |
-
*
|
| 36 |
-
* @since 2.2
|
| 37 |
-
*
|
| 38 |
-
* @param array $labels Specific plugin label data
|
| 39 |
-
*/
|
| 40 |
-
public function __construct( $labels ) {
|
| 41 |
-
$this->labels = $labels;
|
| 42 |
-
|
| 43 |
add_action( 'after_setup_theme', array( $this, 'theme_support_check' ), 999 );
|
| 44 |
add_filter( 'media_view_strings', array( $this, 'custom_media_string' ), 11, 2 );
|
| 45 |
add_filter( 'uber_media_pre_insert', array( $this, 'mmp_pre_insert' ) );
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
+
class Dev7_Core_Admin_Images extends Dev7_Core {
|
| 23 |
|
| 24 |
/**
|
| 25 |
+
* "construct" setting up the [gallery] images class
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
*/
|
| 27 |
+
protected function core_init() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
add_action( 'after_setup_theme', array( $this, 'theme_support_check' ), 999 );
|
| 29 |
add_filter( 'media_view_strings', array( $this, 'custom_media_string' ), 11, 2 );
|
| 30 |
add_filter( 'uber_media_pre_insert', array( $this, 'mmp_pre_insert' ) );
|
includes/core/includes/admin-settings.php
CHANGED
|
@@ -19,16 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
-
class Dev7_Core_Admin_Settings {
|
| 23 |
-
|
| 24 |
-
/**
|
| 25 |
-
* Plugin labels
|
| 26 |
-
*
|
| 27 |
-
* @var object
|
| 28 |
-
* @access private
|
| 29 |
-
* @since 2.2
|
| 30 |
-
*/
|
| 31 |
-
private $labels;
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Plugin options
|
|
@@ -40,15 +31,9 @@ class Dev7_Core_Admin_Settings {
|
|
| 40 |
private $options;
|
| 41 |
|
| 42 |
/**
|
| 43 |
-
*
|
| 44 |
-
*
|
| 45 |
-
* @since 2.2
|
| 46 |
-
*
|
| 47 |
-
* @param array $labels Specific plugin label data
|
| 48 |
*/
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
$this->labels = $labels;
|
| 52 |
$this->options = get_option( $this->labels->options_key );
|
| 53 |
|
| 54 |
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
+
class Dev7_Core_Admin_Settings extends Dev7_Core {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Plugin options
|
| 31 |
private $options;
|
| 32 |
|
| 33 |
/**
|
| 34 |
+
* "construct" for the [gallery] settings page
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*/
|
| 36 |
+
protected function core_init() {
|
|
|
|
|
|
|
| 37 |
$this->options = get_option( $this->labels->options_key );
|
| 38 |
|
| 39 |
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
|
includes/core/includes/admin-view.php
CHANGED
|
@@ -19,16 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
-
class Dev7_Core_Admin_View {
|
| 23 |
-
|
| 24 |
-
/**
|
| 25 |
-
* Plugin labels
|
| 26 |
-
*
|
| 27 |
-
* @var object
|
| 28 |
-
* @access private
|
| 29 |
-
* @since 2.2
|
| 30 |
-
*/
|
| 31 |
-
private $labels;
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Instance of Dev7 Images Core Class
|
|
@@ -40,15 +31,10 @@ class Dev7_Core_Admin_View {
|
|
| 40 |
private $core_images;
|
| 41 |
|
| 42 |
/**
|
| 43 |
-
*
|
| 44 |
-
*
|
| 45 |
-
* @since 2.2
|
| 46 |
-
*
|
| 47 |
-
* @param array $labels Specific plugin label data
|
| 48 |
*/
|
| 49 |
-
function
|
| 50 |
-
$this->
|
| 51 |
-
$this->core_images = new Dev7_Core_Images( $this->labels );
|
| 52 |
|
| 53 |
add_action( 'manage_edit-' . $this->labels->post_type . '_columns', array( $this, 'edit_columns' ) );
|
| 54 |
add_action( 'manage_' . $this->labels->post_type . '_posts_custom_column', array( $this, 'custom_columns' ) );
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
+
class Dev7_Core_Admin_View extends Dev7_Core {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Instance of Dev7 Images Core Class
|
| 31 |
private $core_images;
|
| 32 |
|
| 33 |
/**
|
| 34 |
+
* "construct" for the [gallery] list page
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*/
|
| 36 |
+
protected function core_init() {
|
| 37 |
+
$this->core_images = new Dev7_Core_Images( $this->labels, $this->is_lite );
|
|
|
|
| 38 |
|
| 39 |
add_action( 'manage_edit-' . $this->labels->post_type . '_columns', array( $this, 'edit_columns' ) );
|
| 40 |
add_action( 'manage_' . $this->labels->post_type . '_posts_custom_column', array( $this, 'custom_columns' ) );
|
includes/core/includes/assets.php
CHANGED
|
@@ -19,27 +19,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
-
class Dev7_Core_Assets {
|
| 23 |
|
| 24 |
/**
|
| 25 |
-
*
|
| 26 |
-
*
|
| 27 |
-
* @var object
|
| 28 |
-
* @access private
|
| 29 |
-
* @since 2.2
|
| 30 |
-
*/
|
| 31 |
-
private $labels;
|
| 32 |
-
|
| 33 |
-
/**
|
| 34 |
-
* Main construct for the Dev7 core Assets class
|
| 35 |
-
*
|
| 36 |
-
* @since 2.2
|
| 37 |
-
*
|
| 38 |
-
* @param array $labels Specific plugin label data
|
| 39 |
*/
|
| 40 |
-
|
| 41 |
-
$this->labels = $labels;
|
| 42 |
-
|
| 43 |
add_action( 'init', array( $this, 'init' ) );
|
| 44 |
add_action( 'admin_print_scripts', array( $this, 'admin_print_scripts' ) );
|
| 45 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_styles' ) );
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
+
class Dev7_Core_Assets extends Dev7_Core {
|
| 23 |
|
| 24 |
/**
|
| 25 |
+
* "construct" for the Dev7 core Assets class
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
*/
|
| 27 |
+
protected function core_init() {
|
|
|
|
|
|
|
| 28 |
add_action( 'init', array( $this, 'init' ) );
|
| 29 |
add_action( 'admin_print_scripts', array( $this, 'admin_print_scripts' ) );
|
| 30 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_styles' ) );
|
includes/core/includes/edd_sl_plugin_updater.php
CHANGED
|
@@ -83,9 +83,9 @@ if ( ! class_exists( 'Dev7_EDD_SL_Plugin_Updater_16' ) ) {
|
|
| 83 |
if ( empty( $_transient_data->response ) || empty( $_transient_data->response[ $this->name ] ) ) {
|
| 84 |
|
| 85 |
$version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug ) );
|
| 86 |
-
$version_info->plugin = $this->plugin;
|
| 87 |
|
| 88 |
if ( false !== $version_info && is_object( $version_info ) && isset( $version_info->new_version ) ) {
|
|
|
|
| 89 |
|
| 90 |
$this->did_check = true;
|
| 91 |
|
| 83 |
if ( empty( $_transient_data->response ) || empty( $_transient_data->response[ $this->name ] ) ) {
|
| 84 |
|
| 85 |
$version_info = $this->api_request( 'plugin_latest_version', array( 'slug' => $this->slug ) );
|
|
|
|
| 86 |
|
| 87 |
if ( false !== $version_info && is_object( $version_info ) && isset( $version_info->new_version ) ) {
|
| 88 |
+
$version_info->plugin = $this->plugin;
|
| 89 |
|
| 90 |
$this->did_check = true;
|
| 91 |
|
includes/core/includes/images.php
CHANGED
|
@@ -19,27 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
-
class Dev7_Core_Images {
|
| 23 |
-
|
| 24 |
-
/**
|
| 25 |
-
* Plugin labels
|
| 26 |
-
*
|
| 27 |
-
* @var object
|
| 28 |
-
* @access private
|
| 29 |
-
* @since 2.2
|
| 30 |
-
*/
|
| 31 |
-
private $labels;
|
| 32 |
-
|
| 33 |
-
/**
|
| 34 |
-
* Main construct for the Dev7 core Images class
|
| 35 |
-
*
|
| 36 |
-
* @since 2.2
|
| 37 |
-
*
|
| 38 |
-
* @param array $labels Specific plugin label data
|
| 39 |
-
*/
|
| 40 |
-
public function __construct( $labels ) {
|
| 41 |
-
$this->labels = $labels;
|
| 42 |
-
}
|
| 43 |
|
| 44 |
/**
|
| 45 |
* Returns the images sizes for the site
|
| 19 |
*
|
| 20 |
* @since 2.2
|
| 21 |
*/
|
| 22 |
+
class Dev7_Core_Images extends Dev7_Core {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Returns the images sizes for the site
|
includes/core/includes/post-type.php
CHANGED
|
@@ -20,27 +20,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 20 |
*
|
| 21 |
* @since 1.0
|
| 22 |
*/
|
| 23 |
-
class Dev7_Core_Post_Type {
|
| 24 |
|
| 25 |
/**
|
| 26 |
-
*
|
| 27 |
-
*
|
| 28 |
-
* @var object
|
| 29 |
-
* @access private
|
| 30 |
-
* @since 2.2
|
| 31 |
*/
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
/**
|
| 35 |
-
* Main construct for the Dev7 core Post Type class
|
| 36 |
-
*
|
| 37 |
-
* @since 2.2
|
| 38 |
-
*
|
| 39 |
-
* @param array $labels Specific plugin label data
|
| 40 |
-
*/
|
| 41 |
-
public function __construct( $labels ) {
|
| 42 |
-
$this->labels = $labels;
|
| 43 |
-
|
| 44 |
add_action( 'init', array( $this, 'register_post_type' ) );
|
| 45 |
add_filter( 'post_updated_messages', array( $this, 'post_updated_messages' ) );
|
| 46 |
}
|
| 20 |
*
|
| 21 |
* @since 1.0
|
| 22 |
*/
|
| 23 |
+
class Dev7_Core_Post_Type extends Dev7_Core {
|
| 24 |
|
| 25 |
/**
|
| 26 |
+
* "construct" for the Dev7 core Post Type class
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
*/
|
| 28 |
+
protected function core_init() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
add_action( 'init', array( $this, 'register_post_type' ) );
|
| 30 |
add_filter( 'post_updated_messages', array( $this, 'post_updated_messages' ) );
|
| 31 |
}
|
includes/core/includes/shortcode.php
CHANGED
|
@@ -19,16 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
| 19 |
*
|
| 20 |
* @since 1.0
|
| 21 |
*/
|
| 22 |
-
class Dev7_Core_Shortcode {
|
| 23 |
-
|
| 24 |
-
/**
|
| 25 |
-
* Plugin labels
|
| 26 |
-
*
|
| 27 |
-
* @var object
|
| 28 |
-
* @access private
|
| 29 |
-
* @since 2.2
|
| 30 |
-
*/
|
| 31 |
-
private $labels;
|
| 32 |
|
| 33 |
/**
|
| 34 |
* Shortcode core scripts
|
|
@@ -85,16 +76,10 @@ class Dev7_Core_Shortcode {
|
|
| 85 |
private $core_enqueued = false;
|
| 86 |
|
| 87 |
/**
|
| 88 |
-
*
|
| 89 |
-
*
|
| 90 |
-
* @since 2.2
|
| 91 |
-
*
|
| 92 |
-
* @param array $labels Specific plugin label data
|
| 93 |
*/
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
$this->labels = $labels;
|
| 97 |
-
$this->core_images = new Dev7_Core_Images( $this->labels );
|
| 98 |
|
| 99 |
$this->core_scripts = apply_filters( $this->labels->post_type . '_shortcode_core_scripts', array() );
|
| 100 |
$this->core_styles = apply_filters( $this->labels->post_type . '_shortcode_core_styles', array() );
|
| 19 |
*
|
| 20 |
* @since 1.0
|
| 21 |
*/
|
| 22 |
+
class Dev7_Core_Shortcode extends Dev7_Core {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
/**
|
| 25 |
* Shortcode core scripts
|
| 76 |
private $core_enqueued = false;
|
| 77 |
|
| 78 |
/**
|
| 79 |
+
* "construct" for the Dev7 core Images class
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
*/
|
| 81 |
+
protected function core_init() {
|
| 82 |
+
$this->core_images = new Dev7_Core_Images( $this->labels, $this->is_lite );
|
|
|
|
|
|
|
| 83 |
|
| 84 |
$this->core_scripts = apply_filters( $this->labels->post_type . '_shortcode_core_scripts', array() );
|
| 85 |
$this->core_styles = apply_filters( $this->labels->post_type . '_shortcode_core_styles', array() );
|
includes/core/plugin.php
CHANGED
|
@@ -107,6 +107,7 @@ abstract class Dev7_Core_Plugin {
|
|
| 107 |
if ( ! $this->is_lite ) {
|
| 108 |
require_once DEV7_CORE_DIR . '/includes/edd_sl_plugin_updater.php';
|
| 109 |
}
|
|
|
|
| 110 |
require_once DEV7_CORE_DIR . '/includes/functions.php';
|
| 111 |
require_once DEV7_CORE_DIR . '/includes/assets.php';
|
| 112 |
require_once DEV7_CORE_DIR . '/includes/post-type.php';
|
|
@@ -145,14 +146,14 @@ abstract class Dev7_Core_Plugin {
|
|
| 145 |
* @since 2.2
|
| 146 |
*/
|
| 147 |
private function loader() {
|
| 148 |
-
new Dev7_Core_Assets( $this->labels );
|
| 149 |
-
new Dev7_Core_Post_Type( $this->labels );
|
| 150 |
-
$this->settings_class = new Dev7_Core_Admin_Settings( $this->labels );
|
| 151 |
-
new Dev7_Core_Admin_View( $this->labels );
|
| 152 |
-
new Dev7_Core_Admin_Edit( $this->labels );
|
| 153 |
-
new Dev7_Core_Admin_AJAX( $this->labels );
|
| 154 |
-
new Dev7_Core_Admin_Images( $this->labels );
|
| 155 |
-
new Dev7_Core_Shortcode( $this->labels );
|
| 156 |
}
|
| 157 |
|
| 158 |
/**
|
| 107 |
if ( ! $this->is_lite ) {
|
| 108 |
require_once DEV7_CORE_DIR . '/includes/edd_sl_plugin_updater.php';
|
| 109 |
}
|
| 110 |
+
require_once DEV7_CORE_DIR . '/includes/core.php';
|
| 111 |
require_once DEV7_CORE_DIR . '/includes/functions.php';
|
| 112 |
require_once DEV7_CORE_DIR . '/includes/assets.php';
|
| 113 |
require_once DEV7_CORE_DIR . '/includes/post-type.php';
|
| 146 |
* @since 2.2
|
| 147 |
*/
|
| 148 |
private function loader() {
|
| 149 |
+
new Dev7_Core_Assets( $this->labels, $this->is_lite );
|
| 150 |
+
new Dev7_Core_Post_Type( $this->labels, $this->is_lite );
|
| 151 |
+
$this->settings_class = new Dev7_Core_Admin_Settings( $this->labels, $this->is_lite );
|
| 152 |
+
new Dev7_Core_Admin_View( $this->labels, $this->is_lite );
|
| 153 |
+
new Dev7_Core_Admin_Edit( $this->labels, $this->is_lite );
|
| 154 |
+
new Dev7_Core_Admin_AJAX( $this->labels, $this->is_lite );
|
| 155 |
+
new Dev7_Core_Admin_Images( $this->labels, $this->is_lite );
|
| 156 |
+
new Dev7_Core_Shortcode( $this->labels, $this->is_lite );
|
| 157 |
}
|
| 158 |
|
| 159 |
/**
|
includes/plugin.php
CHANGED
|
@@ -68,13 +68,14 @@ class Dev7_Nivo_Slider_Lite extends Dev7_Core_Plugin {
|
|
| 68 |
'type_name' => 'type',
|
| 69 |
'singular' => __( 'Slider', 'nivo-slider' ),
|
| 70 |
'plural' => __( 'Sliders', 'nivo-slider' ),
|
|
|
|
| 71 |
);
|
| 72 |
$this->post_type = $this->labels['post_type'];
|
| 73 |
|
| 74 |
$this->add_filters();
|
| 75 |
$this->add_actions();
|
| 76 |
|
| 77 |
-
parent::__construct( $this->labels );
|
| 78 |
}
|
| 79 |
|
| 80 |
/**
|
|
@@ -334,10 +335,10 @@ class Dev7_Nivo_Slider_Lite extends Dev7_Core_Plugin {
|
|
| 334 |
if ( ! is_numeric( $settings['startSlide'] ) || $settings['startSlide'] < 0 ) {
|
| 335 |
$settings['startSlide'] = 0;
|
| 336 |
}
|
| 337 |
-
if ( ! is_numeric( $settings['thumbSizeWidth'] ) || $settings['thumbSizeWidth'] <= 0 ) {
|
| 338 |
$settings['thumbSizeWidth'] = 70;
|
| 339 |
}
|
| 340 |
-
if ( ! is_numeric( $settings['thumbSizeHeight'] ) || $settings['thumbSizeHeight'] <= 0 ) {
|
| 341 |
$settings['thumbSizeHeight'] = 50;
|
| 342 |
}
|
| 343 |
|
| 68 |
'type_name' => 'type',
|
| 69 |
'singular' => __( 'Slider', 'nivo-slider' ),
|
| 70 |
'plural' => __( 'Sliders', 'nivo-slider' ),
|
| 71 |
+
'documentation' => 'http://docs.dev7studios.com/category/34-nivo-slider'
|
| 72 |
);
|
| 73 |
$this->post_type = $this->labels['post_type'];
|
| 74 |
|
| 75 |
$this->add_filters();
|
| 76 |
$this->add_actions();
|
| 77 |
|
| 78 |
+
parent::__construct( $this->labels, true );
|
| 79 |
}
|
| 80 |
|
| 81 |
/**
|
| 335 |
if ( ! is_numeric( $settings['startSlide'] ) || $settings['startSlide'] < 0 ) {
|
| 336 |
$settings['startSlide'] = 0;
|
| 337 |
}
|
| 338 |
+
if ( ! isset( $settings['thumbSizeWidth'] ) || ! is_numeric( $settings['thumbSizeWidth'] ) || $settings['thumbSizeWidth'] <= 0 ) {
|
| 339 |
$settings['thumbSizeWidth'] = 70;
|
| 340 |
}
|
| 341 |
+
if ( ! isset( $settings['thumbSizeHeight'] ) || ! is_numeric( $settings['thumbSizeHeight'] ) || $settings['thumbSizeHeight'] <= 0 ) {
|
| 342 |
$settings['thumbSizeHeight'] = 50;
|
| 343 |
}
|
| 344 |
|
nivo-slider-lite.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Nivo Slider Lite
|
| 4 |
* Plugin URI: https://dev7studios.com/products/nivo-slider-wordpress-plugin
|
| 5 |
* Description: The official WordPress plugin for the Nivo Slider (Lite)
|
| 6 |
-
* Version: 1.0.
|
| 7 |
* Author: Dev7studios
|
| 8 |
* Author URI: https://dev7studios.com
|
| 9 |
* Text Domain: nivo-slider
|
|
@@ -26,7 +26,7 @@ class WordPress_Nivo_Slider_Lite {
|
|
| 26 |
* @var string
|
| 27 |
* @access private
|
| 28 |
*/
|
| 29 |
-
private $version = '1.0.
|
| 30 |
|
| 31 |
public function __construct() {
|
| 32 |
$this->setup_constants();
|
| 3 |
* Plugin Name: Nivo Slider Lite
|
| 4 |
* Plugin URI: https://dev7studios.com/products/nivo-slider-wordpress-plugin
|
| 5 |
* Description: The official WordPress plugin for the Nivo Slider (Lite)
|
| 6 |
+
* Version: 1.0.1
|
| 7 |
* Author: Dev7studios
|
| 8 |
* Author URI: https://dev7studios.com
|
| 9 |
* Text Domain: nivo-slider
|
| 26 |
* @var string
|
| 27 |
* @access private
|
| 28 |
*/
|
| 29 |
+
private $version = '1.0.1';
|
| 30 |
|
| 31 |
public function __construct() {
|
| 32 |
$this->setup_constants();
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: dev7studios
|
| 3 |
Tags: image, slider, nivo
|
| 4 |
Requires at least: 3.0
|
| 5 |
-
Tested up to: 4.
|
| 6 |
-
Stable tag: 1.0.
|
| 7 |
License: GPLv3
|
| 8 |
|
| 9 |
The official WordPress plugin for the Nivo Slider (Lite).
|
|
@@ -50,5 +50,8 @@ Purchasing a license gets you access to the full version of the Nivo Slider Word
|
|
| 50 |
|
| 51 |
== Changelog ==
|
| 52 |
|
|
|
|
|
|
|
|
|
|
| 53 |
= 1.0.0 =
|
| 54 |
* Initial release
|
| 2 |
Contributors: dev7studios
|
| 3 |
Tags: image, slider, nivo
|
| 4 |
Requires at least: 3.0
|
| 5 |
+
Tested up to: 4.6
|
| 6 |
+
Stable tag: 1.0.1
|
| 7 |
License: GPLv3
|
| 8 |
|
| 9 |
The official WordPress plugin for the Nivo Slider (Lite).
|
| 50 |
|
| 51 |
== Changelog ==
|
| 52 |
|
| 53 |
+
= 1.0.1 =
|
| 54 |
+
* Various small bug fixes
|
| 55 |
+
|
| 56 |
= 1.0.0 =
|
| 57 |
* Initial release
|
