Version Description
New: Option to set minimal user role for adding and managing feeds and themes
Fixed: Masonry feed thumbnails overlay opacity (Pro)
Download this release
Release Info
Developer | webdorado |
Plugin | WD Instagram Feed – Instagram Gallery |
Version | 1.1.9 |
Comparing to | |
See all releases |
Code changes from version 1.1.8 to 1.1.9
- admin-functions.php +7 -1
- framework/WDI_admin_view.php +1 -1
- readme.txt +5 -1
- wd-instagram-feed.php +12 -7
admin-functions.php
CHANGED
@@ -506,6 +506,10 @@ function wdi_field_callback($element){
|
|
506 |
$wdi_formBuilder->textarea($setting);
|
507 |
break;
|
508 |
}
|
|
|
|
|
|
|
|
|
509 |
}
|
510 |
}
|
511 |
|
@@ -551,13 +555,15 @@ function wdi_get_settings(){
|
|
551 |
$settings = array(
|
552 |
'wdi_access_token' => array('name' => 'wdi_access_token','sanitize_type'=>'text', 'required' =>'required','input_size'=>'55','type'=>'input','readonly'=>'readonly','default'=>'','field_or_not'=>'field','section'=>'wdi_configure_section','title'=>__('Access Token',"wdi")),
|
553 |
'wdi_user_name' => array('name' => 'wdi_user_name','sanitize_type'=>'text','required' =>'required','type'=>'input','section'=>'wdi_configure_section','readonly'=>'readonly','field_or_not'=>'field','default'=>'','title'=>__('Username',"wdi")),
|
|
|
|
|
554 |
'wdi_user_id' => array('name' => 'wdi_user_id','sanitize_type'=>'text','type'=>'input','section'=>'wdi_configure_section','readonly'=>'readonly','default'=>'','field_or_not'=>'no_field'),
|
555 |
'wdi_custom_css'=>array('name'=>'wdi_custom_css','sanitize_type'=>'css','type'=>'textarea','section'=>'wdi_customize_section','field_or_not'=>'field','default'=>'','title'=>__('Custom CSS',"wdi")),
|
556 |
-
'wdi_custom_js'=>array('name'=>'wdi_custom_js','sanitize_type'=>'css','type'=>'textarea','section'=>'wdi_customize_section','field_or_not'=>'field','default'=>'','title'=>__('Custom JavaScript',"wdi")),
|
557 |
//'wdi_preserve_settings_when_remove'=>array('name'=>'wdi_preserve_settings_when_remove','field_or_not'=>'field','type'=>'checkbox','default'=>'1', 'section'=>'wdi_configure_section','title'=>__('Preserve Settings When Remove',"wdi")),
|
558 |
'wdi_plugin_uninstalled' => array('name'=>'wdi_plugin_uninstalled','sanitize_type'=>'bool','field_or_not'=>'field','type'=>'input','input_type'=>'hidden','section'=>'wdi_customize_section','title'=>'','default'=>'false','value'=>'false'),
|
559 |
//'wdi_version' => array('name'=>'wdi_version','field_or_not'=>'no_field','default'=>WDI_VERSION),
|
560 |
//'wdi_first_time'=>array('name'=>'wdi_first_time','field_or_not'=>'no_field','default'=>'1')
|
|
|
561 |
);
|
562 |
return $settings;
|
563 |
}
|
506 |
$wdi_formBuilder->textarea($setting);
|
507 |
break;
|
508 |
}
|
509 |
+
case 'select':{
|
510 |
+
$wdi_formBuilder->select($setting);
|
511 |
+
break;
|
512 |
+
}
|
513 |
}
|
514 |
}
|
515 |
|
555 |
$settings = array(
|
556 |
'wdi_access_token' => array('name' => 'wdi_access_token','sanitize_type'=>'text', 'required' =>'required','input_size'=>'55','type'=>'input','readonly'=>'readonly','default'=>'','field_or_not'=>'field','section'=>'wdi_configure_section','title'=>__('Access Token',"wdi")),
|
557 |
'wdi_user_name' => array('name' => 'wdi_user_name','sanitize_type'=>'text','required' =>'required','type'=>'input','section'=>'wdi_configure_section','readonly'=>'readonly','field_or_not'=>'field','default'=>'','title'=>__('Username',"wdi")),
|
558 |
+
'wdi_feeds_min_capability' => array('name'=>'wdi_feeds_min_capability',"sanitize_type"=> "text",'title'=>__('Minimal role to add and manage Feeds or Themes',"wdi"),'type'=>'select','field_or_not'=>'field',"default"=>"manage_options",'section'=>'wdi_configure_section','valid_options'=>array('manage_options'=>__('Administrator', 'wdi'),'publish_posts'=>__('Author', 'wdi'))),
|
559 |
+
|
560 |
'wdi_user_id' => array('name' => 'wdi_user_id','sanitize_type'=>'text','type'=>'input','section'=>'wdi_configure_section','readonly'=>'readonly','default'=>'','field_or_not'=>'no_field'),
|
561 |
'wdi_custom_css'=>array('name'=>'wdi_custom_css','sanitize_type'=>'css','type'=>'textarea','section'=>'wdi_customize_section','field_or_not'=>'field','default'=>'','title'=>__('Custom CSS',"wdi")),
|
|
|
562 |
//'wdi_preserve_settings_when_remove'=>array('name'=>'wdi_preserve_settings_when_remove','field_or_not'=>'field','type'=>'checkbox','default'=>'1', 'section'=>'wdi_configure_section','title'=>__('Preserve Settings When Remove',"wdi")),
|
563 |
'wdi_plugin_uninstalled' => array('name'=>'wdi_plugin_uninstalled','sanitize_type'=>'bool','field_or_not'=>'field','type'=>'input','input_type'=>'hidden','section'=>'wdi_customize_section','title'=>'','default'=>'false','value'=>'false'),
|
564 |
//'wdi_version' => array('name'=>'wdi_version','field_or_not'=>'no_field','default'=>WDI_VERSION),
|
565 |
//'wdi_first_time'=>array('name'=>'wdi_first_time','field_or_not'=>'no_field','default'=>'1')
|
566 |
+
'wdi_custom_js'=>array('name'=>'wdi_custom_js','sanitize_type'=>'css','type'=>'textarea','section'=>'wdi_customize_section','field_or_not'=>'field','default'=>'','title'=>__('Custom JavaScript',"wdi")),
|
567 |
);
|
568 |
return $settings;
|
569 |
}
|
framework/WDI_admin_view.php
CHANGED
@@ -505,7 +505,7 @@ class WDI_admin_view{
|
|
505 |
else{
|
506 |
global $wdi_options;
|
507 |
$optionname = isset($element["multiple"]) ? WDI_OPT.'[' .$element['name']. '][]' : WDI_OPT.'[' .$element['name']. ']';
|
508 |
-
$opt_val = $wdi_options[$element['name']];
|
509 |
}
|
510 |
$opt_val = is_array($opt_val) ? $opt_val : array($opt_val);
|
511 |
$multiple = isset($element["multiple"]) ? true : false;
|
505 |
else{
|
506 |
global $wdi_options;
|
507 |
$optionname = isset($element["multiple"]) ? WDI_OPT.'[' .$element['name']. '][]' : WDI_OPT.'[' .$element['name']. ']';
|
508 |
+
$opt_val = isset($wdi_options[$element['name']]) ? $wdi_options[$element['name']] : $element["default"];
|
509 |
}
|
510 |
$opt_val = is_array($opt_val) ? $opt_val : array($opt_val);
|
511 |
$multiple = isset($element["multiple"]) ? true : false;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
|
|
4 |
Tags: : custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, Instagram wall, lightbox, photos
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.6
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -107,6 +107,10 @@ After downloading the ZIP file of the Instagram Feed WD plugin,
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
|
|
110 |
= 1.1.8 =
|
111 |
Changed: Font-Awesome updated to version 4.6.3
|
112 |
|
4 |
Tags: : custom instagram feed, feed, instagram, hashtag, Instagram feed, instagram gallery, instagram posts, Instagram images, Instagram photos, Instagram wall, lightbox, photos
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 1.1.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 1.1.9 =
|
111 |
+
New: Option to set minimal user role for adding and managing feeds and themes
|
112 |
+
Fixed: Masonry feed thumbnails overlay opacity (Pro)
|
113 |
+
|
114 |
= 1.1.8 =
|
115 |
Changed: Font-Awesome updated to version 4.6.3
|
116 |
|
wd-instagram-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Instagram Feed WD
|
4 |
Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
|
5 |
Description: WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
|
6 |
-
Version: 1.1.
|
7 |
Author: WebDorado
|
8 |
Author URI: https://web-dorado.com
|
9 |
License: GPLv2 or later
|
@@ -20,7 +20,7 @@ define("WDI_META", "_".WDI_VAR."_meta");
|
|
20 |
//define("wdi",'wdi');
|
21 |
define('WDI_FEED_TABLE','wdi_feeds');
|
22 |
define('WDI_THEME_TABLE','wdi_themes');
|
23 |
-
define('WDI_VERSION','1.1.
|
24 |
define('WDI_IS_PRO','false');
|
25 |
|
26 |
|
@@ -149,12 +149,17 @@ add_action('admin_menu', 'WDI_instagram_menu');
|
|
149 |
add_action('admin_head-toplevel_page_wdi_feeds', 'wdi_check_necessary_params');
|
150 |
function WDI_instagram_menu() {
|
151 |
$menu_icon = WDI_URL .'/images/menu_icon.png';
|
152 |
-
$
|
153 |
-
|
154 |
-
|
|
|
|
|
|
|
|
|
155 |
add_submenu_page('wdi_feeds',__('Settings',"wdi"),__('Settings',"wdi"),'manage_options','wdi_settings','WDI_instagram_settings_page');
|
156 |
-
add_submenu_page('wdi_feeds',__('Featured Themes',"wdi"),__('Featured Themes',"wdi"),'
|
157 |
-
add_submenu_page('wdi_feeds',__('Buy Pro',"wdi"),__('Buy Pro',"wdi"),'
|
|
|
158 |
}
|
159 |
|
160 |
|
3 |
Plugin Name: Instagram Feed WD
|
4 |
Plugin URI: https://web-dorado.com/products/wordpress-instagram-feed-wd.html
|
5 |
Description: WD Instagram Feed is a user-friendly tool for displaying user or hashtag-based feeds on your website. You can create feeds with one of the available layouts. It allows displaying image metadata, open up images in lightbox, download them and even share in social networking websites.
|
6 |
+
Version: 1.1.9
|
7 |
Author: WebDorado
|
8 |
Author URI: https://web-dorado.com
|
9 |
License: GPLv2 or later
|
20 |
//define("wdi",'wdi');
|
21 |
define('WDI_FEED_TABLE','wdi_feeds');
|
22 |
define('WDI_THEME_TABLE','wdi_themes');
|
23 |
+
define('WDI_VERSION','1.1.9');
|
24 |
define('WDI_IS_PRO','false');
|
25 |
|
26 |
|
149 |
add_action('admin_head-toplevel_page_wdi_feeds', 'wdi_check_necessary_params');
|
150 |
function WDI_instagram_menu() {
|
151 |
$menu_icon = WDI_URL .'/images/menu_icon.png';
|
152 |
+
global $wdi_options;
|
153 |
+
$min_feeds_capability = isset($wdi_options['wdi_feeds_min_capability']) ? $wdi_options['wdi_feeds_min_capability'] : "manage_options";
|
154 |
+
$min_feeds_capability = $min_feeds_capability == 'publish_posts' ? 'publish_posts' : "manage_options";
|
155 |
+
|
156 |
+
$settings_page = add_menu_page(__('Instagram Feed WD',"wdi"), __('Instagram Feed WD',"wdi"),$min_feeds_capability,'wdi_feeds','WDI_instagram_feeds_page',$menu_icon);
|
157 |
+
add_submenu_page('wdi_feeds',__('Feeds',"wdi"),__('Feeds',"wdi"),$min_feeds_capability,'wdi_feeds','WDI_instagram_feeds_page');
|
158 |
+
add_submenu_page('wdi_feeds',__('Themes',"wdi"),__('Themes',"wdi"),$min_feeds_capability,'wdi_themes','WDI_instagram_themes_page');
|
159 |
add_submenu_page('wdi_feeds',__('Settings',"wdi"),__('Settings',"wdi"),'manage_options','wdi_settings','WDI_instagram_settings_page');
|
160 |
+
add_submenu_page('wdi_feeds',__('Featured Themes',"wdi"),__('Featured Themes',"wdi"),$min_feeds_capability,'wdi_featured_themes','wdi_featured_themes');
|
161 |
+
add_submenu_page('wdi_feeds',__('Buy Pro',"wdi"),__('Buy Pro',"wdi"),$min_feeds_capability,'wdi_licensing','WDI_instagram_licensing_page');
|
162 |
+
|
163 |
}
|
164 |
|
165 |
|