Version Description
- Default settings can now be changed from the 'General Settings' page.
- Custom styles are now shared across all slideshows and endless customizations can be created.
- Added input fields to set separate titles and descriptions for shared images.
- Cleaned up the slides list's layout, to reach a more WordPress-like look.
- Adapted the 'Dark' style to be more compatible with the WordPress TwentyTwelve theme.
- Changed 'Insert Slideshow' link to appear as a button.
- Empty settings won't be shown at the end of the settings boxes.
Download this release
Release Info
Developer | stefanboonstra |
Plugin | Slideshow |
Version | 2.1.23 |
Comparing to | |
See all releases |
Code changes from version 2.1.22 to 2.1.23
- classes/SlideshowPlugin.php +20 -10
- classes/SlideshowPluginGeneralSettings.php +136 -9
- classes/SlideshowPluginInstaller.php +86 -0
- classes/SlideshowPluginPostType.php +8 -3
- classes/SlideshowPluginSettingsHandler.php +0 -456
- classes/SlideshowPluginShortcode.php +2 -1
- classes/SlideshowPluginSlideInserter.php +8 -5
- classes/SlideshowPluginSlideshowSettingsHandler.php +37 -13
- classes/SlideshowPluginUpdater.php +0 -286
- js/SlideshowPluginGeneralSettings/general-settings.js +171 -2
- js/SlideshowPluginPostType/post-type-handler.js +1 -0
- js/SlideshowPluginSlideInserter/slide-inserter.js +10 -11
- languages/slideshow-plugin-es_ES.mo +0 -0
- languages/slideshow-plugin-es_ES.po +502 -0
- languages/slideshow-plugin-nl_NL.mo +0 -0
- languages/slideshow-plugin-nl_NL.po +254 -157
- readme.txt +88 -22
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
- screenshot-8.png +0 -0
- slideshow.php +2 -2
- style/SlideshowPlugin/style-dark.css +2 -5
- style/SlideshowPluginGeneralSettings/general-settings.css +101 -0
- views/SlideshowPlugin/slideshow.php +18 -9
- views/SlideshowPluginGeneralSettings/general-settings.php +290 -31
- views/SlideshowPluginPostType/settings.php +1 -1
- views/SlideshowPluginPostType/slides.php +129 -56
- views/SlideshowPluginPostType/style-settings.php +16 -4
- views/SlideshowPluginShortcode/shortcode-inserter.php +4 -2
classes/SlideshowPlugin.php
CHANGED
@@ -58,7 +58,8 @@ class SlideshowPlugin {
|
|
58 |
'numberposts' => 1,
|
59 |
'offset' => 0,
|
60 |
'orderby' => 'rand',
|
61 |
-
'post_type' => SlideshowPluginPostType::$postType
|
|
|
62 |
));
|
63 |
|
64 |
if(is_array($post))
|
@@ -96,22 +97,31 @@ class SlideshowPlugin {
|
|
96 |
// The slideshow's session ID, allows JavaScript and CSS to distinguish between multiple slideshows
|
97 |
$sessionID = self::$sessionCounter++;
|
98 |
|
99 |
-
// Get stylesheet
|
100 |
-
$style = '';
|
101 |
-
if(
|
102 |
-
|
103 |
-
|
104 |
-
$filePath = SlideshowPluginMain::getPluginPath() . '
|
105 |
-
if(file_exists(
|
|
|
|
|
|
|
106 |
ob_start();
|
107 |
include($filePath);
|
108 |
-
$style =
|
109 |
}
|
110 |
}
|
111 |
|
112 |
// Append the random ID to the slideshow container in the stylesheet, to identify multiple slideshows
|
113 |
-
if(!empty($style))
|
|
|
|
|
|
|
|
|
|
|
114 |
$style = str_replace('.slideshow_container', '.slideshow_container_' . $sessionID, $style);
|
|
|
115 |
|
116 |
// Include output file to store output in $output.
|
117 |
$output = '';
|
58 |
'numberposts' => 1,
|
59 |
'offset' => 0,
|
60 |
'orderby' => 'rand',
|
61 |
+
'post_type' => SlideshowPluginPostType::$postType,
|
62 |
+
'suppress_filters' => true
|
63 |
));
|
64 |
|
65 |
if(is_array($post))
|
97 |
// The slideshow's session ID, allows JavaScript and CSS to distinguish between multiple slideshows
|
98 |
$sessionID = self::$sessionCounter++;
|
99 |
|
100 |
+
// Get stylesheet. If the style was not found, see if a default stylesheet can be loaded
|
101 |
+
$style = get_option($styleSettings['style'], null);
|
102 |
+
if(!isset($style)){
|
103 |
+
|
104 |
+
// Check if default stylesheet exists, if not get the light variant
|
105 |
+
$filePath = SlideshowPluginMain::getPluginPath() . DIRECTORY_SEPARATOR . 'style' . DIRECTORY_SEPARATOR . __CLASS__ . DIRECTORY_SEPARATOR . $styleSettings['style'];
|
106 |
+
if(!file_exists($filePath))
|
107 |
+
$filePath = SlideshowPluginMain::getPluginPath() . DIRECTORY_SEPARATOR . 'style' . DIRECTORY_SEPARATOR . __CLASS__ . DIRECTORY_SEPARATOR . 'style-light.css';
|
108 |
+
|
109 |
+
if(file_exists($filePath)){
|
110 |
ob_start();
|
111 |
include($filePath);
|
112 |
+
$style = ob_get_clean();
|
113 |
}
|
114 |
}
|
115 |
|
116 |
// Append the random ID to the slideshow container in the stylesheet, to identify multiple slideshows
|
117 |
+
if(!empty($style)){
|
118 |
+
|
119 |
+
// Replace URL tag with the site's URL
|
120 |
+
$style = str_replace('%plugin-url%', SlideshowPluginMain::getPluginUrl(), $style);
|
121 |
+
|
122 |
+
// Add slideshow's page ID to the CSS container class to differentiate between slideshows
|
123 |
$style = str_replace('.slideshow_container', '.slideshow_container_' . $sessionID, $style);
|
124 |
+
}
|
125 |
|
126 |
// Include output file to store output in $output.
|
127 |
$output = '';
|
classes/SlideshowPluginGeneralSettings.php
CHANGED
@@ -5,11 +5,11 @@
|
|
5 |
*
|
6 |
* @since 2.1.22
|
7 |
* @author Stefan Boonstra
|
8 |
-
* @version
|
9 |
*/
|
10 |
class SlideshowPluginGeneralSettings {
|
11 |
|
12 |
-
/**
|
13 |
static $settingsGroup = 'slideshow-jquery-image-gallery-general-settings';
|
14 |
|
15 |
/** User capability settings */
|
@@ -19,6 +19,13 @@ class SlideshowPluginGeneralSettings {
|
|
19 |
'deleteSlideshows' => 'slideshow-jquery-image-gallery-delete-slideshows'
|
20 |
);
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
/**
|
23 |
* Initializes the slideshow post type's general settings.
|
24 |
*
|
@@ -62,6 +69,17 @@ class SlideshowPluginGeneralSettings {
|
|
62 |
);
|
63 |
}
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
/**
|
66 |
* Registers required settings into the WordPress settings API.
|
67 |
* Only performed when actually on the general settings page.
|
@@ -74,10 +92,17 @@ class SlideshowPluginGeneralSettings {
|
|
74 |
if(array_pop(explode('/', $_SERVER['PHP_SELF'])) != 'options.php')
|
75 |
return;
|
76 |
|
77 |
-
// Register settings, saving capabilities only has to be called once.
|
78 |
register_setting(self::$settingsGroup, self::$capabilities['addSlideshows']);
|
79 |
register_setting(self::$settingsGroup, self::$capabilities['editSlideshows']);
|
80 |
register_setting(self::$settingsGroup, self::$capabilities['deleteSlideshows'], array(__CLASS__, 'saveCapabilities'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
|
83 |
/**
|
@@ -87,6 +112,19 @@ class SlideshowPluginGeneralSettings {
|
|
87 |
*/
|
88 |
static function enqueue(){
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
// Enqueue general settings script
|
91 |
wp_enqueue_script(
|
92 |
'slideshow-jquery-image-gallery-general-settings',
|
@@ -94,22 +132,65 @@ class SlideshowPluginGeneralSettings {
|
|
94 |
array('jquery'),
|
95 |
SlideshowPluginMain::$version
|
96 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
|
99 |
/**
|
100 |
-
*
|
101 |
*
|
102 |
-
*
|
|
|
|
|
|
|
|
|
|
|
103 |
*/
|
104 |
-
static function
|
105 |
|
106 |
-
//
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
|
110 |
/**
|
111 |
* Saves capabilities, called by a callback from a registered capability setting
|
112 |
*
|
|
|
113 |
* @param String $capability
|
114 |
* @return String $capability
|
115 |
*/
|
@@ -121,7 +202,7 @@ class SlideshowPluginGeneralSettings {
|
|
121 |
return $capability;
|
122 |
|
123 |
// Roles
|
124 |
-
global $wp_roles;
|
125 |
|
126 |
// Loop through available user roles
|
127 |
foreach($wp_roles->roles as $roleSlug => $roleValues){
|
@@ -151,4 +232,50 @@ class SlideshowPluginGeneralSettings {
|
|
151 |
|
152 |
return $capability;
|
153 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
}
|
5 |
*
|
6 |
* @since 2.1.22
|
7 |
* @author Stefan Boonstra
|
8 |
+
* @version 19-12-12
|
9 |
*/
|
10 |
class SlideshowPluginGeneralSettings {
|
11 |
|
12 |
+
/** Settings Group */
|
13 |
static $settingsGroup = 'slideshow-jquery-image-gallery-general-settings';
|
14 |
|
15 |
/** User capability settings */
|
19 |
'deleteSlideshows' => 'slideshow-jquery-image-gallery-delete-slideshows'
|
20 |
);
|
21 |
|
22 |
+
/** Default slideshow settings */
|
23 |
+
static $defaultSettings = 'slideshow-jquery-image-gallery-default-settings';
|
24 |
+
static $defaultStyleSettings = 'slideshow-jquery-image-gallery-default-style-settings';
|
25 |
+
|
26 |
+
/** List of pointers to custom style options */
|
27 |
+
static $customStyles = 'slideshow-jquery-image-gallery-custom-styles';
|
28 |
+
|
29 |
/**
|
30 |
* Initializes the slideshow post type's general settings.
|
31 |
*
|
69 |
);
|
70 |
}
|
71 |
|
72 |
+
/**
|
73 |
+
* Shows the general settings page.
|
74 |
+
*
|
75 |
+
* @since 2.1.22
|
76 |
+
*/
|
77 |
+
static function generalSettings(){
|
78 |
+
|
79 |
+
// Include general settings page
|
80 |
+
include SlideshowPluginMain::getPluginPath() . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . __CLASS__ . DIRECTORY_SEPARATOR . 'general-settings.php';
|
81 |
+
}
|
82 |
+
|
83 |
/**
|
84 |
* Registers required settings into the WordPress settings API.
|
85 |
* Only performed when actually on the general settings page.
|
92 |
if(array_pop(explode('/', $_SERVER['PHP_SELF'])) != 'options.php')
|
93 |
return;
|
94 |
|
95 |
+
// Register user capability settings, saving capabilities only has to be called once.
|
96 |
register_setting(self::$settingsGroup, self::$capabilities['addSlideshows']);
|
97 |
register_setting(self::$settingsGroup, self::$capabilities['editSlideshows']);
|
98 |
register_setting(self::$settingsGroup, self::$capabilities['deleteSlideshows'], array(__CLASS__, 'saveCapabilities'));
|
99 |
+
|
100 |
+
// Register default slideshow settings
|
101 |
+
register_setting(self::$settingsGroup, self::$defaultSettings);
|
102 |
+
register_setting(self::$settingsGroup, self::$defaultStyleSettings);
|
103 |
+
|
104 |
+
// Register custom style settings
|
105 |
+
register_setting(self::$settingsGroup, self::$customStyles, array(__CLASS__, 'saveCustomStyles'));
|
106 |
}
|
107 |
|
108 |
/**
|
112 |
*/
|
113 |
static function enqueue(){
|
114 |
|
115 |
+
// Return when not on a slideshow edit page, or files have already been included.
|
116 |
+
$currentScreen = get_current_screen();
|
117 |
+
if($currentScreen->post_type != SlideshowPluginPostType::$postType)
|
118 |
+
return;
|
119 |
+
|
120 |
+
// Enqueue general settings stylesheet
|
121 |
+
wp_enqueue_style(
|
122 |
+
'slideshow-jquery-image-gallery-general-settings',
|
123 |
+
SlideshowPluginMain::getPluginUrl() . '/style/' . __CLASS__ . '/general-settings.css',
|
124 |
+
array(),
|
125 |
+
SlideshowPluginMain::$version
|
126 |
+
);
|
127 |
+
|
128 |
// Enqueue general settings script
|
129 |
wp_enqueue_script(
|
130 |
'slideshow-jquery-image-gallery-general-settings',
|
132 |
array('jquery'),
|
133 |
SlideshowPluginMain::$version
|
134 |
);
|
135 |
+
|
136 |
+
// Localize general settings script
|
137 |
+
wp_localize_script(
|
138 |
+
'slideshow-jquery-image-gallery-general-settings',
|
139 |
+
'GeneralSettingsVariables',
|
140 |
+
array(
|
141 |
+
'customStylesKey' => self::$customStyles,
|
142 |
+
'newCustomizationPrefix' => __('New', 'slideshow-plugin'),
|
143 |
+
'confirmDeleteMessage' => __('Are you sure you want to delete this custom style?', 'slideshow-plugin')
|
144 |
+
)
|
145 |
+
);
|
146 |
}
|
147 |
|
148 |
/**
|
149 |
+
* Returns an array of stylesheets with its keys and respective names.
|
150 |
*
|
151 |
+
* When the $separateDefaultFromCustom boolean is set to true, the default stylesheets will be returned separately
|
152 |
+
* from the custom stylesheets as: array('default' => array(), 'custom' => array()) respectively.
|
153 |
+
*
|
154 |
+
* @since 2.1.23
|
155 |
+
* @param boolean $separateDefaultFromCustom (optional, defaults to false)
|
156 |
+
* @return array $stylesheets
|
157 |
*/
|
158 |
+
static function getStylesheets($separateDefaultFromCustom = false){
|
159 |
|
160 |
+
// Default styles
|
161 |
+
$defaultStyles = array(
|
162 |
+
'style-light.css' => __('Light', 'slideshow-plugin'),
|
163 |
+
'style-dark.css' => __('Dark', 'slideshow-plugin')
|
164 |
+
);
|
165 |
+
|
166 |
+
// Loop through default stylesheets
|
167 |
+
$stylesheetsFilePath = SlideshowPluginMain::getPluginPath() . DIRECTORY_SEPARATOR . 'style' . DIRECTORY_SEPARATOR . 'SlideshowPlugin';
|
168 |
+
foreach($defaultStyles as $fileName => $name){
|
169 |
+
|
170 |
+
// Check if stylesheet exists on server, don't offer it when it does not exist.
|
171 |
+
if(!file_exists($stylesheetsFilePath . DIRECTORY_SEPARATOR . $fileName))
|
172 |
+
unset($defaultStyles[$fileName]);
|
173 |
+
}
|
174 |
+
|
175 |
+
// Get custom styles
|
176 |
+
$customStyles = get_option(SlideshowPluginGeneralSettings::$customStyles, array());
|
177 |
+
|
178 |
+
// Return
|
179 |
+
if($separateDefaultFromCustom)
|
180 |
+
return array(
|
181 |
+
'default' => $defaultStyles,
|
182 |
+
'custom' => $customStyles
|
183 |
+
);
|
184 |
+
return array_merge(
|
185 |
+
$defaultStyles,
|
186 |
+
$customStyles
|
187 |
+
);
|
188 |
}
|
189 |
|
190 |
/**
|
191 |
* Saves capabilities, called by a callback from a registered capability setting
|
192 |
*
|
193 |
+
* @since 2.1.23
|
194 |
* @param String $capability
|
195 |
* @return String $capability
|
196 |
*/
|
202 |
return $capability;
|
203 |
|
204 |
// Roles
|
205 |
+
global $wp_roles;
|
206 |
|
207 |
// Loop through available user roles
|
208 |
foreach($wp_roles->roles as $roleSlug => $roleValues){
|
232 |
|
233 |
return $capability;
|
234 |
}
|
235 |
+
|
236 |
+
/**
|
237 |
+
* Saves custom styles, called by a callback from a registered custom styles setting
|
238 |
+
*
|
239 |
+
* @since 2.1.23
|
240 |
+
* @param array $customStyles
|
241 |
+
* @return array $newCustomStyles
|
242 |
+
*/
|
243 |
+
static function saveCustomStyles($customStyles){
|
244 |
+
|
245 |
+
// Verify nonce
|
246 |
+
$nonce = isset($_POST['_wpnonce']) ? $_POST['_wpnonce'] : '';
|
247 |
+
if(!wp_verify_nonce($nonce, self::$settingsGroup . '-options'))
|
248 |
+
return $customStyles;
|
249 |
+
|
250 |
+
// Remove custom styles that have been deleted
|
251 |
+
$oldCustomStyles = get_option(self::$customStyles, array());
|
252 |
+
if(is_array($oldCustomStyles)){
|
253 |
+
foreach($oldCustomStyles as $oldCustomStyleKey => $oldCustomStyleValue){
|
254 |
+
|
255 |
+
// Delete option from database if it no longer exists
|
256 |
+
if(!array_key_exists($oldCustomStyleKey, $customStyles))
|
257 |
+
delete_option($oldCustomStyleKey);
|
258 |
+
}
|
259 |
+
}
|
260 |
+
|
261 |
+
// Loop through new custom styles
|
262 |
+
$newCustomStyles = array();
|
263 |
+
if(is_array($customStyles)){
|
264 |
+
foreach($customStyles as $customStyleKey => $customStyleValue){
|
265 |
+
|
266 |
+
// Put custom style key and name into the $newCustomStyle array
|
267 |
+
$newCustomStyles[$customStyleKey] = isset($customStyleValue['title']) ? $customStyleValue['title'] : __('Untitled', 'slideshow-plugin');
|
268 |
+
|
269 |
+
// Create or update new custom style
|
270 |
+
$style = isset($customStyleValue['style']) ? $customStyleValue['style'] : '';
|
271 |
+
if(get_option($customStyleKey))
|
272 |
+
update_option($customStyleKey, $style);
|
273 |
+
else
|
274 |
+
add_option($customStyleKey, $style, '', 'no');
|
275 |
+
}
|
276 |
+
}
|
277 |
+
|
278 |
+
// Return
|
279 |
+
return $newCustomStyles;
|
280 |
+
}
|
281 |
}
|
classes/SlideshowPluginInstaller.php
CHANGED
@@ -55,10 +55,96 @@ class SlideshowPluginInstaller {
|
|
55 |
if(self::firstVersionGreaterThanSecond('2.1.22', $currentVersion) || $currentVersion == null)
|
56 |
self::setCapabilities();
|
57 |
|
|
|
|
|
|
|
|
|
58 |
// Set new version
|
59 |
update_option(self::$versionKey, SlideshowPluginMain::$version);
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
/**
|
63 |
* Sets capabilities for the default users that have access to creating, updating and deleting slideshows.
|
64 |
*
|
55 |
if(self::firstVersionGreaterThanSecond('2.1.22', $currentVersion) || $currentVersion == null)
|
56 |
self::setCapabilities();
|
57 |
|
58 |
+
// Update to version 2.1.23
|
59 |
+
if(self::firstVersionGreaterThanSecond('2.1.23', $currentVersion) || $currentVersion == null)
|
60 |
+
self::updateV2_1_20_to_V2_2_1_23();
|
61 |
+
|
62 |
// Set new version
|
63 |
update_option(self::$versionKey, SlideshowPluginMain::$version);
|
64 |
}
|
65 |
|
66 |
+
/**
|
67 |
+
* Version 2.1.23 introduces shared custom styles. Styles customized by a user need to be converted to a custom
|
68 |
+
* style on the General Settings page.
|
69 |
+
*
|
70 |
+
* @since 2.1.23
|
71 |
+
*/
|
72 |
+
private static function updateV2_1_20_to_V2_2_1_23(){
|
73 |
+
|
74 |
+
// Check if this has already been done
|
75 |
+
if(get_option('slideshow-jquery-image-gallery-updated-from-v2-1-20-to-v2-1-23') !== false)
|
76 |
+
return;
|
77 |
+
|
78 |
+
// Get slideshows
|
79 |
+
$slideshows = get_posts(array(
|
80 |
+
'numberposts' => -1,
|
81 |
+
'offset' => 0,
|
82 |
+
'post_type' => 'slideshow'
|
83 |
+
));
|
84 |
+
|
85 |
+
// Loop through slideshows
|
86 |
+
if(is_array($slideshows) && count($slideshows > 0)){
|
87 |
+
foreach($slideshows as $slideshow){
|
88 |
+
// Get settings
|
89 |
+
$styleSettings = maybe_unserialize(get_post_meta(
|
90 |
+
$slideshow->ID,
|
91 |
+
'styleSettings',
|
92 |
+
true
|
93 |
+
));
|
94 |
+
if(!is_array($styleSettings) || count($styleSettings) <= 0)
|
95 |
+
continue;
|
96 |
+
|
97 |
+
// Only save custom style when it's the current setting
|
98 |
+
if( isset($styleSettings['style']) &&
|
99 |
+
$styleSettings['style'] == 'custom' &&
|
100 |
+
isset($styleSettings['custom']) &&
|
101 |
+
!empty($styleSettings['custom'])){
|
102 |
+
|
103 |
+
// Custom style key
|
104 |
+
$stylesKey = 'slideshow-jquery-image-gallery-custom-styles';
|
105 |
+
$customStyleKey = $stylesKey . '_' . $slideshow->ID;
|
106 |
+
|
107 |
+
// Add stylesheet to database, continue to next post when failed.
|
108 |
+
if(!add_option(
|
109 |
+
$customStyleKey,
|
110 |
+
$styleSettings['custom'],
|
111 |
+
'',
|
112 |
+
'no'
|
113 |
+
))
|
114 |
+
continue;
|
115 |
+
|
116 |
+
// Get list of stylesheets to link the new stylesheet to.
|
117 |
+
$styleSheets = get_option($stylesKey, array());
|
118 |
+
|
119 |
+
// Stylesheets must be an array
|
120 |
+
if(!is_array($styleSheets) || count($styleSheets) <= 0)
|
121 |
+
$styleSheets = array();
|
122 |
+
|
123 |
+
// Link new stylesheet to stylesheets array
|
124 |
+
$styleSheets[$customStyleKey] = $slideshow->post_title . ' (ID: ' . $slideshow->ID . ')';
|
125 |
+
|
126 |
+
// Update stylesheets array
|
127 |
+
update_option($stylesKey, $styleSheets);
|
128 |
+
|
129 |
+
// Set style setting to the custom style's key
|
130 |
+
$styleSettings['style'] = $customStyleKey;
|
131 |
+
}
|
132 |
+
|
133 |
+
// Delete 'custom' key from array
|
134 |
+
unset($styleSettings['custom']);
|
135 |
+
|
136 |
+
// Update post meta
|
137 |
+
update_post_meta(
|
138 |
+
$slideshow->ID,
|
139 |
+
'styleSettings',
|
140 |
+
$styleSettings
|
141 |
+
);
|
142 |
+
}
|
143 |
+
}
|
144 |
+
|
145 |
+
update_option('slideshow-plugin-updated-from-v2-to-v2-1-20', 'updated');
|
146 |
+
}
|
147 |
+
|
148 |
/**
|
149 |
* Sets capabilities for the default users that have access to creating, updating and deleting slideshows.
|
150 |
*
|
classes/SlideshowPluginPostType.php
CHANGED
@@ -94,17 +94,22 @@ class SlideshowPluginPostType {
|
|
94 |
wp_enqueue_script(
|
95 |
'post-type-handler',
|
96 |
SlideshowPluginMain::getPluginUrl() . '/js/' . __CLASS__ . '/post-type-handler.js',
|
97 |
-
array('jquery')
|
|
|
98 |
);
|
99 |
|
100 |
// TODO: These scripts have been moved here from the footer. They need to be always printed in the header
|
101 |
// TODO: a solution for this needs to be found.
|
102 |
// Enqueue scripts required for sorting the slides list
|
103 |
-
//wp_enqueue_script('jquery');
|
104 |
wp_enqueue_script('jquery-ui-sortable');
|
105 |
|
106 |
// Enqueue JSColor
|
107 |
-
wp_enqueue_script(
|
|
|
|
|
|
|
|
|
|
|
108 |
|
109 |
// Enqueue slide insert script and style
|
110 |
SlideshowPluginSlideInserter::enqueueFiles();
|
94 |
wp_enqueue_script(
|
95 |
'post-type-handler',
|
96 |
SlideshowPluginMain::getPluginUrl() . '/js/' . __CLASS__ . '/post-type-handler.js',
|
97 |
+
array('jquery'),
|
98 |
+
SlideshowPluginMain::$version
|
99 |
);
|
100 |
|
101 |
// TODO: These scripts have been moved here from the footer. They need to be always printed in the header
|
102 |
// TODO: a solution for this needs to be found.
|
103 |
// Enqueue scripts required for sorting the slides list
|
|
|
104 |
wp_enqueue_script('jquery-ui-sortable');
|
105 |
|
106 |
// Enqueue JSColor
|
107 |
+
wp_enqueue_script(
|
108 |
+
'jscolor-colorpicker',
|
109 |
+
SlideshowPluginMain::getPluginUrl() . '/js/SlideshowPluginPostType/jscolor/jscolor.js',
|
110 |
+
null,
|
111 |
+
SlideshowPluginMain::$version
|
112 |
+
);
|
113 |
|
114 |
// Enqueue slide insert script and style
|
115 |
SlideshowPluginSlideInserter::enqueueFiles();
|
classes/SlideshowPluginSettingsHandler.php
DELETED
@@ -1,456 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Class SlideshowPluginSettingsHandler handles all database/settings interactions.
|
4 |
-
*
|
5 |
-
* @since 2.1.20
|
6 |
-
* @author Stefan Boonstra
|
7 |
-
* @version 06-12-12
|
8 |
-
*/
|
9 |
-
class SlideshowPluginSettingsHandler {
|
10 |
-
|
11 |
-
/** Setting keys */
|
12 |
-
static $settingsKey = 'settings';
|
13 |
-
static $styleSettingsKey = 'styleSettings';
|
14 |
-
static $slidesKey = 'slides';
|
15 |
-
|
16 |
-
/** Cached settings stored by slideshow ID */
|
17 |
-
static $settings = array();
|
18 |
-
static $styleSettings = array();
|
19 |
-
static $slides = array();
|
20 |
-
|
21 |
-
/**
|
22 |
-
* Returns all settings that belong to the passed post ID retrieved from
|
23 |
-
* database, merged with default values from getDefaults(). Does not merge
|
24 |
-
* if mergeDefaults is false.
|
25 |
-
*
|
26 |
-
* If all data (including field information and description) is needed,
|
27 |
-
* set fullDefinition to true. See getDefaults() documentation for returned
|
28 |
-
* values. mergeDefaults must be true for this option to have any effect.
|
29 |
-
*
|
30 |
-
* If enableCache is set to true, results are saved into local storage for
|
31 |
-
* more efficient use. If data was already stored, cached data will be
|
32 |
-
* returned, unless $enableCache is set to false. Settings will not be
|
33 |
-
* cached.
|
34 |
-
*
|
35 |
-
* @since 2.1.20
|
36 |
-
* @param int $slideshowId
|
37 |
-
* @param boolean $fullDefinition (optional, defaults to false)
|
38 |
-
* @param boolean $enableCache (optional, defaults to true)
|
39 |
-
* @param boolean $mergeDefaults (optional, defaults to true)
|
40 |
-
* @return mixed $settings
|
41 |
-
*/
|
42 |
-
static function getAllSettings($slideshowId, $fullDefinition = false, $enableCache = true, $mergeDefaults = true){
|
43 |
-
$settings = array();
|
44 |
-
$settings[self::$settingsKey] = self::getSettings($slideshowId, $fullDefinition, $enableCache, $mergeDefaults);
|
45 |
-
$settings[self::$styleSettingsKey] = self::getStyleSettings($slideshowId, $fullDefinition, $enableCache, $mergeDefaults);
|
46 |
-
$settings[self::$slidesKey] = self::getSlides($slideshowId, $enableCache);
|
47 |
-
|
48 |
-
return $settings;
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* Returns settings retrieved from database.
|
53 |
-
*
|
54 |
-
* For a full description of the parameters, see getAllSettings().
|
55 |
-
*
|
56 |
-
* @since 2.1.20
|
57 |
-
* @param int $slideshowId
|
58 |
-
* @param boolean $fullDefinition (optional, defaults to false)
|
59 |
-
* @param boolean $enableCache (optional, defaults to true)
|
60 |
-
* @param boolean $mergeDefaults (optional, defaults to true)
|
61 |
-
* @return mixed $settings
|
62 |
-
*/
|
63 |
-
static function getSettings($slideshowId, $fullDefinition = false, $enableCache = true, $mergeDefaults = true){
|
64 |
-
if(!is_numeric($slideshowId) || empty($slideshowId))
|
65 |
-
return array();
|
66 |
-
|
67 |
-
// Set caching to false and merging defaults to true when $fullDefinition is set to true
|
68 |
-
if($fullDefinition){
|
69 |
-
$enableCache = false;
|
70 |
-
$mergeDefaults = true;
|
71 |
-
}
|
72 |
-
|
73 |
-
// If no cache is set, or cache is disabled
|
74 |
-
if(!isset(self::$settings[$slideshowId]) || empty(self::$settings[$slideshowId]) || !$enableCache){
|
75 |
-
// Meta data
|
76 |
-
$settingsMeta = get_post_meta(
|
77 |
-
$slideshowId,
|
78 |
-
self::$settingsKey,
|
79 |
-
true
|
80 |
-
);
|
81 |
-
if(!$settingsMeta || !is_array($settingsMeta))
|
82 |
-
$settingsMeta = array();
|
83 |
-
|
84 |
-
// If the settings should be merged with the defaults as a full definition, place each setting in an array referenced by 'value'.
|
85 |
-
if($fullDefinition)
|
86 |
-
foreach($settingsMeta as $key => $value)
|
87 |
-
$settingsMeta[$key] = array('value' => $value);
|
88 |
-
|
89 |
-
// Get defaults
|
90 |
-
$defaults = array();
|
91 |
-
if($mergeDefaults)
|
92 |
-
$defaults = self::getDefaultSettings($fullDefinition);
|
93 |
-
|
94 |
-
// Merge with defaults, recursively if a the full definition is required
|
95 |
-
if($fullDefinition)
|
96 |
-
$settings = array_merge_recursive(
|
97 |
-
$defaults,
|
98 |
-
$settingsMeta
|
99 |
-
);
|
100 |
-
else
|
101 |
-
$settings = array_merge(
|
102 |
-
$defaults,
|
103 |
-
$settingsMeta
|
104 |
-
);
|
105 |
-
|
106 |
-
// Cache if cache is enabled
|
107 |
-
if($enableCache){
|
108 |
-
self::$settings[$slideshowId] = $settings;
|
109 |
-
}
|
110 |
-
}else{
|
111 |
-
// Get cached settings
|
112 |
-
$settings = self::$settings[$slideshowId];
|
113 |
-
}
|
114 |
-
|
115 |
-
// Return
|
116 |
-
return $settings;
|
117 |
-
}
|
118 |
-
|
119 |
-
/**
|
120 |
-
* Returns style settings retrieved from database.
|
121 |
-
*
|
122 |
-
* For a full description of the parameters, see getAllSettings().
|
123 |
-
*
|
124 |
-
* @since 2.1.20
|
125 |
-
* @param int $slideshowId
|
126 |
-
* @param boolean $fullDefinition (optional, defaults to false)
|
127 |
-
* @param boolean $enableCache (optional, defaults to true)
|
128 |
-
* @param boolean $mergeDefaults (optional, defaults to true)
|
129 |
-
* @return mixed $settings
|
130 |
-
*/
|
131 |
-
static function getStyleSettings($slideshowId, $fullDefinition = false, $enableCache = true, $mergeDefaults = true){
|
132 |
-
if(!is_numeric($slideshowId) || empty($slideshowId))
|
133 |
-
return array();
|
134 |
-
|
135 |
-
// Set caching to false and merging defaults to true when $fullDefinition is set to true
|
136 |
-
if($fullDefinition){
|
137 |
-
$enableCache = false;
|
138 |
-
$mergeDefaults = true;
|
139 |
-
}
|
140 |
-
|
141 |
-
// If no cache is set, or cache is disabled
|
142 |
-
if(!isset(self::$styleSettings[$slideshowId]) || empty(self::$styleSettings[$slideshowId]) || !$enableCache){
|
143 |
-
// Meta data
|
144 |
-
$styleSettingsMeta = get_post_meta(
|
145 |
-
$slideshowId,
|
146 |
-
self::$styleSettingsKey,
|
147 |
-
true
|
148 |
-
);
|
149 |
-
if(!$styleSettingsMeta || !is_array($styleSettingsMeta))
|
150 |
-
$styleSettingsMeta = array();
|
151 |
-
|
152 |
-
// If the settings should be merged with the defaults as a full definition, place each setting in an array referenced by 'value'.
|
153 |
-
if($fullDefinition)
|
154 |
-
foreach($styleSettingsMeta as $key => $value)
|
155 |
-
$styleSettingsMeta[$key] = array('value' => $value);
|
156 |
-
|
157 |
-
// Get defaults
|
158 |
-
$defaults = array();
|
159 |
-
if($mergeDefaults)
|
160 |
-
$defaults = self::getDefaultStyleSettings($fullDefinition);
|
161 |
-
|
162 |
-
// Merge with defaults, recursively if a the full definition is required
|
163 |
-
if($fullDefinition)
|
164 |
-
$styleSettings = array_merge_recursive(
|
165 |
-
$defaults,
|
166 |
-
$styleSettingsMeta
|
167 |
-
);
|
168 |
-
else
|
169 |
-
$styleSettings = array_merge(
|
170 |
-
$defaults,
|
171 |
-
$styleSettingsMeta
|
172 |
-
);
|
173 |
-
|
174 |
-
// Cache if cache is enabled
|
175 |
-
if($enableCache){
|
176 |
-
self::$styleSettings[$slideshowId] = $styleSettings;
|
177 |
-
}
|
178 |
-
}else{
|
179 |
-
// Get cached settings
|
180 |
-
$styleSettings = self::$styleSettings[$slideshowId];
|
181 |
-
}
|
182 |
-
|
183 |
-
// Return
|
184 |
-
return $styleSettings;
|
185 |
-
}
|
186 |
-
|
187 |
-
/**
|
188 |
-
* Returns slides retrieved from database.
|
189 |
-
*
|
190 |
-
* For a full description of the parameters, see getAllSettings().
|
191 |
-
*
|
192 |
-
* @since 2.1.20
|
193 |
-
* @param int $slideshowId
|
194 |
-
* @param boolean $enableCache (optional, defaults to true)
|
195 |
-
* @return mixed $settings
|
196 |
-
*/
|
197 |
-
static function getSlides($slideshowId, $enableCache = true){
|
198 |
-
if(!is_numeric($slideshowId) || empty($slideshowId))
|
199 |
-
return array();
|
200 |
-
|
201 |
-
// If no cache is set, or cache is disabled
|
202 |
-
if(!isset(self::$slides[$slideshowId]) || empty(self::$slides[$slideshowId]) || !$enableCache){
|
203 |
-
// Meta data
|
204 |
-
$slides = get_post_meta(
|
205 |
-
$slideshowId,
|
206 |
-
self::$slidesKey,
|
207 |
-
true
|
208 |
-
);
|
209 |
-
}else{
|
210 |
-
// Get cached settings
|
211 |
-
$slides = self::$slides[$slideshowId];
|
212 |
-
}
|
213 |
-
|
214 |
-
// Sort slides by order ID
|
215 |
-
if(is_array($slides))
|
216 |
-
ksort($slides);
|
217 |
-
else
|
218 |
-
$slides = array();
|
219 |
-
|
220 |
-
// Return
|
221 |
-
return $slides;
|
222 |
-
}
|
223 |
-
|
224 |
-
/**
|
225 |
-
* Get new settings from $_POST variable and merge them with
|
226 |
-
* the old and default settings.
|
227 |
-
*
|
228 |
-
* @since 2.1.20
|
229 |
-
* @param int $postId
|
230 |
-
* @return int $postId
|
231 |
-
*/
|
232 |
-
static function save($postId){
|
233 |
-
// Verify nonce, check if user has sufficient rights and return on auto-save.
|
234 |
-
if(get_post_type($postId) != SlideshowPluginPostType::$postType ||
|
235 |
-
(isset($_POST['nonce']) && !wp_verify_nonce($_POST['nonce'], plugin_basename(__FILE__))) ||
|
236 |
-
!current_user_can('edit_post', $postId) ||
|
237 |
-
defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
|
238 |
-
return $postId;
|
239 |
-
|
240 |
-
// Old settings
|
241 |
-
$oldSettings = self::getSettings($postId);
|
242 |
-
$oldStyleSettings = self::getStyleSettings($postId);
|
243 |
-
$oldSlides = self::getSlides($postId);
|
244 |
-
|
245 |
-
// Get new settings from $_POST, making sure they're arrays
|
246 |
-
$newPostSettings = $newPostStyleSettings = $newPostSlides = array();
|
247 |
-
if(isset($_POST[self::$settingsKey]) && is_array($_POST[self::$settingsKey]))
|
248 |
-
$newPostSettings = $_POST[self::$settingsKey];
|
249 |
-
if(isset($_POST[self::$styleSettingsKey]) && is_array($_POST[self::$styleSettingsKey]))
|
250 |
-
$newPostStyleSettings = $_POST[self::$styleSettingsKey];
|
251 |
-
if(isset($_POST[self::$slidesKey]) && is_array($_POST[self::$slidesKey]))
|
252 |
-
$newPostSlides = $_POST[self::$slidesKey];
|
253 |
-
|
254 |
-
// Merge new settings with its old values
|
255 |
-
$newSettings = array_merge(
|
256 |
-
$oldSettings,
|
257 |
-
$newPostSettings
|
258 |
-
);
|
259 |
-
|
260 |
-
// Merge new style settings with its old values
|
261 |
-
$newStyleSettings = array_merge(
|
262 |
-
$oldStyleSettings,
|
263 |
-
$newPostStyleSettings
|
264 |
-
);
|
265 |
-
|
266 |
-
// Save settings
|
267 |
-
update_post_meta($postId, self::$settingsKey, $newSettings);
|
268 |
-
update_post_meta($postId, self::$styleSettingsKey, $newStyleSettings);
|
269 |
-
update_post_meta($postId, self::$slidesKey, $newPostSlides);
|
270 |
-
|
271 |
-
// Return
|
272 |
-
return $postId;
|
273 |
-
}
|
274 |
-
|
275 |
-
/**
|
276 |
-
* Returns an array of all defaults. The array will be returned
|
277 |
-
* like this:
|
278 |
-
* array([settingsKey] => array([settingName] => [settingValue]))
|
279 |
-
*
|
280 |
-
* If all default data (including field information and description)
|
281 |
-
* is needed, set fullDefinition to true. Data in the full definition is
|
282 |
-
* build up as follows:
|
283 |
-
* array([settingsKey] => array([settingName] => array('type' => [inputType], 'value' => [value], 'default' => [default], 'description' => [description], 'options' => array([options]), 'dependsOn' => array([dependsOn], [onValue]), 'group' => [groupName])))
|
284 |
-
*
|
285 |
-
* @since 2.1.20
|
286 |
-
* @param mixed $key (optional, defaults to null, getting all keys)
|
287 |
-
* @param boolean $fullDefinition (optional, defaults to false)
|
288 |
-
* @return mixed $data
|
289 |
-
*/
|
290 |
-
static function getAllDefaults($key = null, $fullDefinition = false){
|
291 |
-
$data = array();
|
292 |
-
$data[self::$settingsKey] = self::getDefaultSettings($fullDefinition);
|
293 |
-
$data[self::$styleSettingsKey] = self::getDefaultStyleSettings($fullDefinition);
|
294 |
-
|
295 |
-
return $data;
|
296 |
-
}
|
297 |
-
|
298 |
-
/**
|
299 |
-
* Returns an array of setting defaults.
|
300 |
-
*
|
301 |
-
* For a full description of the parameters, see getAllDefaults().
|
302 |
-
*
|
303 |
-
* @since 2.1.20
|
304 |
-
* @param boolean $fullDefinition (optional, defaults to false)
|
305 |
-
* @return mixed $data
|
306 |
-
*/
|
307 |
-
static function getDefaultSettings($fullDefinition = false){
|
308 |
-
// Much used data for translation
|
309 |
-
$yes = __('Yes', 'slideshow-plugin');
|
310 |
-
$no = __('No', 'slideshow-plugin');
|
311 |
-
|
312 |
-
// Default values
|
313 |
-
$data = array(
|
314 |
-
'animation' => 'slide',
|
315 |
-
'slideSpeed' => '1',
|
316 |
-
'descriptionSpeed' => '0.4',
|
317 |
-
'intervalSpeed' => '5',
|
318 |
-
'play' => 'true',
|
319 |
-
'loop' => 'true',
|
320 |
-
'slidesPerView' => '1',
|
321 |
-
'width' => '0',
|
322 |
-
'height' => '200',
|
323 |
-
'descriptionHeight' => '50',
|
324 |
-
'stretchImages' => 'true',
|
325 |
-
'controllable' => 'true',
|
326 |
-
'controlPanel' => 'false',
|
327 |
-
'showDescription' => 'true',
|
328 |
-
'hideDescription' => 'true',
|
329 |
-
'random' => 'false',
|
330 |
-
'avoidFilter' => 'true'
|
331 |
-
);
|
332 |
-
|
333 |
-
// Full definition
|
334 |
-
if($fullDefinition){
|
335 |
-
$data = array(
|
336 |
-
'animation' => array('type' => 'select', 'default' => $data['animation'], 'description' => __('Animation used for transition between slides', 'slideshow-plugin'), 'options' => array('slide' => __('Slide', 'slideshow-plugin'), 'fade' => __('Fade', 'slideshow-plugin')), 'group' => __('Animation', 'slideshow-plugin')),
|
337 |
-
'slideSpeed' => array('type' => 'text', 'default' => $data['slideSpeed'], 'description' => __('Number of seconds the slide takes to slide in', 'slideshow-plugin'), 'group' => __('Animation', 'slideshow-plugin')),
|
338 |
-
'descriptionSpeed' => array('type' => 'text', 'default' => $data['descriptionSpeed'], 'description' => __('Number of seconds the description takes to slide in', 'slideshow-plugin'), 'group' => __('Animation', 'slideshow-plugin')),
|
339 |
-
'intervalSpeed' => array('type' => 'text', 'default' => $data['intervalSpeed'], 'description' => __('Seconds between changing slides', 'slideshow-plugin'), 'group' => __('Animation', 'slideshow-plugin')),
|
340 |
-
'slidesPerView' => array('type' => 'text', 'default' => $data['slidesPerView'], 'description' => __('Number of slides to fit into one slide', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
341 |
-
'width' => array('type' => 'text', 'default' => $data['width'], 'description' => __('Width of the slideshow, set to parent's width on 0', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
342 |
-
'height' => array('type' => 'text', 'default' => $data['height'], 'description' => __('Height of the slideshow', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
343 |
-
'descriptionHeight' => array('type' => 'text', 'default' => $data['descriptionHeight'], 'description' => __('Height of the description boxes', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
344 |
-
'stretchImages' => array('type' => 'radio', 'default' => $data['stretchImages'], 'description' => __('Fit image into slide (stretching it)', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
345 |
-
'showDescription' => array('type' => 'radio', 'default' => $data['showDescription'], 'description' => __('Show title and description', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
346 |
-
'hideDescription' => array('type' => 'radio', 'default' => $data['hideDescription'], 'description' => __('Hide description box, it will pop up when a mouse hovers over the slide', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'dependsOn' => array('settings[showDescription]', 'true'), 'group' => __('Display', 'slideshow-plugin')),
|
347 |
-
'play' => array('type' => 'radio', 'default' => $data['play'], 'description' => __('Automatically slide to the next slide', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
348 |
-
'loop' => array('type' => 'radio', 'default' => $data['loop'], 'description' => __('Return to the beginning of the slideshow after last slide', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
349 |
-
'controllable' => array('type' => 'radio', 'default' => $data['controllable'], 'description' => __('Activate buttons (so the user can scroll through the slides)', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
350 |
-
'controlPanel' => array('type' => 'radio', 'default' => $data['controlPanel'], 'description' => __('Show control panel (play and pause button)', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
351 |
-
'random' => array('type' => 'radio', 'default' => $data['random'], 'description' => __('Randomize slides', 'slideshow-plugin'), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Miscellaneous', 'slideshow-plugin')),
|
352 |
-
'avoidFilter' => array('type' => 'radio', 'default' => $data['avoidFilter'], 'description' => sprintf(__('Avoid content filter (disable if \'%s\' is shown)', 'slideshow-plugin'), SlideshowPluginShortcode::$bookmark), 'options' => array('true' => $yes, 'false' => $no), 'group' => __('Miscellaneous', 'slideshow-plugin'))
|
353 |
-
);
|
354 |
-
}
|
355 |
-
|
356 |
-
// Return
|
357 |
-
return $data;
|
358 |
-
}
|
359 |
-
|
360 |
-
/**
|
361 |
-
* Returns an array of style setting defaults.
|
362 |
-
*
|
363 |
-
* For a full description of the parameters, see getAllDefaults().
|
364 |
-
*
|
365 |
-
* @since 2.1.20
|
366 |
-
* @param boolean $fullDefinition (optional, defaults to false)
|
367 |
-
* @return mixed $data
|
368 |
-
*/
|
369 |
-
static function getDefaultStyleSettings($fullDefinition = false){
|
370 |
-
// Much used data for translation
|
371 |
-
$yes = __('Yes', 'slideshow-plugin');
|
372 |
-
$no = __('No', 'slideshow-plugin');
|
373 |
-
|
374 |
-
// Default style settings
|
375 |
-
$data = array(
|
376 |
-
'style' => 'light',
|
377 |
-
'custom' => ''
|
378 |
-
);
|
379 |
-
|
380 |
-
// Full definition
|
381 |
-
if($fullDefinition){
|
382 |
-
$data = array(
|
383 |
-
'style' => array('type' => 'select', 'default' => $data['style'], 'description' => __('The style used for this slideshow', 'slideshow-plugin'), 'options' => array('light' => __('Light', 'slideshow-plugin'), 'dark' => __('Dark', 'slideshow-plugin'), 'custom' => __('Custom', 'slideshow-plugin'))),
|
384 |
-
'custom' => array('type' => 'textarea', 'default' => $data['custom'], 'description' => __('Custom style editor', 'slideshow-plugin'), 'dependsOn' => array('styleSettings[style]', 'custom'))
|
385 |
-
);
|
386 |
-
}
|
387 |
-
|
388 |
-
// Return
|
389 |
-
return $data;
|
390 |
-
}
|
391 |
-
|
392 |
-
/**
|
393 |
-
* Returns an HTML inputField of the input setting.
|
394 |
-
*
|
395 |
-
* This function expects the setting to be in the 'fullDefinition'
|
396 |
-
* format that the getDefaults() and getSettings() methods both
|
397 |
-
* return.
|
398 |
-
*
|
399 |
-
* @since 2.1.20
|
400 |
-
* @param string $settingsKey
|
401 |
-
* @param string $settingsName
|
402 |
-
* @param mixed $settings
|
403 |
-
* @return mixed $inputField
|
404 |
-
*/
|
405 |
-
static function getInputField($settingsKey, $settingsName, $settings){
|
406 |
-
if(!is_array($settings) || empty($settings) || empty($settingsName))
|
407 |
-
return null;
|
408 |
-
|
409 |
-
$inputField = '';
|
410 |
-
$name = $settingsKey . '[' . $settingsName . ']';
|
411 |
-
$displayValue = (!isset($settings['value']) || (empty($settings['value']) && !is_numeric($settings['value'])) ? $settings['default'] : $settings['value']);
|
412 |
-
$class = ((isset($settings['dependsOn']))? 'depends-on-field-value ' . $settings['dependsOn'][0] . ' ' . $settings['dependsOn'][1] . ' ': '') . $settingsKey . '-' . $settingsName;
|
413 |
-
switch($settings['type']){
|
414 |
-
case 'text':
|
415 |
-
$inputField .= '<input
|
416 |
-
type="text"
|
417 |
-
name="' . $name . '"
|
418 |
-
class="' . $class . '"
|
419 |
-
value="' . $displayValue . '"
|
420 |
-
/>';
|
421 |
-
break;
|
422 |
-
case 'textarea':
|
423 |
-
$inputField .= '<textarea
|
424 |
-
name="' . $name . '"
|
425 |
-
class="' . $class . '"
|
426 |
-
rows="20"
|
427 |
-
cols="60"
|
428 |
-
>' . $displayValue . '</textarea>';
|
429 |
-
break;
|
430 |
-
case 'select':
|
431 |
-
$inputField .= '<select name="' . $name . '" class="' . $class . '">';
|
432 |
-
foreach($settings['options'] as $optionKey => $optionValue)
|
433 |
-
$inputField .= '<option value="' . $optionKey . '" ' . selected($displayValue, $optionKey, false) . '>
|
434 |
-
' . $optionValue . '
|
435 |
-
</option>';
|
436 |
-
$inputField .= '</select>';
|
437 |
-
break;
|
438 |
-
case 'radio':
|
439 |
-
foreach($settings['options'] as $radioKey => $radioValue)
|
440 |
-
$inputField .= '<label><input
|
441 |
-
type="radio"
|
442 |
-
name="' . $name . '"
|
443 |
-
class="' . $class . '"
|
444 |
-
value="' . $radioKey . '" ' .
|
445 |
-
checked($displayValue, $radioKey, false) .
|
446 |
-
' />' . $radioValue . '</label><br />';
|
447 |
-
break;
|
448 |
-
default:
|
449 |
-
$inputField = null;
|
450 |
-
break;
|
451 |
-
};
|
452 |
-
|
453 |
-
// Return
|
454 |
-
return $inputField;
|
455 |
-
}
|
456 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/SlideshowPluginShortcode.php
CHANGED
@@ -120,7 +120,8 @@ class SlideshowPluginShortcode {
|
|
120 |
wp_enqueue_script(
|
121 |
'slideshow-shortcode-inserter',
|
122 |
SlideshowPluginMain::getPluginUrl() . '/js/' . __CLASS__ . '/shortcode-inserter.js',
|
123 |
-
array('jquery')
|
|
|
124 |
);
|
125 |
|
126 |
wp_localize_script(
|
120 |
wp_enqueue_script(
|
121 |
'slideshow-shortcode-inserter',
|
122 |
SlideshowPluginMain::getPluginUrl() . '/js/' . __CLASS__ . '/shortcode-inserter.js',
|
123 |
+
array('jquery'),
|
124 |
+
SlideshowPluginMain::$version
|
125 |
);
|
126 |
|
127 |
wp_localize_script(
|
classes/SlideshowPluginSlideInserter.php
CHANGED
@@ -74,6 +74,8 @@ class SlideshowPluginSlideInserter {
|
|
74 |
* This function is registered in the SlideshowPluginAjax class
|
75 |
* and deletes slides with a particular $_POST['slideId'].
|
76 |
*
|
|
|
|
|
77 |
* @since 2.0.0
|
78 |
*/
|
79 |
static function deleteSlide(){
|
@@ -143,9 +145,7 @@ class SlideshowPluginSlideInserter {
|
|
143 |
<img width="60" height="60" src="' . $imageSrc . '" class="attachment" alt="' . $attachment->post_title . '" title="' . $attachment->post_title . '">
|
144 |
</td>
|
145 |
<td class="column-title">
|
146 |
-
<strong class="title">
|
147 |
-
' . $attachment->post_title . '
|
148 |
-
</strong>
|
149 |
<p class="description">' . $attachment->post_content . '</p>
|
150 |
</td>
|
151 |
<td class="insert-button">
|
@@ -223,14 +223,17 @@ class SlideshowPluginSlideInserter {
|
|
223 |
// Enqueue style
|
224 |
wp_enqueue_style(
|
225 |
'slideshow-slide-inserter',
|
226 |
-
SlideshowPluginMain::getPluginUrl() . '/style/' . __CLASS__ . '/slide-inserter.css'
|
|
|
|
|
227 |
);
|
228 |
|
229 |
// Enqueue insert button script
|
230 |
wp_enqueue_script(
|
231 |
'slideshow-slide-inserter',
|
232 |
SlideshowPluginMain::getPluginUrl() . '/js/' . __CLASS__ . '/slide-inserter.js',
|
233 |
-
array('jquery')
|
|
|
234 |
);
|
235 |
|
236 |
wp_localize_script(
|
74 |
* This function is registered in the SlideshowPluginAjax class
|
75 |
* and deletes slides with a particular $_POST['slideId'].
|
76 |
*
|
77 |
+
* TODO: This function has become obsolete and slides are deleted by simply unsetting them and saving the slideshow.
|
78 |
+
*
|
79 |
* @since 2.0.0
|
80 |
*/
|
81 |
static function deleteSlide(){
|
145 |
<img width="60" height="60" src="' . $imageSrc . '" class="attachment" alt="' . $attachment->post_title . '" title="' . $attachment->post_title . '">
|
146 |
</td>
|
147 |
<td class="column-title">
|
148 |
+
<strong class="title">' . $attachment->post_title . '</strong>
|
|
|
|
|
149 |
<p class="description">' . $attachment->post_content . '</p>
|
150 |
</td>
|
151 |
<td class="insert-button">
|
223 |
// Enqueue style
|
224 |
wp_enqueue_style(
|
225 |
'slideshow-slide-inserter',
|
226 |
+
SlideshowPluginMain::getPluginUrl() . '/style/' . __CLASS__ . '/slide-inserter.css',
|
227 |
+
null,
|
228 |
+
SlideshowPluginMain::$version
|
229 |
);
|
230 |
|
231 |
// Enqueue insert button script
|
232 |
wp_enqueue_script(
|
233 |
'slideshow-slide-inserter',
|
234 |
SlideshowPluginMain::getPluginUrl() . '/js/' . __CLASS__ . '/slide-inserter.js',
|
235 |
+
array('jquery'),
|
236 |
+
SlideshowPluginMain::$version
|
237 |
);
|
238 |
|
239 |
wp_localize_script(
|
classes/SlideshowPluginSlideshowSettingsHandler.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @since 2.1.20
|
6 |
* @author Stefan Boonstra
|
7 |
-
* @version
|
8 |
*/
|
9 |
class SlideshowPluginSlideshowSettingsHandler {
|
10 |
|
@@ -40,6 +40,7 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
40 |
* @return mixed $settings
|
41 |
*/
|
42 |
static function getAllSettings($slideshowId, $fullDefinition = false, $enableCache = true, $mergeDefaults = true){
|
|
|
43 |
$settings = array();
|
44 |
$settings[self::$settingsKey] = self::getSettings($slideshowId, $fullDefinition, $enableCache, $mergeDefaults);
|
45 |
$settings[self::$styleSettingsKey] = self::getStyleSettings($slideshowId, $fullDefinition, $enableCache, $mergeDefaults);
|
@@ -61,6 +62,7 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
61 |
* @return mixed $settings
|
62 |
*/
|
63 |
static function getSettings($slideshowId, $fullDefinition = false, $enableCache = true, $mergeDefaults = true){
|
|
|
64 |
if(!is_numeric($slideshowId) || empty($slideshowId))
|
65 |
return array();
|
66 |
|
@@ -129,6 +131,7 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
129 |
* @return mixed $settings
|
130 |
*/
|
131 |
static function getStyleSettings($slideshowId, $fullDefinition = false, $enableCache = true, $mergeDefaults = true){
|
|
|
132 |
if(!is_numeric($slideshowId) || empty($slideshowId))
|
133 |
return array();
|
134 |
|
@@ -195,6 +198,7 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
195 |
* @return mixed $settings
|
196 |
*/
|
197 |
static function getSlides($slideshowId, $enableCache = true){
|
|
|
198 |
if(!is_numeric($slideshowId) || empty($slideshowId))
|
199 |
return array();
|
200 |
|
@@ -230,6 +234,7 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
230 |
* @return int $postId
|
231 |
*/
|
232 |
static function save($postId){
|
|
|
233 |
// Verify nonce, check if user has sufficient rights and return on auto-save.
|
234 |
if(get_post_type($postId) != SlideshowPluginPostType::$postType ||
|
235 |
(isset($_POST['nonce']) && !wp_verify_nonce($_POST['nonce'], plugin_basename(__FILE__))) ||
|
@@ -282,15 +287,21 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
282 |
* build up as follows:
|
283 |
* array([settingsKey] => array([settingName] => array('type' => [inputType], 'value' => [value], 'default' => [default], 'description' => [description], 'options' => array([options]), 'dependsOn' => array([dependsOn], [onValue]), 'group' => [groupName])))
|
284 |
*
|
|
|
|
|
|
|
|
|
285 |
* @since 2.1.20
|
286 |
* @param mixed $key (optional, defaults to null, getting all keys)
|
287 |
* @param boolean $fullDefinition (optional, defaults to false)
|
|
|
288 |
* @return mixed $data
|
289 |
*/
|
290 |
-
static function getAllDefaults($key = null, $fullDefinition = false){
|
|
|
291 |
$data = array();
|
292 |
-
$data[self::$settingsKey] = self::getDefaultSettings($fullDefinition);
|
293 |
-
$data[self::$styleSettingsKey] = self::getDefaultStyleSettings($fullDefinition);
|
294 |
|
295 |
return $data;
|
296 |
}
|
@@ -302,9 +313,11 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
302 |
*
|
303 |
* @since 2.1.20
|
304 |
* @param boolean $fullDefinition (optional, defaults to false)
|
|
|
305 |
* @return mixed $data
|
306 |
*/
|
307 |
-
static function getDefaultSettings($fullDefinition = false){
|
|
|
308 |
// Much used data for translation
|
309 |
$yes = __('Yes', 'slideshow-plugin');
|
310 |
$no = __('No', 'slideshow-plugin');
|
@@ -330,6 +343,13 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
330 |
'avoidFilter' => 'true'
|
331 |
);
|
332 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
// Full definition
|
334 |
if($fullDefinition){
|
335 |
$data = array(
|
@@ -364,24 +384,27 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
364 |
*
|
365 |
* @since 2.1.20
|
366 |
* @param boolean $fullDefinition (optional, defaults to false)
|
|
|
367 |
* @return mixed $data
|
368 |
*/
|
369 |
-
static function getDefaultStyleSettings($fullDefinition = false){
|
370 |
-
// Much used data for translation
|
371 |
-
$yes = __('Yes', 'slideshow-plugin');
|
372 |
-
$no = __('No', 'slideshow-plugin');
|
373 |
|
374 |
// Default style settings
|
375 |
$data = array(
|
376 |
-
'style' => 'light'
|
377 |
-
'custom' => ''
|
378 |
);
|
379 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
// Full definition
|
381 |
if($fullDefinition){
|
382 |
$data = array(
|
383 |
-
'style' => array('type' => 'select', 'default' => $data['style'], 'description' => __('The style used for this slideshow', 'slideshow-plugin'), 'options' =>
|
384 |
-
'custom' => array('type' => 'textarea', 'default' => $data['custom'], 'description' => __('Custom style editor', 'slideshow-plugin'), 'dependsOn' => array('styleSettings[style]', 'custom'))
|
385 |
);
|
386 |
}
|
387 |
|
@@ -403,6 +426,7 @@ class SlideshowPluginSlideshowSettingsHandler {
|
|
403 |
* @return mixed $inputField
|
404 |
*/
|
405 |
static function getInputField($settingsKey, $settingsName, $settings){
|
|
|
406 |
if(!is_array($settings) || empty($settings) || empty($settingsName))
|
407 |
return null;
|
408 |
|
4 |
*
|
5 |
* @since 2.1.20
|
6 |
* @author Stefan Boonstra
|
7 |
+
* @version 19-12-12
|
8 |
*/
|
9 |
class SlideshowPluginSlideshowSettingsHandler {
|
10 |
|
40 |
* @return mixed $settings
|
41 |
*/
|
42 |
static function getAllSettings($slideshowId, $fullDefinition = false, $enableCache = true, $mergeDefaults = true){
|
43 |
+
|
44 |
$settings = array();
|
45 |
$settings[self::$settingsKey] = self::getSettings($slideshowId, $fullDefinition, $enableCache, $mergeDefaults);
|
46 |
$settings[self::$styleSettingsKey] = self::getStyleSettings($slideshowId, $fullDefinition, $enableCache, $mergeDefaults);
|
62 |
* @return mixed $settings
|
63 |
*/
|
64 |
static function getSettings($slideshowId, $fullDefinition = false, $enableCache = true, $mergeDefaults = true){
|
65 |
+
|
66 |
if(!is_numeric($slideshowId) || empty($slideshowId))
|
67 |
return array();
|
68 |
|
131 |
* @return mixed $settings
|
132 |
*/
|
133 |
static function getStyleSettings($slideshowId, $fullDefinition = false, $enableCache = true, $mergeDefaults = true){
|
134 |
+
|
135 |
if(!is_numeric($slideshowId) || empty($slideshowId))
|
136 |
return array();
|
137 |
|
198 |
* @return mixed $settings
|
199 |
*/
|
200 |
static function getSlides($slideshowId, $enableCache = true){
|
201 |
+
|
202 |
if(!is_numeric($slideshowId) || empty($slideshowId))
|
203 |
return array();
|
204 |
|
234 |
* @return int $postId
|
235 |
*/
|
236 |
static function save($postId){
|
237 |
+
|
238 |
// Verify nonce, check if user has sufficient rights and return on auto-save.
|
239 |
if(get_post_type($postId) != SlideshowPluginPostType::$postType ||
|
240 |
(isset($_POST['nonce']) && !wp_verify_nonce($_POST['nonce'], plugin_basename(__FILE__))) ||
|
287 |
* build up as follows:
|
288 |
* array([settingsKey] => array([settingName] => array('type' => [inputType], 'value' => [value], 'default' => [default], 'description' => [description], 'options' => array([options]), 'dependsOn' => array([dependsOn], [onValue]), 'group' => [groupName])))
|
289 |
*
|
290 |
+
* Finally, when you require the defaults as they were programmed in,
|
291 |
+
* set this parameter to false. When set to true, the database will
|
292 |
+
* first be consulted for user-customized defaults. Defaults to true.
|
293 |
+
*
|
294 |
* @since 2.1.20
|
295 |
* @param mixed $key (optional, defaults to null, getting all keys)
|
296 |
* @param boolean $fullDefinition (optional, defaults to false)
|
297 |
+
* @param boolean $fromDatabase (optional, defaults to true)
|
298 |
* @return mixed $data
|
299 |
*/
|
300 |
+
static function getAllDefaults($key = null, $fullDefinition = false, $fromDatabase = true){
|
301 |
+
|
302 |
$data = array();
|
303 |
+
$data[self::$settingsKey] = self::getDefaultSettings($fullDefinition, $fromDatabase);
|
304 |
+
$data[self::$styleSettingsKey] = self::getDefaultStyleSettings($fullDefinition, $fromDatabase);
|
305 |
|
306 |
return $data;
|
307 |
}
|
313 |
*
|
314 |
* @since 2.1.20
|
315 |
* @param boolean $fullDefinition (optional, defaults to false)
|
316 |
+
* @param boolean $fromDatabase (optional, defaults to true)
|
317 |
* @return mixed $data
|
318 |
*/
|
319 |
+
static function getDefaultSettings($fullDefinition = false, $fromDatabase = true){
|
320 |
+
|
321 |
// Much used data for translation
|
322 |
$yes = __('Yes', 'slideshow-plugin');
|
323 |
$no = __('No', 'slideshow-plugin');
|
343 |
'avoidFilter' => 'true'
|
344 |
);
|
345 |
|
346 |
+
// Read defaults from database and merge with $data, when $fromDatabase is set to true
|
347 |
+
if($fromDatabase)
|
348 |
+
$data = array_merge(
|
349 |
+
$data,
|
350 |
+
$customData = get_option(SlideshowPluginGeneralSettings::$defaultSettings, array())
|
351 |
+
);
|
352 |
+
|
353 |
// Full definition
|
354 |
if($fullDefinition){
|
355 |
$data = array(
|
384 |
*
|
385 |
* @since 2.1.20
|
386 |
* @param boolean $fullDefinition (optional, defaults to false)
|
387 |
+
* @param boolean $fromDatabase (optional, defaults to true)
|
388 |
* @return mixed $data
|
389 |
*/
|
390 |
+
static function getDefaultStyleSettings($fullDefinition = false, $fromDatabase = true){
|
|
|
|
|
|
|
391 |
|
392 |
// Default style settings
|
393 |
$data = array(
|
394 |
+
'style' => 'style-light.css'
|
|
|
395 |
);
|
396 |
|
397 |
+
// Read defaults from database and merge with $data, when $fromDatabase is set to true
|
398 |
+
if($fromDatabase)
|
399 |
+
$data = array_merge(
|
400 |
+
$data,
|
401 |
+
$customData = get_option(SlideshowPluginGeneralSettings::$defaultStyleSettings, array())
|
402 |
+
);
|
403 |
+
|
404 |
// Full definition
|
405 |
if($fullDefinition){
|
406 |
$data = array(
|
407 |
+
'style' => array('type' => 'select', 'default' => $data['style'], 'description' => __('The style used for this slideshow', 'slideshow-plugin'), 'options' => SlideshowPluginGeneralSettings::getStylesheets()),
|
|
|
408 |
);
|
409 |
}
|
410 |
|
426 |
* @return mixed $inputField
|
427 |
*/
|
428 |
static function getInputField($settingsKey, $settingsName, $settings){
|
429 |
+
|
430 |
if(!is_array($settings) || empty($settings) || empty($settingsName))
|
431 |
return null;
|
432 |
|
classes/SlideshowPluginUpdater.php
DELETED
@@ -1,286 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* SlideshowPluginVersionConverter helps users transfer from version
|
4 |
-
* to version without losing any data.
|
5 |
-
*
|
6 |
-
* @author Stefan Boonstra
|
7 |
-
* @version 06-12-12
|
8 |
-
*/
|
9 |
-
class SlideshowPluginUpdater {
|
10 |
-
|
11 |
-
/** Version option key */
|
12 |
-
private static $versionKey = 'slideshow-jquery-image-gallery-plugin-version';
|
13 |
-
|
14 |
-
/**
|
15 |
-
* The init function checks
|
16 |
-
*/
|
17 |
-
static function init(){
|
18 |
-
if(!is_admin())
|
19 |
-
return;
|
20 |
-
|
21 |
-
// Transfer if no version number is set, or the current version number is greater than the on saved in the database
|
22 |
-
$oldVersion = get_option(self::$versionKey, null);
|
23 |
-
if($oldVersion == null || SlideshowPluginMain::$version > $oldVersion)
|
24 |
-
self::update($oldVersion);
|
25 |
-
}
|
26 |
-
|
27 |
-
/**
|
28 |
-
* Updates user to correct version
|
29 |
-
*
|
30 |
-
* @since 2.1.20
|
31 |
-
* @param string $oldVersion
|
32 |
-
*/
|
33 |
-
private static function update($oldVersion){
|
34 |
-
// Version numbers are registered after version 2.1.20
|
35 |
-
if($oldVersion == null){
|
36 |
-
self::updateV1toV2();
|
37 |
-
self::updateV2toV2_1_20();
|
38 |
-
}
|
39 |
-
|
40 |
-
// This gives better performance to the update, since lower version updates can be skipped.
|
41 |
-
// if('1.33.7' > $oldVersion || $oldVersion == null)
|
42 |
-
// update();
|
43 |
-
|
44 |
-
// Set new version
|
45 |
-
update_option(self::$versionKey, SlideshowPluginMain::$version);
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Updates v2 to the 2.1.20 settings storage system,
|
50 |
-
* which uses three post-meta values instead of one.
|
51 |
-
*
|
52 |
-
* @since 2.1.20
|
53 |
-
*/
|
54 |
-
private static function updateV2toV2_1_20(){
|
55 |
-
// Check if this has already been done
|
56 |
-
if(get_option('slideshow-plugin-updated-from-v2-to-v2-1-20') !== false)
|
57 |
-
return;
|
58 |
-
|
59 |
-
// Get slideshows
|
60 |
-
$slideshows = get_posts(array(
|
61 |
-
'numberposts' => -1,
|
62 |
-
'offset' => 0,
|
63 |
-
'post_type' => 'slideshow'
|
64 |
-
));
|
65 |
-
|
66 |
-
// Loop through slideshow
|
67 |
-
if(is_array($slideshows) && count($slideshows > 0)){
|
68 |
-
foreach($slideshows as $slideshow){
|
69 |
-
// Get settings
|
70 |
-
$settings = get_post_meta(
|
71 |
-
$slideshow->ID,
|
72 |
-
'settings',
|
73 |
-
true
|
74 |
-
);
|
75 |
-
if(!is_array($settings))
|
76 |
-
$settings = array();
|
77 |
-
|
78 |
-
// Old prefixes
|
79 |
-
$settingsPrefix = 'setting_';
|
80 |
-
$stylePrefix = 'style_';
|
81 |
-
$slidePrefix = 'slide_';
|
82 |
-
|
83 |
-
// Meta keys
|
84 |
-
$settingsKey = 'settings';
|
85 |
-
$styleSettingsKey = 'styleSettings';
|
86 |
-
$slidesKey = 'slides';
|
87 |
-
|
88 |
-
// Extract key => value into new arrays
|
89 |
-
$newSettings = array();
|
90 |
-
$styleSettings = array();
|
91 |
-
$slides = array();
|
92 |
-
foreach($settings as $key => $value){
|
93 |
-
if($settingsPrefix == substr($key, 0, strlen($settingsPrefix)))
|
94 |
-
$newSettings[substr($key, strlen($settingsPrefix))] = $value;
|
95 |
-
elseif($stylePrefix == substr($key, 0, strlen($stylePrefix)))
|
96 |
-
$styleSettings[substr($key, strlen($stylePrefix))] = $value;
|
97 |
-
elseif($slidePrefix == substr($key, 0, strlen($slidePrefix)))
|
98 |
-
$slides[substr($key, strlen($slidePrefix))] = $value;
|
99 |
-
}
|
100 |
-
|
101 |
-
// Slides are prefixed with another prefix, their order ID. All settings of one slide should go into an
|
102 |
-
// array referenced by their order ID. Create order lookup array below, then order slides accordingly
|
103 |
-
$slidesOrderLookup = array();
|
104 |
-
foreach($slides as $key => $value){
|
105 |
-
$key = explode('_', $key);
|
106 |
-
|
107 |
-
if($key[1] == 'order')
|
108 |
-
$slidesOrderLookup[$value] = $key[0];
|
109 |
-
}
|
110 |
-
|
111 |
-
// Order slides with order lookup array
|
112 |
-
$orderedSlides = array();
|
113 |
-
foreach($slides as $key => $value){
|
114 |
-
$key = explode('_', $key);
|
115 |
-
|
116 |
-
foreach($slidesOrderLookup as $order => $id){
|
117 |
-
if($key[0] == $id){
|
118 |
-
|
119 |
-
// Create array if slot is empty
|
120 |
-
if(!isset($orderedSlides[$order]) || !is_array($orderedSlides[$order]))
|
121 |
-
$orderedSlides[$order] = array();
|
122 |
-
|
123 |
-
// Add slide value to array
|
124 |
-
$orderedSlides[$order][$key[1]] = $value;
|
125 |
-
|
126 |
-
// Slide ID found and value placed in correct order slot, break to next $value
|
127 |
-
break;
|
128 |
-
}
|
129 |
-
}
|
130 |
-
}
|
131 |
-
|
132 |
-
// Update post meta
|
133 |
-
update_post_meta($slideshow->ID, $settingsKey, $newSettings);
|
134 |
-
update_post_meta($slideshow->ID, $styleSettingsKey, $styleSettings);
|
135 |
-
update_post_meta($slideshow->ID, $slidesKey, $orderedSlides);
|
136 |
-
}
|
137 |
-
}
|
138 |
-
|
139 |
-
update_option('slideshow-plugin-updated-from-v2-to-v2-1-20', 'updated');
|
140 |
-
}
|
141 |
-
|
142 |
-
/**
|
143 |
-
* Updates v1 slides to the V2 slide format
|
144 |
-
* Slides are no longer attachments, convert attachments to post-meta.
|
145 |
-
*
|
146 |
-
* @since 2.0.1
|
147 |
-
*/
|
148 |
-
private static function updateV1toV2(){
|
149 |
-
// Check if this has already been done
|
150 |
-
if(get_option('slideshow-plugin-updated-from-v1-x-x-to-v2-0-1') !== false)
|
151 |
-
return;
|
152 |
-
|
153 |
-
// Get posts
|
154 |
-
$posts = get_posts(array(
|
155 |
-
'numberposts' => -1,
|
156 |
-
'offset' => 0,
|
157 |
-
'post_type' => 'slideshow'
|
158 |
-
));
|
159 |
-
|
160 |
-
// Loop through posts
|
161 |
-
foreach($posts as $post){
|
162 |
-
|
163 |
-
// Stores highest slide id.
|
164 |
-
$highestSlideId = -1;
|
165 |
-
|
166 |
-
// Defaults
|
167 |
-
$defaultData = $data = array(
|
168 |
-
'style_style' => 'light',
|
169 |
-
'style_custom' => '',
|
170 |
-
'setting_animation' => 'slide',
|
171 |
-
'setting_slideSpeed' => '1',
|
172 |
-
'setting_descriptionSpeed' => '0.4',
|
173 |
-
'setting_intervalSpeed' => '5',
|
174 |
-
'setting_play' => 'true',
|
175 |
-
'setting_loop' => 'true',
|
176 |
-
'setting_slidesPerView' => '1',
|
177 |
-
'setting_width' => '0',
|
178 |
-
'setting_height' => '200',
|
179 |
-
'setting_descriptionHeight' => '50',
|
180 |
-
'setting_stretchImages' => 'true',
|
181 |
-
'setting_controllable' => 'true',
|
182 |
-
'setting_controlPanel' => 'false',
|
183 |
-
'setting_showDescription' => 'true',
|
184 |
-
'setting_hideDescription' => 'true'
|
185 |
-
);
|
186 |
-
|
187 |
-
$yes = __('Yes', 'slideshow-plugin');
|
188 |
-
$no = __('No', 'slideshow-plugin');
|
189 |
-
$data = array( // $data : array([prefix_settingName] => array([inputType], [value], [default], [description], array([options]), array([dependsOn], [onValue]), 'group' => [groupName]))
|
190 |
-
'style_style' => array('select', '', $defaultData['style_style'], __('The style used for this slideshow', 'slideshow-plugin'), array('light' => __('Light', 'slideshow-plugin'), 'dark' => __('Dark', 'slideshow-plugin'), 'custom' => __('Custom', 'slideshow-plugin'))),
|
191 |
-
'style_custom' => array('textarea', '', $defaultData['style_custom'], __('Custom style editor', 'slideshow-plugin'), null, array('style_style', 'custom')),
|
192 |
-
'setting_animation' => array('select', '', $defaultData['setting_animation'], __('Animation used for transition between slides', 'slideshow-plugin'), array('slide' => __('Slide', 'slideshow-plugin'), 'fade' => __('Fade', 'slideshow-plugin')), 'group' => __('Animation', 'slideshow-plugin')),
|
193 |
-
'setting_slideSpeed' => array('text', '', $defaultData['setting_slideSpeed'], __('Number of seconds the slide takes to slide in', 'slideshow-plugin'), 'group' => __('Animation', 'slideshow-plugin')),
|
194 |
-
'setting_descriptionSpeed' => array('text', '', $defaultData['setting_descriptionSpeed'], __('Number of seconds the description takes to slide in', 'slideshow-plugin'), 'group' => __('Animation', 'slideshow-plugin')),
|
195 |
-
'setting_intervalSpeed' => array('text', '', $defaultData['setting_intervalSpeed'], __('Seconds between changing slides', 'slideshow-plugin'), 'group' => __('Animation', 'slideshow-plugin')),
|
196 |
-
'setting_slidesPerView' => array('text', '', $defaultData['setting_slidesPerView'], __('Number of slides to fit into one slide', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
197 |
-
'setting_width' => array('text', '', $defaultData['setting_width'], __('Width of the slideshow, set to parent's width on 0', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
198 |
-
'setting_height' => array('text', '', $defaultData['setting_height'], __('Height of the slideshow', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
199 |
-
'setting_descriptionHeight' => array('text', '', $defaultData['setting_descriptionHeight'], __('Height of the description boxes', 'slideshow-plugin'), 'group' => __('Display', 'slideshow-plugin')),
|
200 |
-
'setting_stretchImages' => array('radio', '', $defaultData['setting_stretchImages'], __('Fit image into slide (stretching it)', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
201 |
-
'setting_showDescription' => array('radio', '', $defaultData['setting_showDescription'], __('Show title and description', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Display', 'slideshow-plugin')),
|
202 |
-
'setting_hideDescription' => array('radio', '', $defaultData['setting_hideDescription'], __('Hide description box, it will pop up when a mouse hovers over the slide', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), array('setting_showDescription', 'true'), 'group' => __('Display', 'slideshow-plugin')),
|
203 |
-
'setting_play' => array('radio', '', $defaultData['setting_play'], __('Automatically slide to the next slide', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
204 |
-
'setting_loop' => array('radio', '', $defaultData['setting_loop'], __('Return to the beginning of the slideshow after last slide', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
205 |
-
'setting_controllable' => array('radio', '', $defaultData['setting_controllable'], __('Activate buttons (so the user can scroll through the slides)', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
206 |
-
'setting_controlPanel' => array('radio', '', $defaultData['setting_controlPanel'], __('Show control panel (play and pause button)', 'slideshow-plugin'), array('true' => $yes, 'false' => $no), 'group' => __('Control', 'slideshow-plugin')),
|
207 |
-
);
|
208 |
-
|
209 |
-
// Get settings
|
210 |
-
$currentSettings = get_post_meta(
|
211 |
-
$post->ID,
|
212 |
-
'settings',
|
213 |
-
true
|
214 |
-
);
|
215 |
-
|
216 |
-
// Fill data with settings
|
217 |
-
foreach($data as $key => $value)
|
218 |
-
if(isset($currentSettings[$key])){
|
219 |
-
$data[$key][1] = $currentSettings[$key];
|
220 |
-
unset($currentSettings[$key]);
|
221 |
-
}
|
222 |
-
|
223 |
-
// Load settings that are not there by default into data (slides in particular)
|
224 |
-
foreach($currentSettings as $key => $value)
|
225 |
-
if(!isset($data[$key]))
|
226 |
-
$data[$key] = $value;
|
227 |
-
|
228 |
-
// Settings
|
229 |
-
$settings = $data;
|
230 |
-
|
231 |
-
// Filter slides
|
232 |
-
$prefix = 'slide_';
|
233 |
-
foreach($settings as $key => $value)
|
234 |
-
if($prefix != substr($key, 0, strlen($prefix)))
|
235 |
-
unset($settings[$key]);
|
236 |
-
|
237 |
-
// Convert slide settings to array([slide-key] => array([setting-name] => [value]));
|
238 |
-
$slidesPreOrder = array();
|
239 |
-
foreach($settings as $key => $value){
|
240 |
-
$key = explode('_', $key);
|
241 |
-
if(is_numeric($key[1]))
|
242 |
-
$slidesPreOrder[$key[1]][$key[2]] = $value;
|
243 |
-
}
|
244 |
-
|
245 |
-
// Save slide keys from the $slidePreOrder array in the array itself for later use
|
246 |
-
foreach($slidesPreOrder as $key => $value){
|
247 |
-
// Save highest slide id
|
248 |
-
if($key > $highestSlideId)
|
249 |
-
$highestSlideId = $key;
|
250 |
-
}
|
251 |
-
|
252 |
-
// Get old data
|
253 |
-
$oldData = get_post_meta($post->ID, 'settings', true);
|
254 |
-
if(!is_array(($oldData)))
|
255 |
-
$oldData = array();
|
256 |
-
|
257 |
-
// Get attachments
|
258 |
-
$attachments = get_posts(array(
|
259 |
-
'numberposts' => -1,
|
260 |
-
'offset' => 0,
|
261 |
-
'post_type' => 'attachment',
|
262 |
-
'post_parent' => $post->ID
|
263 |
-
));
|
264 |
-
|
265 |
-
// Get data from attachments
|
266 |
-
$newData = array();
|
267 |
-
foreach($attachments as $attachment){
|
268 |
-
$highestSlideId++;
|
269 |
-
$newData['slide_' . $highestSlideId . '_postId'] = $attachment->ID;
|
270 |
-
$newData['slide_' . $highestSlideId . '_type'] = 'attachment';
|
271 |
-
}
|
272 |
-
|
273 |
-
// Save settings
|
274 |
-
update_post_meta(
|
275 |
-
$post->ID,
|
276 |
-
'settings',
|
277 |
-
array_merge(
|
278 |
-
$defaultData,
|
279 |
-
$oldData,
|
280 |
-
$newData
|
281 |
-
));
|
282 |
-
}
|
283 |
-
|
284 |
-
update_option('slideshow-plugin-updated-from-v1-x-x-to-v2-0-1', 'updated');
|
285 |
-
}
|
286 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/SlideshowPluginGeneralSettings/general-settings.js
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
jQuery(document).ready(function(){
|
2 |
|
3 |
/**
|
|
|
|
|
4 |
* On click of navigation tab, show different settings page.
|
5 |
*/
|
6 |
jQuery('.nav-tab').click(function(){
|
@@ -14,12 +16,19 @@ jQuery(document).ready(function(){
|
|
14 |
thisTab.addClass('nav-tab-active');
|
15 |
|
16 |
// Hide previously active tab's content
|
17 |
-
jQuery(activeTab.attr('href').replace('#', '.')).
|
18 |
|
19 |
// Show newly activate tab
|
20 |
-
jQuery(thisTab.attr('href').replace('#', '.')).
|
|
|
|
|
|
|
|
|
21 |
});
|
22 |
|
|
|
|
|
|
|
23 |
/**
|
24 |
* ==== User Capabilities ====
|
25 |
*
|
@@ -55,4 +64,164 @@ jQuery(document).ready(function(){
|
|
55 |
jQuery('#' + editSlideshows + '_' + role).attr('checked', true);
|
56 |
}
|
57 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
});
|
1 |
jQuery(document).ready(function(){
|
2 |
|
3 |
/**
|
4 |
+
* ==== Navigation ====
|
5 |
+
*
|
6 |
* On click of navigation tab, show different settings page.
|
7 |
*/
|
8 |
jQuery('.nav-tab').click(function(){
|
16 |
thisTab.addClass('nav-tab-active');
|
17 |
|
18 |
// Hide previously active tab's content
|
19 |
+
jQuery(activeTab.attr('href').replace('#', '.')).hide();
|
20 |
|
21 |
// Show newly activate tab
|
22 |
+
jQuery(thisTab.attr('href').replace('#', '.')).show();
|
23 |
+
|
24 |
+
// Set referrer value to the current page to be able to return there after saving
|
25 |
+
var referrer = jQuery('input[name=_wp_http_referer]');
|
26 |
+
referrer.attr('value', referrer.attr('value').split('#').shift() + thisTab.attr('href'));
|
27 |
});
|
28 |
|
29 |
+
// Navigate to correct tab by firing a click event on it. Click event needs to have already been registered on '.nav-tab'.
|
30 |
+
jQuery('a[href="#' + document.URL.split('#').pop() + '"]').trigger('click');
|
31 |
+
|
32 |
/**
|
33 |
* ==== User Capabilities ====
|
34 |
*
|
64 |
jQuery('#' + editSlideshows + '_' + role).attr('checked', true);
|
65 |
}
|
66 |
});
|
67 |
+
|
68 |
+
/**
|
69 |
+
* ==== Custom Styles ====
|
70 |
+
*
|
71 |
+
* Show chosen style editor and hide all others when clicked on style-action. Delete chosen style when clicked on
|
72 |
+
* style-delete
|
73 |
+
*/
|
74 |
+
jQuery(
|
75 |
+
'.custom-styles .styles-list .style-action,' +
|
76 |
+
'.custom-styles .styles-list .style-delete,' +
|
77 |
+
'.custom-styles .custom-style-templates .custom-styles-list-item .style-action,' +
|
78 |
+
'.custom-styles .custom-style-templates .custom-styles-list-item .style-delete'
|
79 |
+
).click(function(){
|
80 |
+
|
81 |
+
// Get custom style key
|
82 |
+
var customStyleKey = jQuery(this).attr('class').split(' ')[1];
|
83 |
+
|
84 |
+
// Return if no style key was found
|
85 |
+
if(customStyleKey == undefined)
|
86 |
+
return;
|
87 |
+
|
88 |
+
// Show
|
89 |
+
if(jQuery(this).hasClass('style-action')){
|
90 |
+
|
91 |
+
// Fade editors out
|
92 |
+
jQuery('.custom-styles .style-editors .style-editor').each(function(){
|
93 |
+
jQuery(this).fadeOut(200);
|
94 |
+
});
|
95 |
+
|
96 |
+
// Fade active editor in
|
97 |
+
setTimeout(
|
98 |
+
function(){
|
99 |
+
jQuery('.style-editor.' + customStyleKey).fadeIn(200);
|
100 |
+
},
|
101 |
+
200
|
102 |
+
);
|
103 |
+
}
|
104 |
+
|
105 |
+
// Delete
|
106 |
+
else if(jQuery(this).hasClass('style-delete')){
|
107 |
+
|
108 |
+
// Exit when the general settings variables is not present
|
109 |
+
var confirmDeleteMessage = 'Are you sure you want to delete this custom style?';
|
110 |
+
if( typeof GeneralSettingsVariables != 'undefined' &&
|
111 |
+
GeneralSettingsVariables.confirmDeleteMessage != undefined &&
|
112 |
+
GeneralSettingsVariables.confirmDeleteMessage != '')
|
113 |
+
confirmDeleteMessage = GeneralSettingsVariables.confirmDeleteMessage;
|
114 |
+
|
115 |
+
// Show confirm deletion message
|
116 |
+
if(!confirm(confirmDeleteMessage))
|
117 |
+
return;
|
118 |
+
|
119 |
+
// Delete custom style
|
120 |
+
jQuery('.custom-styles .style-editors .style-editor.' + customStyleKey).remove();
|
121 |
+
|
122 |
+
// Delete item from list
|
123 |
+
jQuery(this).closest('li').remove();
|
124 |
+
}
|
125 |
+
});
|
126 |
+
|
127 |
+
/**
|
128 |
+
* ==== Custom Styles ====
|
129 |
+
*
|
130 |
+
* Create new editor from editor template when a default style needs to be customized.
|
131 |
+
*/
|
132 |
+
jQuery('.custom-styles .styles-list .style-action.style-default').click(function(){
|
133 |
+
|
134 |
+
// Get the default stylesheet title and content
|
135 |
+
var title = jQuery(this).closest('li').find('.style-title').html();
|
136 |
+
var content = jQuery(this).closest('li').find('.style-content').html();
|
137 |
+
|
138 |
+
// Prefix title with new, or its translation
|
139 |
+
if( typeof GeneralSettingsVariables != 'undefined' &&
|
140 |
+
GeneralSettingsVariables.newCustomizationPrefix != undefined &&
|
141 |
+
GeneralSettingsVariables.newCustomizationPrefix != '')
|
142 |
+
title = GeneralSettingsVariables.newCustomizationPrefix + ' - ' + title;
|
143 |
+
|
144 |
+
// Exit when content is empty
|
145 |
+
if(content == '' || content == undefined)
|
146 |
+
return;
|
147 |
+
|
148 |
+
// Exit when the general settings variables is not present
|
149 |
+
var customStylesKey = 'slideshow-jquery-image-gallery-custom-styles';
|
150 |
+
if( typeof GeneralSettingsVariables != 'undefined' &&
|
151 |
+
GeneralSettingsVariables.customStylesKey != undefined &&
|
152 |
+
GeneralSettingsVariables.customStylesKey != '')
|
153 |
+
customStylesKey = GeneralSettingsVariables.customStylesKey;
|
154 |
+
|
155 |
+
// Highest custom style ID
|
156 |
+
var highestCustomStyleID = getHighestCustomStyleID();
|
157 |
+
|
158 |
+
// Custom style ID
|
159 |
+
var customStyleID = customStylesKey + '_' + (highestCustomStyleID + 1);
|
160 |
+
|
161 |
+
// Clone editor template
|
162 |
+
var $editor = jQuery('.custom-styles .custom-style-templates .style-editor').clone();
|
163 |
+
|
164 |
+
// Add class to editor
|
165 |
+
$editor.addClass(customStyleID);
|
166 |
+
|
167 |
+
// Add value attributes
|
168 |
+
$editor.find('.new-custom-style-title').attr('value', title);
|
169 |
+
$editor.find('.new-custom-style-content').html(content);
|
170 |
+
|
171 |
+
// Add name attributes
|
172 |
+
$editor.find('.new-custom-style-title').attr('name', customStylesKey + '[' + customStyleID + '][title]');
|
173 |
+
$editor.find('.new-custom-style-content').attr('name', customStylesKey + '[' + customStyleID + '][style]');
|
174 |
+
|
175 |
+
// Add editor to DOM
|
176 |
+
jQuery('.custom-styles .style-editors').append($editor);
|
177 |
+
|
178 |
+
// Fade editor in
|
179 |
+
setTimeout(
|
180 |
+
function(){
|
181 |
+
$editor.fadeIn(200);
|
182 |
+
},
|
183 |
+
200
|
184 |
+
);
|
185 |
+
|
186 |
+
// Clone custom styles list item
|
187 |
+
var $li = jQuery('.custom-styles .custom-style-templates .custom-styles-list-item').clone(true);
|
188 |
+
|
189 |
+
// Prepare
|
190 |
+
$li.removeClass('custom-styles-list-item')
|
191 |
+
$li.find('.style-title').html(title);
|
192 |
+
$li.find('.style-action').addClass(customStyleID);
|
193 |
+
$li.find('.style-delete').addClass(customStyleID);
|
194 |
+
|
195 |
+
// Remove 'No custom stylesheets found message'
|
196 |
+
jQuery('.custom-styles .styles-list .custom-styles-list .no-custom-styles-found').remove();
|
197 |
+
|
198 |
+
// Add custom styles list item to DOM
|
199 |
+
jQuery('.custom-styles .styles-list .custom-styles-list').append($li);
|
200 |
+
});
|
201 |
+
|
202 |
+
/**
|
203 |
+
* ==== Custom Styles ====
|
204 |
+
*
|
205 |
+
* Returns highest custom style id in existence
|
206 |
+
*
|
207 |
+
* @return highestCustomStyleID
|
208 |
+
*/
|
209 |
+
function getHighestCustomStyleID(){
|
210 |
+
|
211 |
+
var highestCustomStyleID = 0;
|
212 |
+
|
213 |
+
// Loop through style editors
|
214 |
+
jQuery('.custom-styles .style-editors .style-editor').each(function(){
|
215 |
+
|
216 |
+
// Get custom style ID
|
217 |
+
var customStyleID = parseInt(jQuery(this).attr('class').split('_').pop());
|
218 |
+
|
219 |
+
// Check if the ID is higher than any previously checked
|
220 |
+
if(customStyleID > highestCustomStyleID)
|
221 |
+
highestCustomStyleID = customStyleID;
|
222 |
+
});
|
223 |
+
|
224 |
+
// Return
|
225 |
+
return parseInt(highestCustomStyleID);
|
226 |
+
}
|
227 |
});
|
js/SlideshowPluginPostType/post-type-handler.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
jQuery(document).ready(function(){
|
|
|
2 |
/**
|
3 |
* Loop through fields that depend on another field's value for showing, register change event
|
4 |
*/
|
1 |
jQuery(document).ready(function(){
|
2 |
+
|
3 |
/**
|
4 |
* Loop through fields that depend on another field's value for showing, register change event
|
5 |
*/
|
js/SlideshowPluginSlideInserter/slide-inserter.js
CHANGED
@@ -1,10 +1,13 @@
|
|
1 |
jQuery(document).ready(function(){
|
|
|
2 |
// Index first
|
3 |
slideshowSlideInserterIndexSlidesOrder();
|
4 |
|
5 |
// Make list items in the sortables list sortable, exclude elements with cancel option.
|
6 |
jQuery('.sortable-slides-list').sortable({
|
7 |
revert: true,
|
|
|
|
|
8 |
stop: function(event, ui){
|
9 |
slideshowSlideInserterIndexSlidesOrder();
|
10 |
},
|
@@ -101,7 +104,7 @@ jQuery(document).ready(function(){
|
|
101 |
// Get slideId
|
102 |
var slideId = jQuery(this).find('span').attr('class');
|
103 |
|
104 |
-
|
105 |
if(postId == -1 || slideId == 'undefined')
|
106 |
return;
|
107 |
|
@@ -207,21 +210,21 @@ jQuery(document).ready(function(){
|
|
207 |
* @param src
|
208 |
*/
|
209 |
function slideshowSlideInserterInsertImageSlide(id, title, description, src){
|
210 |
-
if(slideshowHighestSlideId == 'undefined')
|
211 |
-
return;
|
212 |
|
213 |
-
|
214 |
var imageSlide = jQuery('.image-slide-template').find('li').clone();
|
215 |
|
216 |
// Fill slide with data
|
217 |
imageSlide.find('.attachment').attr('src', src);
|
218 |
imageSlide.find('.attachment').attr('title', title);
|
219 |
imageSlide.find('.attachment').attr('alt', title);
|
220 |
-
imageSlide.find('.title').
|
221 |
imageSlide.find('.description').html(description);
|
222 |
imageSlide.find('.postId').attr('value', id);
|
223 |
|
224 |
// Set names to be saved to the database
|
|
|
|
|
225 |
imageSlide.find('.url').attr('name', 'slides[0][url]');
|
226 |
imageSlide.find('.urlTarget').attr('name', 'slides[0][urlTarget]');
|
227 |
imageSlide.find('.type').attr('name', 'slides[0][type]');
|
@@ -248,10 +251,8 @@ jQuery(document).ready(function(){
|
|
248 |
* Inserts text slide into the slides list
|
249 |
*/
|
250 |
function slideshowSlideInserterInsertTextSlide(){
|
251 |
-
if(slideshowHighestSlideId == 'undefined')
|
252 |
-
return;
|
253 |
|
254 |
-
|
255 |
var textSlide = jQuery('.text-slide-template').find('li').clone();
|
256 |
|
257 |
// Set names to be saved to the database
|
@@ -283,10 +284,8 @@ jQuery(document).ready(function(){
|
|
283 |
* Inserts video slide into the slides list
|
284 |
*/
|
285 |
function slideshowSlideInserterInsertVideoSlide(){
|
286 |
-
if(slideshowHighestSlideId == 'undefined')
|
287 |
-
return;
|
288 |
|
289 |
-
|
290 |
var videoSlide = jQuery('.video-slide-template').find('li').clone();
|
291 |
|
292 |
// Set names to be saved to the database
|
1 |
jQuery(document).ready(function(){
|
2 |
+
|
3 |
// Index first
|
4 |
slideshowSlideInserterIndexSlidesOrder();
|
5 |
|
6 |
// Make list items in the sortables list sortable, exclude elements with cancel option.
|
7 |
jQuery('.sortable-slides-list').sortable({
|
8 |
revert: true,
|
9 |
+
placeholder: 'sortable-placeholder',
|
10 |
+
forcePlaceholderSize: true,
|
11 |
stop: function(event, ui){
|
12 |
slideshowSlideInserterIndexSlidesOrder();
|
13 |
},
|
104 |
// Get slideId
|
105 |
var slideId = jQuery(this).find('span').attr('class');
|
106 |
|
107 |
+
// Exit if no slideId is found
|
108 |
if(postId == -1 || slideId == 'undefined')
|
109 |
return;
|
110 |
|
210 |
* @param src
|
211 |
*/
|
212 |
function slideshowSlideInserterInsertImageSlide(id, title, description, src){
|
|
|
|
|
213 |
|
214 |
+
// Find and clone the image slide template
|
215 |
var imageSlide = jQuery('.image-slide-template').find('li').clone();
|
216 |
|
217 |
// Fill slide with data
|
218 |
imageSlide.find('.attachment').attr('src', src);
|
219 |
imageSlide.find('.attachment').attr('title', title);
|
220 |
imageSlide.find('.attachment').attr('alt', title);
|
221 |
+
imageSlide.find('.title').attr('value', title);
|
222 |
imageSlide.find('.description').html(description);
|
223 |
imageSlide.find('.postId').attr('value', id);
|
224 |
|
225 |
// Set names to be saved to the database
|
226 |
+
imageSlide.find('.title').attr('name', 'slides[0][title]');
|
227 |
+
imageSlide.find('.description').attr('name', 'slides[0][description]');
|
228 |
imageSlide.find('.url').attr('name', 'slides[0][url]');
|
229 |
imageSlide.find('.urlTarget').attr('name', 'slides[0][urlTarget]');
|
230 |
imageSlide.find('.type').attr('name', 'slides[0][type]');
|
251 |
* Inserts text slide into the slides list
|
252 |
*/
|
253 |
function slideshowSlideInserterInsertTextSlide(){
|
|
|
|
|
254 |
|
255 |
+
// Find and clone the text slide template
|
256 |
var textSlide = jQuery('.text-slide-template').find('li').clone();
|
257 |
|
258 |
// Set names to be saved to the database
|
284 |
* Inserts video slide into the slides list
|
285 |
*/
|
286 |
function slideshowSlideInserterInsertVideoSlide(){
|
|
|
|
|
287 |
|
288 |
+
// Find and clone the video slide template
|
289 |
var videoSlide = jQuery('.video-slide-template').find('li').clone();
|
290 |
|
291 |
// Set names to be saved to the database
|
languages/slideshow-plugin-es_ES.mo
ADDED
Binary file
|
languages/slideshow-plugin-es_ES.po
ADDED
@@ -0,0 +1,502 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-12-06 18:46+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-01-19 20:23-0600\n"
|
7 |
+
"Last-Translator: Violeta Rosales <ellaes@violetarosales.com>\n"
|
8 |
+
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
+
"Language: fr_FR\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
14 |
+
"X-Poedit-Basepath: ../\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
#: classes/SlideshowPluginPostType.php:32
|
20 |
+
msgid "Slideshows"
|
21 |
+
msgstr "Diapositivas"
|
22 |
+
|
23 |
+
#: classes/SlideshowPluginPostType.php:33
|
24 |
+
#: views/SlideshowPluginWidget/form.php:7
|
25 |
+
msgid "Slideshow"
|
26 |
+
msgstr "Diapositiva"
|
27 |
+
|
28 |
+
#: classes/SlideshowPluginPostType.php:34
|
29 |
+
msgid "Add New Slideshow"
|
30 |
+
msgstr "Agregar Nueva Diapositiva"
|
31 |
+
|
32 |
+
#: classes/SlideshowPluginPostType.php:35
|
33 |
+
msgid "Edit slideshow"
|
34 |
+
msgstr "Editar diapositiva"
|
35 |
+
|
36 |
+
#: classes/SlideshowPluginPostType.php:36
|
37 |
+
msgid "New slideshow"
|
38 |
+
msgstr "Nueva diapositiva"
|
39 |
+
|
40 |
+
#: classes/SlideshowPluginPostType.php:37
|
41 |
+
msgid "View slideshow"
|
42 |
+
msgstr "Ver diapositivas"
|
43 |
+
|
44 |
+
#: classes/SlideshowPluginPostType.php:38
|
45 |
+
msgid "Search slideshows"
|
46 |
+
msgstr "Buscar diapositivas"
|
47 |
+
|
48 |
+
#: classes/SlideshowPluginPostType.php:39
|
49 |
+
#: classes/SlideshowPluginPostType.php:40
|
50 |
+
msgid "No slideshows found"
|
51 |
+
msgstr "No se encontraron diapositivas"
|
52 |
+
|
53 |
+
#: classes/SlideshowPluginPostType.php:95
|
54 |
+
msgid "Information"
|
55 |
+
msgstr "Información"
|
56 |
+
|
57 |
+
#: classes/SlideshowPluginPostType.php:104
|
58 |
+
msgid "Slides List"
|
59 |
+
msgstr "Lista de diapositivas"
|
60 |
+
|
61 |
+
#: classes/SlideshowPluginPostType.php:113
|
62 |
+
msgid "Slideshow Style"
|
63 |
+
msgstr "Estilo de las diapositivas"
|
64 |
+
|
65 |
+
#: classes/SlideshowPluginPostType.php:122
|
66 |
+
msgid "Slideshow Settings"
|
67 |
+
msgstr "Configuración de las diapositivas"
|
68 |
+
|
69 |
+
#: classes/SlideshowPluginSettingsHandler.php:309
|
70 |
+
#: classes/SlideshowPluginSettingsHandler.php:374
|
71 |
+
#: classes/SlideshowPluginUpdater.php:183
|
72 |
+
msgid "Yes"
|
73 |
+
msgstr "Sí"
|
74 |
+
|
75 |
+
#: classes/SlideshowPluginSettingsHandler.php:310
|
76 |
+
#: classes/SlideshowPluginSettingsHandler.php:375
|
77 |
+
#: classes/SlideshowPluginUpdater.php:184
|
78 |
+
msgid "No"
|
79 |
+
msgstr "No"
|
80 |
+
|
81 |
+
#: classes/SlideshowPluginSettingsHandler.php:337
|
82 |
+
#: classes/SlideshowPluginUpdater.php:188
|
83 |
+
msgid "Animation used for transition between slides"
|
84 |
+
msgstr "Animación para las transiciones entre las diapositivas"
|
85 |
+
|
86 |
+
#: classes/SlideshowPluginSettingsHandler.php:337
|
87 |
+
#: classes/SlideshowPluginUpdater.php:188
|
88 |
+
msgid "Slide"
|
89 |
+
msgstr "Diapositiva"
|
90 |
+
|
91 |
+
#: classes/SlideshowPluginSettingsHandler.php:337
|
92 |
+
#: classes/SlideshowPluginUpdater.php:188
|
93 |
+
msgid "Fade"
|
94 |
+
msgstr "Desvanecer"
|
95 |
+
|
96 |
+
#: classes/SlideshowPluginSettingsHandler.php:337
|
97 |
+
#: classes/SlideshowPluginSettingsHandler.php:338
|
98 |
+
#: classes/SlideshowPluginSettingsHandler.php:339
|
99 |
+
#: classes/SlideshowPluginSettingsHandler.php:340
|
100 |
+
#: classes/SlideshowPluginUpdater.php:188
|
101 |
+
#: classes/SlideshowPluginUpdater.php:189
|
102 |
+
#: classes/SlideshowPluginUpdater.php:190
|
103 |
+
#: classes/SlideshowPluginUpdater.php:191
|
104 |
+
msgid "Animation"
|
105 |
+
msgstr "Animación"
|
106 |
+
|
107 |
+
#: classes/SlideshowPluginSettingsHandler.php:338
|
108 |
+
#: classes/SlideshowPluginUpdater.php:189
|
109 |
+
msgid "Number of seconds the slide takes to slide in"
|
110 |
+
msgstr "Núero de segundos que tarda la diapositiva en entrar"
|
111 |
+
|
112 |
+
#: classes/SlideshowPluginSettingsHandler.php:339
|
113 |
+
#: classes/SlideshowPluginUpdater.php:190
|
114 |
+
msgid "Number of seconds the description takes to slide in"
|
115 |
+
msgstr "Número de segundos que tarda la descripción en entrar"
|
116 |
+
|
117 |
+
#: classes/SlideshowPluginSettingsHandler.php:340
|
118 |
+
#: classes/SlideshowPluginUpdater.php:191
|
119 |
+
msgid "Seconds between changing slides"
|
120 |
+
msgstr "Segundos entre cada diapositiva"
|
121 |
+
|
122 |
+
#: classes/SlideshowPluginSettingsHandler.php:341
|
123 |
+
#: classes/SlideshowPluginUpdater.php:192
|
124 |
+
msgid "Number of slides to fit into one slide"
|
125 |
+
msgstr "Número de imágenes/videos/texto dentro de cada diapositiva"
|
126 |
+
|
127 |
+
#: classes/SlideshowPluginSettingsHandler.php:341
|
128 |
+
#: classes/SlideshowPluginSettingsHandler.php:342
|
129 |
+
#: classes/SlideshowPluginSettingsHandler.php:343
|
130 |
+
#: classes/SlideshowPluginSettingsHandler.php:344
|
131 |
+
#: classes/SlideshowPluginSettingsHandler.php:345
|
132 |
+
#: classes/SlideshowPluginSettingsHandler.php:346
|
133 |
+
#: classes/SlideshowPluginSettingsHandler.php:347
|
134 |
+
#: classes/SlideshowPluginUpdater.php:192
|
135 |
+
#: classes/SlideshowPluginUpdater.php:193
|
136 |
+
#: classes/SlideshowPluginUpdater.php:194
|
137 |
+
#: classes/SlideshowPluginUpdater.php:195
|
138 |
+
#: classes/SlideshowPluginUpdater.php:196
|
139 |
+
#: classes/SlideshowPluginUpdater.php:197
|
140 |
+
#: classes/SlideshowPluginUpdater.php:198
|
141 |
+
msgid "Display"
|
142 |
+
msgstr "Mostrar"
|
143 |
+
|
144 |
+
#: classes/SlideshowPluginSettingsHandler.php:342
|
145 |
+
#: classes/SlideshowPluginUpdater.php:193
|
146 |
+
msgid "Width of the slideshow, set to parent's width on 0"
|
147 |
+
msgstr ""
|
148 |
+
"Ancho de las diapositivas. Escribe 0 para tomar el ancho del nodo padre."
|
149 |
+
|
150 |
+
#: classes/SlideshowPluginSettingsHandler.php:343
|
151 |
+
#: classes/SlideshowPluginUpdater.php:194
|
152 |
+
msgid "Height of the slideshow"
|
153 |
+
msgstr "Alto de las diapositivas"
|
154 |
+
|
155 |
+
#: classes/SlideshowPluginSettingsHandler.php:344
|
156 |
+
#: classes/SlideshowPluginUpdater.php:195
|
157 |
+
msgid "Height of the description boxes"
|
158 |
+
msgstr "Alto de la caja de descripción"
|
159 |
+
|
160 |
+
#: classes/SlideshowPluginSettingsHandler.php:345
|
161 |
+
#: classes/SlideshowPluginUpdater.php:196
|
162 |
+
msgid "Fit image into slide (stretching it)"
|
163 |
+
msgstr "Adaptar la diapositiva (estirarla)"
|
164 |
+
|
165 |
+
#: classes/SlideshowPluginSettingsHandler.php:346
|
166 |
+
#: classes/SlideshowPluginUpdater.php:197
|
167 |
+
msgid "Show title and description"
|
168 |
+
msgstr "Mostrar título y descripción"
|
169 |
+
|
170 |
+
#: classes/SlideshowPluginSettingsHandler.php:347
|
171 |
+
#: classes/SlideshowPluginUpdater.php:198
|
172 |
+
msgid "Hide description box, it will pop up when a mouse hovers over the slide"
|
173 |
+
msgstr ""
|
174 |
+
"Esconder la caja de descripción, se mostrará cuando el puntero esté sobre la "
|
175 |
+
"diapositiva"
|
176 |
+
|
177 |
+
#: classes/SlideshowPluginSettingsHandler.php:348
|
178 |
+
#: classes/SlideshowPluginUpdater.php:199
|
179 |
+
msgid "Automatically slide to the next slide"
|
180 |
+
msgstr "Pasar automáticamente a la siguiente diapositiva"
|
181 |
+
|
182 |
+
#: classes/SlideshowPluginSettingsHandler.php:348
|
183 |
+
#: classes/SlideshowPluginSettingsHandler.php:349
|
184 |
+
#: classes/SlideshowPluginSettingsHandler.php:350
|
185 |
+
#: classes/SlideshowPluginSettingsHandler.php:351
|
186 |
+
#: classes/SlideshowPluginUpdater.php:199
|
187 |
+
#: classes/SlideshowPluginUpdater.php:200
|
188 |
+
#: classes/SlideshowPluginUpdater.php:201
|
189 |
+
#: classes/SlideshowPluginUpdater.php:202
|
190 |
+
msgid "Control"
|
191 |
+
msgstr "Control"
|
192 |
+
|
193 |
+
#: classes/SlideshowPluginSettingsHandler.php:349
|
194 |
+
#: classes/SlideshowPluginUpdater.php:200
|
195 |
+
msgid "Return to the beginning of the slideshow after last slide"
|
196 |
+
msgstr "Regresar al inicio de las diapositivas, al llegar al final"
|
197 |
+
|
198 |
+
#: classes/SlideshowPluginSettingsHandler.php:350
|
199 |
+
#: classes/SlideshowPluginUpdater.php:201
|
200 |
+
msgid "Activate buttons (so the user can scroll through the slides)"
|
201 |
+
msgstr ""
|
202 |
+
"Activar botones (para que el usuario pueda desplazarse entre las "
|
203 |
+
"diapositivas)"
|
204 |
+
|
205 |
+
#: classes/SlideshowPluginSettingsHandler.php:351
|
206 |
+
#: classes/SlideshowPluginUpdater.php:202
|
207 |
+
msgid "Show control panel (play and pause button)"
|
208 |
+
msgstr "Mostrar panel de control (botones de play y pausa)"
|
209 |
+
|
210 |
+
#: classes/SlideshowPluginSettingsHandler.php:352
|
211 |
+
msgid "Randomize slides"
|
212 |
+
msgstr "Diapositivas aleatorias"
|
213 |
+
|
214 |
+
#: classes/SlideshowPluginSettingsHandler.php:352
|
215 |
+
#: classes/SlideshowPluginSettingsHandler.php:353
|
216 |
+
msgid "Miscellaneous"
|
217 |
+
msgstr "Miscelanea"
|
218 |
+
|
219 |
+
#: classes/SlideshowPluginSettingsHandler.php:353
|
220 |
+
#, php-format
|
221 |
+
msgid "Avoid content filter (disable if '%s' is shown)"
|
222 |
+
msgstr "Evitar filtro de contenido (desactivar si '%s' se muestra)"
|
223 |
+
|
224 |
+
#: classes/SlideshowPluginSettingsHandler.php:386
|
225 |
+
#: classes/SlideshowPluginUpdater.php:186
|
226 |
+
msgid "The style used for this slideshow"
|
227 |
+
msgstr "El estilo usado para esta diapositiva"
|
228 |
+
|
229 |
+
#: classes/SlideshowPluginSettingsHandler.php:386
|
230 |
+
#: classes/SlideshowPluginUpdater.php:186
|
231 |
+
msgid "Light"
|
232 |
+
msgstr "Claro"
|
233 |
+
|
234 |
+
#: classes/SlideshowPluginSettingsHandler.php:386
|
235 |
+
#: classes/SlideshowPluginUpdater.php:186
|
236 |
+
msgid "Dark"
|
237 |
+
msgstr "Obscuro"
|
238 |
+
|
239 |
+
#: classes/SlideshowPluginSettingsHandler.php:386
|
240 |
+
#: classes/SlideshowPluginUpdater.php:186
|
241 |
+
msgid "Custom"
|
242 |
+
msgstr "Personalizar"
|
243 |
+
|
244 |
+
#: classes/SlideshowPluginSettingsHandler.php:387
|
245 |
+
#: classes/SlideshowPluginUpdater.php:187
|
246 |
+
msgid "Custom style editor"
|
247 |
+
msgstr "Editor de estilo personalizado"
|
248 |
+
|
249 |
+
#: classes/SlideshowPluginShortcode.php:130
|
250 |
+
msgid "No slideshow selected."
|
251 |
+
msgstr "No se ha seleccionado ninguna diapositiva"
|
252 |
+
|
253 |
+
#: classes/SlideshowPluginSlideInserter.php:148
|
254 |
+
#: views/SlideshowPluginPostType/slides.php:2
|
255 |
+
msgid "Insert"
|
256 |
+
msgstr "Insertar"
|
257 |
+
|
258 |
+
#: classes/SlideshowPluginSlideInserter.php:157
|
259 |
+
msgid "Load more results"
|
260 |
+
msgstr "Cargar más resultados"
|
261 |
+
|
262 |
+
#: classes/SlideshowPluginSlideInserter.php:166
|
263 |
+
msgid "No images were found, click here to upload some."
|
264 |
+
msgstr "No se encontraron imágenes, da clic para subir algunas."
|
265 |
+
|
266 |
+
#: classes/SlideshowPluginSlideInserter.php:227
|
267 |
+
msgid "Are you sure you want to delete this slide?"
|
268 |
+
msgstr "¿Estás seguro de que quieres borrar esta diapositiva?"
|
269 |
+
|
270 |
+
#: classes/SlideshowPluginWidget.php:20
|
271 |
+
msgid "Enables you to show your slideshows in the widget area of your website."
|
272 |
+
msgstr "Permite que puedas mostrar las diapositivas en el área de los Widgets"
|
273 |
+
|
274 |
+
#: classes/SlideshowPluginWidget.php:26
|
275 |
+
msgid "Slideshow Widget"
|
276 |
+
msgstr "Widget de diapositiva"
|
277 |
+
|
278 |
+
#: views/SlideshowPluginPostType/information.php:1
|
279 |
+
msgid ""
|
280 |
+
"To use this slideshow in your website either add this piece of shortcode to "
|
281 |
+
"your posts or pages"
|
282 |
+
msgstr ""
|
283 |
+
"Para utilizar estas diapositivas en la página, copia este código y pégalo en "
|
284 |
+
"el editor de la página o entrada"
|
285 |
+
|
286 |
+
#: views/SlideshowPluginPostType/information.php:5
|
287 |
+
msgid ""
|
288 |
+
"Or add this piece of code to where ever in your website you want to place "
|
289 |
+
"the slideshow"
|
290 |
+
msgstr "O agrega este código en tu tema"
|
291 |
+
|
292 |
+
#: views/SlideshowPluginPostType/information.php:9
|
293 |
+
#, php-format
|
294 |
+
msgid "Or go to the %swidgets page%s and show the slideshow as a widget."
|
295 |
+
msgstr "Ve al %sárea de widgets%s y muestra las Diapositivas como Widget"
|
296 |
+
|
297 |
+
#: views/SlideshowPluginPostType/settings.php:12
|
298 |
+
msgid "settings"
|
299 |
+
msgstr "Configuración"
|
300 |
+
|
301 |
+
#: views/SlideshowPluginPostType/settings.php:26
|
302 |
+
#: views/SlideshowPluginPostType/style-settings.php:8
|
303 |
+
msgid "Default"
|
304 |
+
msgstr "Por defecto"
|
305 |
+
|
306 |
+
#: views/SlideshowPluginPostType/slides.php:9
|
307 |
+
msgid "Add slides to this slideshow by using one of the buttons above."
|
308 |
+
msgstr "Agrega una diapositiva usando uno de los botones de abajo."
|
309 |
+
|
310 |
+
#: views/SlideshowPluginPostType/slides.php:51
|
311 |
+
#: views/SlideshowPluginPostType/slides.php:156
|
312 |
+
#: views/SlideshowPluginWidget/form.php:2
|
313 |
+
msgid "Title"
|
314 |
+
msgstr "Título"
|
315 |
+
|
316 |
+
#: views/SlideshowPluginPostType/slides.php:52
|
317 |
+
#: views/SlideshowPluginPostType/slides.php:157
|
318 |
+
msgid "Description"
|
319 |
+
msgstr "Descripción"
|
320 |
+
|
321 |
+
#: views/SlideshowPluginPostType/slides.php:53
|
322 |
+
#: views/SlideshowPluginPostType/slides.php:158
|
323 |
+
msgid "Background color"
|
324 |
+
msgstr "Color de fondo"
|
325 |
+
|
326 |
+
#: views/SlideshowPluginPostType/slides.php:59
|
327 |
+
#: views/SlideshowPluginPostType/slides.php:124
|
328 |
+
#: views/SlideshowPluginPostType/slides.php:164
|
329 |
+
#: views/SlideshowPluginPostType/slides.php:212
|
330 |
+
msgid "Same window"
|
331 |
+
msgstr "Misma ventana"
|
332 |
+
|
333 |
+
#: views/SlideshowPluginPostType/slides.php:60
|
334 |
+
#: views/SlideshowPluginPostType/slides.php:125
|
335 |
+
#: views/SlideshowPluginPostType/slides.php:165
|
336 |
+
#: views/SlideshowPluginPostType/slides.php:213
|
337 |
+
msgid "New window"
|
338 |
+
msgstr "Ventana nueva"
|
339 |
+
|
340 |
+
#: views/SlideshowPluginPostType/slides.php:64
|
341 |
+
#: views/SlideshowPluginPostType/slides.php:129
|
342 |
+
#: views/SlideshowPluginPostType/slides.php:169
|
343 |
+
#: views/SlideshowPluginPostType/slides.php:217
|
344 |
+
msgid "URL"
|
345 |
+
msgstr "URL"
|
346 |
+
|
347 |
+
#: views/SlideshowPluginPostType/slides.php:80
|
348 |
+
#: views/SlideshowPluginPostType/slides.php:185
|
349 |
+
msgid "Youtube Video ID"
|
350 |
+
msgstr "Video de YouTube"
|
351 |
+
|
352 |
+
#: views/SlideshowPluginPostType/slides.php:108
|
353 |
+
#: views/SlideshowPluginPostType/slides.php:115
|
354 |
+
msgid "Edit"
|
355 |
+
msgstr "Editar"
|
356 |
+
|
357 |
+
#: views/SlideshowPluginPostType/slides.php:140
|
358 |
+
msgid ""
|
359 |
+
"An error occurred while loading this slide, and it will not be present in "
|
360 |
+
"the slideshow"
|
361 |
+
msgstr ""
|
362 |
+
"Ha ocurrido un error miestras se cargaba esta diapositiva y no puede ser "
|
363 |
+
"presentada"
|
364 |
+
|
365 |
+
#: views/SlideshowPluginPostType/slides.php:145
|
366 |
+
#: views/SlideshowPluginPostType/slides.php:177
|
367 |
+
#: views/SlideshowPluginPostType/slides.php:192
|
368 |
+
#: views/SlideshowPluginPostType/slides.php:226
|
369 |
+
msgid "Delete slide"
|
370 |
+
msgstr "Borrar diapositiva"
|
371 |
+
|
372 |
+
#: views/SlideshowPluginPostType/support-plugin.php:3
|
373 |
+
msgid "Help to keep this plugin free!"
|
374 |
+
msgstr "¡Ayuda a que este plugin sea gratis!"
|
375 |
+
|
376 |
+
#: views/SlideshowPluginPostType/support-plugin.php:6
|
377 |
+
msgid ""
|
378 |
+
"In order to keep you provided with the newest features, forum support, and "
|
379 |
+
"bug-fixes, a lot of motivation is required. Therefore I'm kindly asking you "
|
380 |
+
"to consider making a small donation to the plugin or rating it as 5-stars on "
|
381 |
+
"Wordpress.org. Thank you in advance!"
|
382 |
+
msgstr ""
|
383 |
+
"Con el fin de mantenerlo siempre con las características más recientes, el "
|
384 |
+
"apoyo foro, y correcciones de errores, mucha motivación es necesaria. Por lo "
|
385 |
+
"tanto estoy pidiendo amablemente que consideren hacer una pequeña donación "
|
386 |
+
"al plugin o que califiquen como 5 estrellas en Wordpress.org. ¡Gracias de "
|
387 |
+
"antemano!"
|
388 |
+
|
389 |
+
#: views/SlideshowPluginPostType/support-plugin.php:15
|
390 |
+
msgid "Rate on Wordpress.org"
|
391 |
+
msgstr "Calificar en Wordpress.org"
|
392 |
+
|
393 |
+
#: views/SlideshowPluginPostType/support-plugin.php:24
|
394 |
+
msgid "Questions / Suggestions"
|
395 |
+
msgstr "Preguntas / Sugerencias"
|
396 |
+
|
397 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:4
|
398 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:9
|
399 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:16
|
400 |
+
msgid "Insert a Slideshow"
|
401 |
+
msgstr "Insertar una Diapositiva"
|
402 |
+
|
403 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:6
|
404 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:50
|
405 |
+
msgid "Insert Slideshow"
|
406 |
+
msgstr "Insertar Diapositiva"
|
407 |
+
|
408 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:26
|
409 |
+
msgid "Select a slideshow"
|
410 |
+
msgstr "Seleccionar una diapositiva"
|
411 |
+
|
412 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:35
|
413 |
+
#: views/SlideshowPluginWidget/form.php:12
|
414 |
+
msgid "Untitled slideshow"
|
415 |
+
msgstr "Diapositiva sin título"
|
416 |
+
|
417 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:55
|
418 |
+
msgid "Cancel"
|
419 |
+
msgstr "Cancelar"
|
420 |
+
|
421 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:66
|
422 |
+
#, php-format
|
423 |
+
msgid ""
|
424 |
+
"It seems you haven't created any slideshows yet. %sYou can create a "
|
425 |
+
"slideshow here!%s"
|
426 |
+
msgstr ""
|
427 |
+
"Parece que no has creado ninguna diapositiva aún. %s¡Puedes crear una aquí!%s"
|
428 |
+
|
429 |
+
#: views/SlideshowPluginSlideInserter/insert-image-button.php:1
|
430 |
+
msgid "Image slide"
|
431 |
+
msgstr "Diapositiva de Imagen"
|
432 |
+
|
433 |
+
#: views/SlideshowPluginSlideInserter/insert-text-button.php:1
|
434 |
+
msgid "Text slide"
|
435 |
+
msgstr "Diapositiva de Texto"
|
436 |
+
|
437 |
+
#: views/SlideshowPluginSlideInserter/insert-video-button.php:1
|
438 |
+
msgid "Video slide"
|
439 |
+
msgstr "Diapositiva de Video"
|
440 |
+
|
441 |
+
#: views/SlideshowPluginSlideInserter/search-popup.php:6
|
442 |
+
msgid "Search"
|
443 |
+
msgstr "Buscar"
|
444 |
+
|
445 |
+
#: views/SlideshowPluginSlideInserter/search-popup.php:7
|
446 |
+
msgid "Search images by title or ID"
|
447 |
+
msgstr "Buscar imágenes por título o ID"
|
448 |
+
|
449 |
+
#: views/SlideshowPluginUpload/upload-button.php:1
|
450 |
+
msgid "Upload/Manage Images"
|
451 |
+
msgstr "Cargar/Administrar Imágenes"
|
452 |
+
|
453 |
+
#: views/SlideshowPluginWidget/form.php:9
|
454 |
+
msgid "Random Slideshow"
|
455 |
+
msgstr "Diapositivas Aleatorias"
|
456 |
+
|
457 |
+
#~ msgid "light"
|
458 |
+
#~ msgstr "clair"
|
459 |
+
|
460 |
+
#~ msgid "slide"
|
461 |
+
#~ msgstr "diapo"
|
462 |
+
|
463 |
+
#~ msgid "Custom style editor (Does not work with a Strict Doctype)"
|
464 |
+
#~ msgstr "Aangepaste stijl bewerker (Werkt niet met een Strict Doctype)"
|
465 |
+
|
466 |
+
#~ msgid "Has the Slideshow plugin helped you?"
|
467 |
+
#~ msgstr "Heeft de Slideshow plugin je geholpen?"
|
468 |
+
|
469 |
+
#~ msgid "Help it back!"
|
470 |
+
#~ msgstr "Help hem terug!"
|
471 |
+
|
472 |
+
#~ msgid ""
|
473 |
+
#~ "If this plugin has filled you with happiness, please support the upkeep "
|
474 |
+
#~ "of the plugin by rating it on Wordpress, posting a suggestion for "
|
475 |
+
#~ "improvement on the support forum, or making a donation."
|
476 |
+
#~ msgstr ""
|
477 |
+
#~ "Als deze plugin je met blijdschap heeft vervuld, zou ik het enorm "
|
478 |
+
#~ "waarderen als je de plugin wilt beoordelen op Wordpress, een suggestie "
|
479 |
+
#~ "wilt maken voor verbetering, of een donatie doen wilt."
|
480 |
+
|
481 |
+
#~ msgid "Click on an image to insert it as a slide"
|
482 |
+
#~ msgstr "Klik op een plaatje om deze in te voegen als slide"
|
483 |
+
|
484 |
+
#~ msgid "Width of the slideshow"
|
485 |
+
#~ msgstr "Breedte van de slideshow"
|
486 |
+
|
487 |
+
#~ msgid "Defaults to parent's width."
|
488 |
+
#~ msgstr "Standaard ingesteld op de breedte van het bovenliggende element."
|
489 |
+
|
490 |
+
#~ msgid "Send user to image URL on click"
|
491 |
+
#~ msgstr ""
|
492 |
+
#~ "Wanner de gebruiker op de afbeelding klikt, stuur hem naar de URL van het "
|
493 |
+
#~ "plaatje"
|
494 |
+
|
495 |
+
#~ msgid "Style"
|
496 |
+
#~ msgstr "Style"
|
497 |
+
|
498 |
+
#~ msgid "Custom style"
|
499 |
+
#~ msgstr "Aangepaste stijl"
|
500 |
+
|
501 |
+
#~ msgid "Leave any field open to use default value."
|
502 |
+
#~ msgstr "Een veld dat open wordt gelaten neemt de standaardwaarde aan."
|
languages/slideshow-plugin-nl_NL.mo
CHANGED
Binary file
|
languages/slideshow-plugin-nl_NL.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: nl_NL\n"
|
@@ -15,174 +15,187 @@ msgstr ""
|
|
15 |
"X-Generator: Poedit 1.5.4\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
-
#: classes/SlideshowPluginGeneralSettings.php:
|
19 |
-
#: classes/SlideshowPluginGeneralSettings.php:
|
20 |
msgid "General Settings"
|
21 |
msgstr "Algemene Instellingen"
|
22 |
|
23 |
-
#: classes/
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
msgid "Yes"
|
27 |
msgstr "Ja"
|
28 |
|
29 |
-
#: classes/SlideshowPluginInstaller.php:
|
30 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
31 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:372
|
32 |
msgid "No"
|
33 |
msgstr "Nee"
|
34 |
|
35 |
-
#: classes/SlideshowPluginInstaller.php:
|
36 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
37 |
msgid "The style used for this slideshow"
|
38 |
msgstr "De stijl te gebruiken voor deze slideshow"
|
39 |
|
40 |
-
#: classes/SlideshowPluginInstaller.php:
|
41 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:383
|
42 |
-
msgid "Light"
|
43 |
-
msgstr "Licht"
|
44 |
-
|
45 |
-
#: classes/SlideshowPluginInstaller.php:243
|
46 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:383
|
47 |
-
msgid "Dark"
|
48 |
-
msgstr "Donker"
|
49 |
-
|
50 |
-
#: classes/SlideshowPluginInstaller.php:243
|
51 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:383
|
52 |
msgid "Custom"
|
53 |
msgstr "Aangepast"
|
54 |
|
55 |
-
#: classes/SlideshowPluginInstaller.php:
|
56 |
-
#:
|
57 |
msgid "Custom style editor"
|
58 |
msgstr "Aangepaste stijl bewerker"
|
59 |
|
60 |
-
#: classes/SlideshowPluginInstaller.php:
|
61 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
62 |
msgid "Animation used for transition between slides"
|
63 |
msgstr "Animatie tussen het wisselen van de slides"
|
64 |
|
65 |
-
#: classes/SlideshowPluginInstaller.php:
|
66 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
67 |
msgid "Slide"
|
68 |
msgstr "Slide"
|
69 |
|
70 |
-
#: classes/SlideshowPluginInstaller.php:
|
71 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
72 |
msgid "Fade"
|
73 |
msgstr "Fade"
|
74 |
|
75 |
-
#: classes/SlideshowPluginInstaller.php:
|
76 |
-
#: classes/SlideshowPluginInstaller.php:
|
77 |
-
#: classes/SlideshowPluginInstaller.php:
|
78 |
-
#: classes/SlideshowPluginInstaller.php:
|
79 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
80 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
81 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
82 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
83 |
msgid "Animation"
|
84 |
msgstr "Animatie"
|
85 |
|
86 |
-
#: classes/SlideshowPluginInstaller.php:
|
87 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
88 |
msgid "Number of seconds the slide takes to slide in"
|
89 |
msgstr ""
|
90 |
"Aantal seconden dat de animatie van het inschuiven van de volgende slide "
|
91 |
"duurt"
|
92 |
|
93 |
-
#: classes/SlideshowPluginInstaller.php:
|
94 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
95 |
msgid "Number of seconds the description takes to slide in"
|
96 |
msgstr "Aantal seconden dat het inschuiven van de beschrijving duurt"
|
97 |
|
98 |
-
#: classes/SlideshowPluginInstaller.php:
|
99 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
100 |
msgid "Seconds between changing slides"
|
101 |
msgstr "Seconden tussen het wisselen van de slides"
|
102 |
|
103 |
-
#: classes/SlideshowPluginInstaller.php:
|
104 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
105 |
msgid "Number of slides to fit into one slide"
|
106 |
msgstr "Aantal slides om in een slide te plaatsen"
|
107 |
|
108 |
-
#: classes/SlideshowPluginInstaller.php:
|
109 |
-
#: classes/SlideshowPluginInstaller.php:
|
110 |
-
#: classes/SlideshowPluginInstaller.php:
|
111 |
-
#: classes/SlideshowPluginInstaller.php:
|
112 |
-
#: classes/SlideshowPluginInstaller.php:
|
113 |
-
#: classes/SlideshowPluginInstaller.php:
|
114 |
-
#: classes/SlideshowPluginInstaller.php:
|
115 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
116 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
117 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
118 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
119 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
120 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
121 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
122 |
msgid "Display"
|
123 |
msgstr "Weergave"
|
124 |
|
125 |
-
#: classes/SlideshowPluginInstaller.php:
|
126 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
127 |
msgid "Width of the slideshow, set to parent's width on 0"
|
128 |
msgstr ""
|
129 |
"Breedte van de slideshow, past zich aan op bovenliggende element wanneer 0"
|
130 |
|
131 |
-
#: classes/SlideshowPluginInstaller.php:
|
132 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
133 |
msgid "Height of the slideshow"
|
134 |
msgstr "Hoogte van de slideshow"
|
135 |
|
136 |
-
#: classes/SlideshowPluginInstaller.php:
|
137 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
138 |
msgid "Height of the description boxes"
|
139 |
msgstr "Hoogte van de beschrijvingen"
|
140 |
|
141 |
-
#: classes/SlideshowPluginInstaller.php:
|
142 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
143 |
msgid "Fit image into slide (stretching it)"
|
144 |
msgstr "Pas afbeelding in de slideshow (oprekken)"
|
145 |
|
146 |
-
#: classes/SlideshowPluginInstaller.php:
|
147 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
148 |
msgid "Show title and description"
|
149 |
msgstr "Toon titel en beschrijving"
|
150 |
|
151 |
-
#: classes/SlideshowPluginInstaller.php:
|
152 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
153 |
msgid "Hide description box, it will pop up when a mouse hovers over the slide"
|
154 |
msgstr ""
|
155 |
"Verbeg beschrijving, toon de slide alleen wanneer de muisaanwijzer boven de "
|
156 |
"slide is"
|
157 |
|
158 |
-
#: classes/SlideshowPluginInstaller.php:
|
159 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
160 |
msgid "Automatically slide to the next slide"
|
161 |
msgstr "Automatisch naar de volgende slide gaan"
|
162 |
|
163 |
-
#: classes/SlideshowPluginInstaller.php:
|
164 |
-
#: classes/SlideshowPluginInstaller.php:
|
165 |
-
#: classes/SlideshowPluginInstaller.php:
|
166 |
-
#: classes/SlideshowPluginInstaller.php:
|
167 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
168 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
169 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
170 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
171 |
msgid "Control"
|
172 |
msgstr "Controle"
|
173 |
|
174 |
-
#: classes/SlideshowPluginInstaller.php:
|
175 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
176 |
msgid "Return to the beginning of the slideshow after last slide"
|
177 |
msgstr "Keer terug naar het begin van de slideshow na de laatste slide."
|
178 |
|
179 |
-
#: classes/SlideshowPluginInstaller.php:
|
180 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
181 |
msgid "Activate buttons (so the user can scroll through the slides)"
|
182 |
msgstr "Knoppen activeren (zodat de gebruiker door de slides kan scrollen)"
|
183 |
|
184 |
-
#: classes/SlideshowPluginInstaller.php:
|
185 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
186 |
msgid "Show control panel (play and pause button)"
|
187 |
msgstr "Toon controlepaneel (speel en pause knop)"
|
188 |
|
@@ -257,16 +270,16 @@ msgstr "Geen afbeeldingen gevonden, klik hier om afbeeldingen te uploaden."
|
|
257 |
msgid "Are you sure you want to delete this slide?"
|
258 |
msgstr "Weet je zeker dat je deze slide wilt verwijderen?"
|
259 |
|
260 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
261 |
msgid "Randomize slides"
|
262 |
msgstr "Toon slides in willekeurige volgorde"
|
263 |
|
264 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
265 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
266 |
msgid "Miscellaneous"
|
267 |
msgstr "Overige"
|
268 |
|
269 |
-
#: classes/SlideshowPluginSlideshowSettingsHandler.php:
|
270 |
#, php-format
|
271 |
msgid "Avoid content filter (disable if '%s' is shown)"
|
272 |
msgstr "Content filter omzeilen (uitschakelen als '%s' wordt getoond)"
|
@@ -281,26 +294,103 @@ msgstr ""
|
|
281 |
msgid "Slideshow Widget"
|
282 |
msgstr "Slideshow Widget"
|
283 |
|
284 |
-
#: views/SlideshowPluginGeneralSettings/general-settings.php:
|
285 |
msgid "Add slideshows"
|
286 |
msgstr "Slideshows toevoegen"
|
287 |
|
288 |
-
#: views/SlideshowPluginGeneralSettings/general-settings.php:
|
289 |
msgid "Edit slideshows"
|
290 |
msgstr "Slideshows bewerken"
|
291 |
|
292 |
-
#: views/SlideshowPluginGeneralSettings/general-settings.php:
|
293 |
msgid "Delete slideshows"
|
294 |
msgstr "Slideshows verwijderen"
|
295 |
|
296 |
-
#: views/SlideshowPluginGeneralSettings/general-settings.php:
|
297 |
msgid "User Capabilities"
|
298 |
msgstr "Gebruikersrechten"
|
299 |
|
300 |
-
#: views/SlideshowPluginGeneralSettings/general-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
msgid "Untitled role"
|
302 |
msgstr "Naamloze gebruikersfunctie"
|
303 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
#: views/SlideshowPluginPostType/information.php:1
|
305 |
msgid ""
|
306 |
"To use this slideshow in your website either add this piece of shortcode to "
|
@@ -337,54 +427,70 @@ msgstr "Standaard"
|
|
337 |
msgid "Add slides to this slideshow by using one of the buttons above."
|
338 |
msgstr "Voeg slides toe doormiddel van de bovenstaande knoppen."
|
339 |
|
340 |
-
#: views/SlideshowPluginPostType/slides.php:
|
341 |
-
#: views/SlideshowPluginPostType/slides.php:
|
342 |
-
#: views/
|
343 |
-
msgid "
|
344 |
-
msgstr "
|
345 |
|
346 |
-
#: views/SlideshowPluginPostType/slides.php:
|
347 |
-
#: views/SlideshowPluginPostType/slides.php:
|
|
|
|
|
348 |
msgid "Description"
|
349 |
msgstr "Beschrijving"
|
350 |
|
351 |
-
#: views/SlideshowPluginPostType/slides.php:
|
352 |
-
#: views/SlideshowPluginPostType/slides.php:
|
353 |
msgid "Background color"
|
354 |
msgstr "Achtergrond kleur"
|
355 |
|
356 |
-
#: views/SlideshowPluginPostType/slides.php:
|
357 |
-
#: views/SlideshowPluginPostType/slides.php:
|
358 |
-
#: views/SlideshowPluginPostType/slides.php:
|
359 |
-
#: views/SlideshowPluginPostType/slides.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
360 |
msgid "Same window"
|
361 |
msgstr "Zelfde scherm"
|
362 |
|
363 |
-
#: views/SlideshowPluginPostType/slides.php:
|
364 |
-
#: views/SlideshowPluginPostType/slides.php:
|
365 |
-
#: views/SlideshowPluginPostType/slides.php:
|
366 |
-
#: views/SlideshowPluginPostType/slides.php:
|
367 |
msgid "New window"
|
368 |
msgstr "Nieuw scherm"
|
369 |
|
370 |
-
#: views/SlideshowPluginPostType/slides.php:
|
371 |
-
#: views/SlideshowPluginPostType/slides.php:
|
372 |
-
#: views/
|
373 |
-
|
374 |
-
|
375 |
-
msgstr "URL"
|
376 |
|
377 |
-
#: views/SlideshowPluginPostType/slides.php:
|
378 |
-
#: views/SlideshowPluginPostType/slides.php:
|
379 |
msgid "Youtube Video ID"
|
380 |
msgstr "Youtube Video ID"
|
381 |
|
382 |
-
#: views/SlideshowPluginPostType/slides.php:
|
383 |
-
#: views/SlideshowPluginPostType/slides.php:
|
384 |
-
|
385 |
-
|
|
|
386 |
|
387 |
-
#: views/SlideshowPluginPostType/slides.php:
|
388 |
msgid ""
|
389 |
"An error occurred while loading this slide, and it will not be present in "
|
390 |
"the slideshow"
|
@@ -392,13 +498,18 @@ msgstr ""
|
|
392 |
"Een fout is ontstaan tijdens het laden van deze slide, de slide zal niet te "
|
393 |
"bekijken zijn in je slideshow"
|
394 |
|
395 |
-
#: views/SlideshowPluginPostType/slides.php:
|
396 |
-
#: views/SlideshowPluginPostType/slides.php:177
|
397 |
-
#: views/SlideshowPluginPostType/slides.php:192
|
398 |
#: views/SlideshowPluginPostType/slides.php:226
|
|
|
|
|
399 |
msgid "Delete slide"
|
400 |
msgstr "Verwijder slide"
|
401 |
|
|
|
|
|
|
|
|
|
|
|
402 |
#: views/SlideshowPluginPostType/support-plugin.php:3
|
403 |
msgid "Help to keep this plugin free!"
|
404 |
msgstr "Help mee om deze plugin gratis te houden!"
|
@@ -426,29 +537,29 @@ msgstr "Vragen / Opmerkingen"
|
|
426 |
|
427 |
#: views/SlideshowPluginShortcode/shortcode-inserter.php:4
|
428 |
#: views/SlideshowPluginShortcode/shortcode-inserter.php:9
|
429 |
-
#: views/SlideshowPluginShortcode/shortcode-inserter.php:
|
430 |
msgid "Insert a Slideshow"
|
431 |
msgstr "Slideshow invoegen"
|
432 |
|
433 |
-
#: views/SlideshowPluginShortcode/shortcode-inserter.php:
|
434 |
-
#: views/SlideshowPluginShortcode/shortcode-inserter.php:
|
435 |
msgid "Insert Slideshow"
|
436 |
msgstr "Slideshow invoegen"
|
437 |
|
438 |
-
#: views/SlideshowPluginShortcode/shortcode-inserter.php:
|
439 |
msgid "Select a slideshow"
|
440 |
msgstr "Selecteer een slideshow"
|
441 |
|
442 |
-
#: views/SlideshowPluginShortcode/shortcode-inserter.php:
|
443 |
#: views/SlideshowPluginWidget/form.php:12
|
444 |
msgid "Untitled slideshow"
|
445 |
msgstr "Naamloze slideshow"
|
446 |
|
447 |
-
#: views/SlideshowPluginShortcode/shortcode-inserter.php:
|
448 |
msgid "Cancel"
|
449 |
msgstr "Annuleren"
|
450 |
|
451 |
-
#: views/SlideshowPluginShortcode/shortcode-inserter.php:
|
452 |
#, php-format
|
453 |
msgid ""
|
454 |
"It seems you haven't created any slideshows yet. %sYou can create a "
|
@@ -457,18 +568,6 @@ msgstr ""
|
|
457 |
"Het ziet er naar uit dat je nog geen slideshows hebt gemaakt. %sHier kan je "
|
458 |
"een slideshow maken!%s"
|
459 |
|
460 |
-
#: views/SlideshowPluginSlideInserter/insert-image-button.php:1
|
461 |
-
msgid "Image slide"
|
462 |
-
msgstr "Afbeeldingsslide"
|
463 |
-
|
464 |
-
#: views/SlideshowPluginSlideInserter/insert-text-button.php:1
|
465 |
-
msgid "Text slide"
|
466 |
-
msgstr "Tekst slide"
|
467 |
-
|
468 |
-
#: views/SlideshowPluginSlideInserter/insert-video-button.php:1
|
469 |
-
msgid "Video slide"
|
470 |
-
msgstr "Video slide"
|
471 |
-
|
472 |
#: views/SlideshowPluginSlideInserter/search-popup.php:6
|
473 |
msgid "Search"
|
474 |
msgstr "Zoek"
|
@@ -485,6 +584,10 @@ msgstr "Upload/Beheer Afbeeldingen"
|
|
485 |
msgid "Random Slideshow"
|
486 |
msgstr "Willekeurige Slideshow"
|
487 |
|
|
|
|
|
|
|
|
|
488 |
#~ msgid "light"
|
489 |
#~ msgstr "licht"
|
490 |
|
@@ -523,11 +626,5 @@ msgstr "Willekeurige Slideshow"
|
|
523 |
#~ "Wanner de gebruiker op de afbeelding klikt, stuur hem naar de URL van het "
|
524 |
#~ "plaatje"
|
525 |
|
526 |
-
#~ msgid "Style"
|
527 |
-
#~ msgstr "Style"
|
528 |
-
|
529 |
-
#~ msgid "Custom style"
|
530 |
-
#~ msgstr "Aangepaste stijl"
|
531 |
-
|
532 |
#~ msgid "Leave any field open to use default value."
|
533 |
#~ msgstr "Een veld dat open wordt gelaten neemt de standaardwaarde aan."
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Slideshow Plugin\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-01-01 18:47+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-01-01 18:47+0100\n"
|
7 |
"Last-Translator: Stefan Boonstra <stefanboonstra@hotmail.com>\n"
|
8 |
"Language-Team: Stefan Boonstra <wordpress@stefanboonstra.com>\n"
|
9 |
"Language: nl_NL\n"
|
15 |
"X-Generator: Poedit 1.5.4\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
|
18 |
+
#: classes/SlideshowPluginGeneralSettings.php:64
|
19 |
+
#: classes/SlideshowPluginGeneralSettings.php:65
|
20 |
msgid "General Settings"
|
21 |
msgstr "Algemene Instellingen"
|
22 |
|
23 |
+
#: classes/SlideshowPluginGeneralSettings.php:137
|
24 |
+
msgid "New"
|
25 |
+
msgstr "Nieuw"
|
26 |
+
|
27 |
+
#: classes/SlideshowPluginGeneralSettings.php:138
|
28 |
+
msgid "Are you sure you want to delete this custom style?"
|
29 |
+
msgstr "Weet je zeker dat je deze aangepaste stijl wilt verwijderen?"
|
30 |
+
|
31 |
+
#: classes/SlideshowPluginGeneralSettings.php:157
|
32 |
+
#: classes/SlideshowPluginInstaller.php:329
|
33 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:26
|
34 |
+
msgid "Light"
|
35 |
+
msgstr "Licht"
|
36 |
+
|
37 |
+
#: classes/SlideshowPluginGeneralSettings.php:158
|
38 |
+
#: classes/SlideshowPluginInstaller.php:329
|
39 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:27
|
40 |
+
msgid "Dark"
|
41 |
+
msgstr "Donker"
|
42 |
+
|
43 |
+
#: classes/SlideshowPluginGeneralSettings.php:262
|
44 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:181
|
45 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:263
|
46 |
+
msgid "Untitled"
|
47 |
+
msgstr "Naamloos"
|
48 |
+
|
49 |
+
#: classes/SlideshowPluginInstaller.php:326
|
50 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:322
|
51 |
msgid "Yes"
|
52 |
msgstr "Ja"
|
53 |
|
54 |
+
#: classes/SlideshowPluginInstaller.php:327
|
55 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:323
|
|
|
56 |
msgid "No"
|
57 |
msgstr "Nee"
|
58 |
|
59 |
+
#: classes/SlideshowPluginInstaller.php:329
|
60 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:407
|
61 |
msgid "The style used for this slideshow"
|
62 |
msgstr "De stijl te gebruiken voor deze slideshow"
|
63 |
|
64 |
+
#: classes/SlideshowPluginInstaller.php:329
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
msgid "Custom"
|
66 |
msgstr "Aangepast"
|
67 |
|
68 |
+
#: classes/SlideshowPluginInstaller.php:330
|
69 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:246
|
70 |
msgid "Custom style editor"
|
71 |
msgstr "Aangepaste stijl bewerker"
|
72 |
|
73 |
+
#: classes/SlideshowPluginInstaller.php:331
|
74 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:356
|
75 |
msgid "Animation used for transition between slides"
|
76 |
msgstr "Animatie tussen het wisselen van de slides"
|
77 |
|
78 |
+
#: classes/SlideshowPluginInstaller.php:331
|
79 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:356
|
80 |
msgid "Slide"
|
81 |
msgstr "Slide"
|
82 |
|
83 |
+
#: classes/SlideshowPluginInstaller.php:331
|
84 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:356
|
85 |
msgid "Fade"
|
86 |
msgstr "Fade"
|
87 |
|
88 |
+
#: classes/SlideshowPluginInstaller.php:331
|
89 |
+
#: classes/SlideshowPluginInstaller.php:332
|
90 |
+
#: classes/SlideshowPluginInstaller.php:333
|
91 |
+
#: classes/SlideshowPluginInstaller.php:334
|
92 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:356
|
93 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:357
|
94 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:358
|
95 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:359
|
96 |
msgid "Animation"
|
97 |
msgstr "Animatie"
|
98 |
|
99 |
+
#: classes/SlideshowPluginInstaller.php:332
|
100 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:357
|
101 |
msgid "Number of seconds the slide takes to slide in"
|
102 |
msgstr ""
|
103 |
"Aantal seconden dat de animatie van het inschuiven van de volgende slide "
|
104 |
"duurt"
|
105 |
|
106 |
+
#: classes/SlideshowPluginInstaller.php:333
|
107 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:358
|
108 |
msgid "Number of seconds the description takes to slide in"
|
109 |
msgstr "Aantal seconden dat het inschuiven van de beschrijving duurt"
|
110 |
|
111 |
+
#: classes/SlideshowPluginInstaller.php:334
|
112 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:359
|
113 |
msgid "Seconds between changing slides"
|
114 |
msgstr "Seconden tussen het wisselen van de slides"
|
115 |
|
116 |
+
#: classes/SlideshowPluginInstaller.php:335
|
117 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:360
|
118 |
msgid "Number of slides to fit into one slide"
|
119 |
msgstr "Aantal slides om in een slide te plaatsen"
|
120 |
|
121 |
+
#: classes/SlideshowPluginInstaller.php:335
|
122 |
+
#: classes/SlideshowPluginInstaller.php:336
|
123 |
+
#: classes/SlideshowPluginInstaller.php:337
|
124 |
+
#: classes/SlideshowPluginInstaller.php:338
|
125 |
+
#: classes/SlideshowPluginInstaller.php:339
|
126 |
+
#: classes/SlideshowPluginInstaller.php:340
|
127 |
+
#: classes/SlideshowPluginInstaller.php:341
|
128 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:360
|
129 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:361
|
130 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:362
|
131 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:363
|
132 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:364
|
133 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:365
|
134 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:366
|
135 |
msgid "Display"
|
136 |
msgstr "Weergave"
|
137 |
|
138 |
+
#: classes/SlideshowPluginInstaller.php:336
|
139 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:361
|
140 |
msgid "Width of the slideshow, set to parent's width on 0"
|
141 |
msgstr ""
|
142 |
"Breedte van de slideshow, past zich aan op bovenliggende element wanneer 0"
|
143 |
|
144 |
+
#: classes/SlideshowPluginInstaller.php:337
|
145 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:362
|
146 |
msgid "Height of the slideshow"
|
147 |
msgstr "Hoogte van de slideshow"
|
148 |
|
149 |
+
#: classes/SlideshowPluginInstaller.php:338
|
150 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:363
|
151 |
msgid "Height of the description boxes"
|
152 |
msgstr "Hoogte van de beschrijvingen"
|
153 |
|
154 |
+
#: classes/SlideshowPluginInstaller.php:339
|
155 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:364
|
156 |
msgid "Fit image into slide (stretching it)"
|
157 |
msgstr "Pas afbeelding in de slideshow (oprekken)"
|
158 |
|
159 |
+
#: classes/SlideshowPluginInstaller.php:340
|
160 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:365
|
161 |
msgid "Show title and description"
|
162 |
msgstr "Toon titel en beschrijving"
|
163 |
|
164 |
+
#: classes/SlideshowPluginInstaller.php:341
|
165 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:366
|
166 |
msgid "Hide description box, it will pop up when a mouse hovers over the slide"
|
167 |
msgstr ""
|
168 |
"Verbeg beschrijving, toon de slide alleen wanneer de muisaanwijzer boven de "
|
169 |
"slide is"
|
170 |
|
171 |
+
#: classes/SlideshowPluginInstaller.php:342
|
172 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:367
|
173 |
msgid "Automatically slide to the next slide"
|
174 |
msgstr "Automatisch naar de volgende slide gaan"
|
175 |
|
176 |
+
#: classes/SlideshowPluginInstaller.php:342
|
177 |
+
#: classes/SlideshowPluginInstaller.php:343
|
178 |
+
#: classes/SlideshowPluginInstaller.php:344
|
179 |
+
#: classes/SlideshowPluginInstaller.php:345
|
180 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:367
|
181 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:368
|
182 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:369
|
183 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:370
|
184 |
msgid "Control"
|
185 |
msgstr "Controle"
|
186 |
|
187 |
+
#: classes/SlideshowPluginInstaller.php:343
|
188 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:368
|
189 |
msgid "Return to the beginning of the slideshow after last slide"
|
190 |
msgstr "Keer terug naar het begin van de slideshow na de laatste slide."
|
191 |
|
192 |
+
#: classes/SlideshowPluginInstaller.php:344
|
193 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:369
|
194 |
msgid "Activate buttons (so the user can scroll through the slides)"
|
195 |
msgstr "Knoppen activeren (zodat de gebruiker door de slides kan scrollen)"
|
196 |
|
197 |
+
#: classes/SlideshowPluginInstaller.php:345
|
198 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:370
|
199 |
msgid "Show control panel (play and pause button)"
|
200 |
msgstr "Toon controlepaneel (speel en pause knop)"
|
201 |
|
270 |
msgid "Are you sure you want to delete this slide?"
|
271 |
msgstr "Weet je zeker dat je deze slide wilt verwijderen?"
|
272 |
|
273 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:371
|
274 |
msgid "Randomize slides"
|
275 |
msgstr "Toon slides in willekeurige volgorde"
|
276 |
|
277 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:371
|
278 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:372
|
279 |
msgid "Miscellaneous"
|
280 |
msgstr "Overige"
|
281 |
|
282 |
+
#: classes/SlideshowPluginSlideshowSettingsHandler.php:372
|
283 |
#, php-format
|
284 |
msgid "Avoid content filter (disable if '%s' is shown)"
|
285 |
msgstr "Content filter omzeilen (uitschakelen als '%s' wordt getoond)"
|
294 |
msgid "Slideshow Widget"
|
295 |
msgstr "Slideshow Widget"
|
296 |
|
297 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:10
|
298 |
msgid "Add slideshows"
|
299 |
msgstr "Slideshows toevoegen"
|
300 |
|
301 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:11
|
302 |
msgid "Edit slideshows"
|
303 |
msgstr "Slideshows bewerken"
|
304 |
|
305 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:12
|
306 |
msgid "Delete slideshows"
|
307 |
msgstr "Slideshows verwijderen"
|
308 |
|
309 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:61
|
310 |
msgid "User Capabilities"
|
311 |
msgstr "Gebruikersrechten"
|
312 |
|
313 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:62
|
314 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:118
|
315 |
+
msgid "Default Slideshow Settings"
|
316 |
+
msgstr "Standaard Slideshow Instellingen"
|
317 |
+
|
318 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:63
|
319 |
+
msgid "Custom Styles"
|
320 |
+
msgstr "Aangepaste Stijlen"
|
321 |
+
|
322 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:72
|
323 |
+
msgid "Select the user roles that will able to perform certain actions."
|
324 |
+
msgstr "Kies de gebruikersrol waaraan je bepaalde rechten wilt verlenen."
|
325 |
+
|
326 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:89
|
327 |
msgid "Untitled role"
|
328 |
msgstr "Naamloze gebruikersfunctie"
|
329 |
|
330 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:142
|
331 |
+
msgid "Default Slideshow Stylesheet"
|
332 |
+
msgstr "Standaard Slideshow Stijl"
|
333 |
+
|
334 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:170
|
335 |
+
msgid "Default stylesheets"
|
336 |
+
msgstr "Standaard stijlen"
|
337 |
+
|
338 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:184
|
339 |
+
msgid "Create a new custom style from this style"
|
340 |
+
msgstr "Maak een nieuwe aangepaste stijl uit deze stijl"
|
341 |
+
|
342 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:186
|
343 |
+
msgid "Customize"
|
344 |
+
msgstr "Aanpassen"
|
345 |
+
|
346 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:200
|
347 |
+
msgid "Custom stylesheets"
|
348 |
+
msgstr "Aangepaste stijl"
|
349 |
+
|
350 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:213
|
351 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:292
|
352 |
+
msgid "Edit this style"
|
353 |
+
msgstr "Bewerk deze stijl"
|
354 |
+
|
355 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:215
|
356 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:294
|
357 |
+
#: views/SlideshowPluginPostType/slides.php:146
|
358 |
+
msgid "Edit"
|
359 |
+
msgstr "Bewerken"
|
360 |
+
|
361 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:222
|
362 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:301
|
363 |
+
msgid "Delete this style"
|
364 |
+
msgstr "Verwijder stijl"
|
365 |
+
|
366 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:224
|
367 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:303
|
368 |
+
msgid "Delete"
|
369 |
+
msgstr "Verwijderen"
|
370 |
+
|
371 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:234
|
372 |
+
msgid "Click 'Customize' to create a new custom stylesheet."
|
373 |
+
msgstr "Klik op 'Aanpassen' om een nieuwe aangepaste stijl te maken."
|
374 |
+
|
375 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:250
|
376 |
+
msgid "Select a stylesheet from the left to start customizing it."
|
377 |
+
msgstr "Kies een stijl uit de linker kolom om deze aan te passen."
|
378 |
+
|
379 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:259
|
380 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:312
|
381 |
+
#: views/SlideshowPluginPostType/slides.php:62
|
382 |
+
#: views/SlideshowPluginPostType/slides.php:152
|
383 |
+
#: views/SlideshowPluginPostType/slides.php:204
|
384 |
+
#: views/SlideshowPluginPostType/slides.php:272
|
385 |
+
#: views/SlideshowPluginWidget/form.php:2
|
386 |
+
msgid "Title"
|
387 |
+
msgstr "Titel"
|
388 |
+
|
389 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:268
|
390 |
+
#: views/SlideshowPluginGeneralSettings/general-settings.php:320
|
391 |
+
msgid "Style"
|
392 |
+
msgstr "Stijl"
|
393 |
+
|
394 |
#: views/SlideshowPluginPostType/information.php:1
|
395 |
msgid ""
|
396 |
"To use this slideshow in your website either add this piece of shortcode to "
|
427 |
msgid "Add slides to this slideshow by using one of the buttons above."
|
428 |
msgstr "Voeg slides toe doormiddel van de bovenstaande knoppen."
|
429 |
|
430 |
+
#: views/SlideshowPluginPostType/slides.php:57
|
431 |
+
#: views/SlideshowPluginPostType/slides.php:199
|
432 |
+
#: views/SlideshowPluginSlideInserter/insert-text-button.php:1
|
433 |
+
msgid "Text slide"
|
434 |
+
msgstr "Tekst slide"
|
435 |
|
436 |
+
#: views/SlideshowPluginPostType/slides.php:64
|
437 |
+
#: views/SlideshowPluginPostType/slides.php:158
|
438 |
+
#: views/SlideshowPluginPostType/slides.php:206
|
439 |
+
#: views/SlideshowPluginPostType/slides.php:278
|
440 |
msgid "Description"
|
441 |
msgstr "Beschrijving"
|
442 |
|
443 |
+
#: views/SlideshowPluginPostType/slides.php:66
|
444 |
+
#: views/SlideshowPluginPostType/slides.php:208
|
445 |
msgid "Background color"
|
446 |
msgstr "Achtergrond kleur"
|
447 |
|
448 |
+
#: views/SlideshowPluginPostType/slides.php:71
|
449 |
+
#: views/SlideshowPluginPostType/slides.php:163
|
450 |
+
#: views/SlideshowPluginPostType/slides.php:213
|
451 |
+
#: views/SlideshowPluginPostType/slides.php:283
|
452 |
+
msgid "URL"
|
453 |
+
msgstr "URL"
|
454 |
+
|
455 |
+
#: views/SlideshowPluginPostType/slides.php:73
|
456 |
+
#: views/SlideshowPluginPostType/slides.php:165
|
457 |
+
#: views/SlideshowPluginPostType/slides.php:215
|
458 |
+
#: views/SlideshowPluginPostType/slides.php:285
|
459 |
+
msgid "Open URL in"
|
460 |
+
msgstr "Open URL in"
|
461 |
+
|
462 |
+
#: views/SlideshowPluginPostType/slides.php:75
|
463 |
+
#: views/SlideshowPluginPostType/slides.php:167
|
464 |
+
#: views/SlideshowPluginPostType/slides.php:217
|
465 |
+
#: views/SlideshowPluginPostType/slides.php:287
|
466 |
msgid "Same window"
|
467 |
msgstr "Zelfde scherm"
|
468 |
|
469 |
+
#: views/SlideshowPluginPostType/slides.php:76
|
470 |
+
#: views/SlideshowPluginPostType/slides.php:168
|
471 |
+
#: views/SlideshowPluginPostType/slides.php:218
|
472 |
+
#: views/SlideshowPluginPostType/slides.php:288
|
473 |
msgid "New window"
|
474 |
msgstr "Nieuw scherm"
|
475 |
|
476 |
+
#: views/SlideshowPluginPostType/slides.php:93
|
477 |
+
#: views/SlideshowPluginPostType/slides.php:238
|
478 |
+
#: views/SlideshowPluginSlideInserter/insert-video-button.php:1
|
479 |
+
msgid "Video slide"
|
480 |
+
msgstr "Video slide"
|
|
|
481 |
|
482 |
+
#: views/SlideshowPluginPostType/slides.php:98
|
483 |
+
#: views/SlideshowPluginPostType/slides.php:243
|
484 |
msgid "Youtube Video ID"
|
485 |
msgstr "Youtube Video ID"
|
486 |
|
487 |
+
#: views/SlideshowPluginPostType/slides.php:141
|
488 |
+
#: views/SlideshowPluginPostType/slides.php:263
|
489 |
+
#: views/SlideshowPluginSlideInserter/insert-image-button.php:1
|
490 |
+
msgid "Image slide"
|
491 |
+
msgstr "Afbeeldingsslide"
|
492 |
|
493 |
+
#: views/SlideshowPluginPostType/slides.php:179
|
494 |
msgid ""
|
495 |
"An error occurred while loading this slide, and it will not be present in "
|
496 |
"the slideshow"
|
498 |
"Een fout is ontstaan tijdens het laden van deze slide, de slide zal niet te "
|
499 |
"bekijken zijn in je slideshow"
|
500 |
|
501 |
+
#: views/SlideshowPluginPostType/slides.php:185
|
|
|
|
|
502 |
#: views/SlideshowPluginPostType/slides.php:226
|
503 |
+
#: views/SlideshowPluginPostType/slides.php:251
|
504 |
+
#: views/SlideshowPluginPostType/slides.php:297
|
505 |
msgid "Delete slide"
|
506 |
msgstr "Verwijder slide"
|
507 |
|
508 |
+
#: views/SlideshowPluginPostType/style-settings.php:22
|
509 |
+
#, php-format
|
510 |
+
msgid "Custom styles can be created and customized %shere%s."
|
511 |
+
msgstr "Aangepaste stijlen kunnen %shier%s worden aangemaakt en aangepast."
|
512 |
+
|
513 |
#: views/SlideshowPluginPostType/support-plugin.php:3
|
514 |
msgid "Help to keep this plugin free!"
|
515 |
msgstr "Help mee om deze plugin gratis te houden!"
|
537 |
|
538 |
#: views/SlideshowPluginShortcode/shortcode-inserter.php:4
|
539 |
#: views/SlideshowPluginShortcode/shortcode-inserter.php:9
|
540 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:18
|
541 |
msgid "Insert a Slideshow"
|
542 |
msgstr "Slideshow invoegen"
|
543 |
|
544 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:12
|
545 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:52
|
546 |
msgid "Insert Slideshow"
|
547 |
msgstr "Slideshow invoegen"
|
548 |
|
549 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:28
|
550 |
msgid "Select a slideshow"
|
551 |
msgstr "Selecteer een slideshow"
|
552 |
|
553 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:37
|
554 |
#: views/SlideshowPluginWidget/form.php:12
|
555 |
msgid "Untitled slideshow"
|
556 |
msgstr "Naamloze slideshow"
|
557 |
|
558 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:57
|
559 |
msgid "Cancel"
|
560 |
msgstr "Annuleren"
|
561 |
|
562 |
+
#: views/SlideshowPluginShortcode/shortcode-inserter.php:68
|
563 |
#, php-format
|
564 |
msgid ""
|
565 |
"It seems you haven't created any slideshows yet. %sYou can create a "
|
568 |
"Het ziet er naar uit dat je nog geen slideshows hebt gemaakt. %sHier kan je "
|
569 |
"een slideshow maken!%s"
|
570 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
571 |
#: views/SlideshowPluginSlideInserter/search-popup.php:6
|
572 |
msgid "Search"
|
573 |
msgstr "Zoek"
|
584 |
msgid "Random Slideshow"
|
585 |
msgstr "Willekeurige Slideshow"
|
586 |
|
587 |
+
#, fuzzy
|
588 |
+
#~ msgid "Editor"
|
589 |
+
#~ msgstr "Bewerken"
|
590 |
+
|
591 |
#~ msgid "light"
|
592 |
#~ msgstr "licht"
|
593 |
|
626 |
#~ "Wanner de gebruiker op de afbeelding klikt, stuur hem naar de URL van het "
|
627 |
#~ "plaatje"
|
628 |
|
|
|
|
|
|
|
|
|
|
|
|
|
629 |
#~ msgid "Leave any field open to use default value."
|
630 |
#~ msgstr "Een veld dat open wordt gelaten neemt de standaardwaarde aan."
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://stefanboonstra.com/donate-to-slideshow/
|
|
5 |
Tags: slideshow, slider, slide, slides, show, images, image, photo, gallery, galleries, jquery, javascript, video, text
|
6 |
Requires at least: 3.3
|
7 |
Tested up to: 3.5
|
8 |
-
Stable tag: 2.1.
|
9 |
License: GPLv2
|
10 |
|
11 |
Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
|
@@ -13,9 +13,11 @@ Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
|
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
Slideshow
|
17 |
|
18 |
-
|
|
|
|
|
19 |
uploaded can be inserted into your slideshow right away!
|
20 |
|
21 |
Fancy doing something crazy? You can create and use as many slideshows as you'd like, with
|
@@ -31,7 +33,7 @@ different images, settings and styles for each one of them.
|
|
31 |
- Run multiple slideshows on the same page
|
32 |
- Change animations and handling
|
33 |
- Customize to taste
|
34 |
-
-
|
35 |
|
36 |
= Languages =
|
37 |
|
@@ -39,10 +41,11 @@ different images, settings and styles for each one of them.
|
|
39 |
- Dutch
|
40 |
- English
|
41 |
- French (Translated by [Wptheme](http://wptheme.fr/))
|
|
|
42 |
- Russian (Translated by [Oleg Fritz](http://www.facebook.com/profile.php?id=100001331241069))
|
43 |
|
44 |
-
|
45 |
-
|
46 |
|
47 |
= Project board =
|
48 |
|
@@ -54,13 +57,15 @@ Check upcoming features, bug-fixes and development progress that are currently o
|
|
54 |
|
55 |
1. Install Slideshow either via the WordPress.org plugin directory, or by uploading the files to your server.
|
56 |
|
57 |
-
2. After activating Slideshow,
|
58 |
|
59 |
3. Click on 'Insert Image Slide' to insert an image slide, a popup will appear where you can search for the desired
|
60 |
-
image. Insert the image by clicking 'Insert'
|
61 |
|
62 |
-
4.
|
63 |
-
|
|
|
|
|
64 |
|
65 |
5. Feel like a sir.
|
66 |
|
@@ -69,12 +74,49 @@ or use the widget to show any of your slideshows in the sidebar of your website.
|
|
69 |
|
70 |
= How do I add image slides? =
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
-
=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
- The slideshow is mostly called after the `</head>` tag, which means the scripts and stylesheet need to load in the footer
|
80 |
of the website. A theme that has no `<?php wp_footer(); ?>` call in it's footer will not be able to load the slideshow's
|
@@ -84,30 +126,54 @@ scripts.
|
|
84 |
javascript to break. For the slideshow to work again, this error needs to be fixed. Check if any errors were thrown by
|
85 |
opening Google Chrome or Firefox (with Firebug installed) and press the 'F12' key. Errors show in the console tab.
|
86 |
|
87 |
-
=
|
88 |
|
89 |
Since the slideshow is most often called after the </head> tag, the slideshow can't print it's styles in the head of
|
90 |
-
the website and has to output
|
91 |
-
slideshow may not be styled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
|
94 |
== Screenshots ==
|
95 |
|
96 |
1. Here's what a default slideshow can look like. Sit back, grab a beer, enjoy.
|
97 |
|
98 |
-
2. Create a new slideshow.
|
99 |
|
100 |
-
3. If you haven't uploaded any images yet, you can do so on the
|
101 |
|
102 |
-
4. Click the '
|
|
|
103 |
|
104 |
5. The images you selected are directly visible in your Slides List, don't forget to save!
|
105 |
|
106 |
-
6.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
|
109 |
== Changelog ==
|
110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
= 2.1.22 =
|
112 |
* Added French translation.
|
113 |
* Added a "General Settings" page, containing user capability settings.
|
5 |
Tags: slideshow, slider, slide, slides, show, images, image, photo, gallery, galleries, jquery, javascript, video, text
|
6 |
Requires at least: 3.3
|
7 |
Tested up to: 3.5
|
8 |
+
Stable tag: 2.1.23
|
9 |
License: GPLv2
|
10 |
|
11 |
Integrate a fancy slideshow in just five steps. - Rainbows. Rainbows everywhere.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
Slideshow version 2.2.0 Beta is now available for testing. [Click here to try it out!](http://stefanboonstra.com/)
|
17 |
|
18 |
+
Slideshow provides an easy way to integrate a slideshow for any WordPress installation.
|
19 |
+
|
20 |
+
Any image can be loaded into the slideshow by picking it from the WordPress media page, even images you've already
|
21 |
uploaded can be inserted into your slideshow right away!
|
22 |
|
23 |
Fancy doing something crazy? You can create and use as many slideshows as you'd like, with
|
33 |
- Run multiple slideshows on the same page
|
34 |
- Change animations and handling
|
35 |
- Customize to taste
|
36 |
+
- Show that visitor who's boss
|
37 |
|
38 |
= Languages =
|
39 |
|
41 |
- Dutch
|
42 |
- English
|
43 |
- French (Translated by [Wptheme](http://wptheme.fr/))
|
44 |
+
- Spanish (Translated by [Violeta Rosales](https://twitter.com/violetisha))
|
45 |
- Russian (Translated by [Oleg Fritz](http://www.facebook.com/profile.php?id=100001331241069))
|
46 |
|
47 |
+
Feel free to send me your own translation of the plugin to my e-mail address: wordpress@stefanboonstra.com. Many
|
48 |
+
thanks in advance!
|
49 |
|
50 |
= Project board =
|
51 |
|
57 |
|
58 |
1. Install Slideshow either via the WordPress.org plugin directory, or by uploading the files to your server.
|
59 |
|
60 |
+
2. After activating Slideshow, click on 'Slideshows' and create a new slideshow.
|
61 |
|
62 |
3. Click on 'Insert Image Slide' to insert an image slide, a popup will appear where you can search for the desired
|
63 |
+
image. Insert the image by clicking 'Insert'. The same goes for text and video slides, don't forget to save!
|
64 |
|
65 |
+
4. Go to a post or a page and click the 'Insert Slideshow' button above the editor. A popup appears where you can select
|
66 |
+
your newly created slideshow to insert. You can also use the shortcode or code snippet visible in your slideshow admin
|
67 |
+
panel to deploy your slideshow anywhere on your website. Use the widget to show any of your slideshows in the sidebar
|
68 |
+
of your website.
|
69 |
|
70 |
5. Feel like a sir.
|
71 |
|
74 |
|
75 |
= How do I add image slides? =
|
76 |
|
77 |
+
Click the 'Image slide' button in the 'Slides List' of the slideshow. A screen will pop up where you'll be able to
|
78 |
+
search though all images that have already been uploaded to your WordPress website. If you want to add new images to the
|
79 |
+
slideshow, or you do not have any images yet, you'll have to upload them to the WordPress media page first.
|
80 |
+
|
81 |
+
= How do I change a slideshow's settings? =
|
82 |
+
|
83 |
+
Just like the posts and pages you're already familiar with, slideshows can be edited. Go to the 'Slideshows' tab in your
|
84 |
+
WordPress admin, and you'll see a list of slideshows. If you have not created a slideshow yet, you can do so by clicking
|
85 |
+
'Add new' on that same page. If there are slideshows in the list, click on the title of the slideshow you want to change
|
86 |
+
the settings of. On the slideshow's edit page you'll be able to find a box titled 'Slideshow Settings', in this box you
|
87 |
+
can change the slideshow's settings.
|
88 |
+
|
89 |
+
If you're creating multiple slideshows that should have the same settings, but their settings need to be different from
|
90 |
+
the default settings, you can change the default settings by going to the 'General Settings' page and clicking on the
|
91 |
+
'Default Slideshow Settings' tab. Newly created slideshows will start off with the settings you set there.
|
92 |
+
|
93 |
+
= How do I customize the slideshow's style? =
|
94 |
+
|
95 |
+
On your WordPress admin page, go to the 'Slideshows' menu item and click on 'General Settings', then go to the
|
96 |
+
'Custom styles' tab. Here you'll see a list of default stylesheets, such as 'Light' and 'Dark', and a list of custom
|
97 |
+
stylesheets; The ones you created.
|
98 |
+
|
99 |
+
Choose a default stylesheet you'd like to customize and click 'Customize' to open the 'Custom style editor'. When
|
100 |
+
you're done editing click 'Save Changes' and go to the slideshow you'd like to style with the newly created stylesheet.
|
101 |
+
In the 'Slideshow Style' box you can now find and select your custom stylesheet. You can set a stylesheet for multiple
|
102 |
+
slideshows.
|
103 |
+
|
104 |
+
If you've already created a custom stylesheet, you can edit it by clicking 'Edit'. You can also delete it by clicking
|
105 |
+
'Delete'. Be careful with this though, a deleted stylesheet cannot be retrieved and cannot be used by any slideshow
|
106 |
+
anymore.
|
107 |
|
108 |
+
= Some users can add, edit or delete slideshows, although I do not want them to. Can I prevent this from happening? =
|
109 |
+
|
110 |
+
Yes you can. On your WordPress admin page, go to the 'Slideshows' menu item and click on 'General Settings', then go to
|
111 |
+
the 'User Capabilities' tab (If you're not already there). The privileges that allow user groups to perform certain
|
112 |
+
actions are listed here. To allow, for instance, a contributor to add a slideshow, click the box in front of 'Contributor'
|
113 |
+
to grant him the right to add slideshows.
|
114 |
+
|
115 |
+
Note that when you grant someone the right to add or delete a slideshow, you'll also automatically grant him or her the
|
116 |
+
right to edit slideshows, as this right is required to add or delete slideshows. The same is true for the reversed
|
117 |
+
situation.
|
118 |
+
|
119 |
+
= The slideshow does not show up =
|
120 |
|
121 |
- The slideshow is mostly called after the `</head>` tag, which means the scripts and stylesheet need to load in the footer
|
122 |
of the website. A theme that has no `<?php wp_footer(); ?>` call in it's footer will not be able to load the slideshow's
|
126 |
javascript to break. For the slideshow to work again, this error needs to be fixed. Check if any errors were thrown by
|
127 |
opening Google Chrome or Firefox (with Firebug installed) and press the 'F12' key. Errors show in the console tab.
|
128 |
|
129 |
+
= The slideshow looks like it's not styled =
|
130 |
|
131 |
Since the slideshow is most often called after the </head> tag, the slideshow can't print it's styles in the head of
|
132 |
+
the website and has to output them on the page. A strict doctype does not allow stylesheets to be in the body of the
|
133 |
+
website and thus the slideshow may not be styled.
|
134 |
+
|
135 |
+
= Why does Internet Explorer show a big blank space above the slideshow? =
|
136 |
+
|
137 |
+
Internet Explorer is a very strict browser, so when a big blank space above your slideshow is showing your page may
|
138 |
+
contain some invalid HTML. Most times invalid HTML is caused by placing the slideshow's shortcode or PHP snippet into
|
139 |
+
an anchor tag (`<a></a>`) or paragraph tag (`<p></p>`), while you can only place a slideshow within a 'div' element
|
140 |
+
(`<div></div>`).
|
141 |
|
142 |
|
143 |
== Screenshots ==
|
144 |
|
145 |
1. Here's what a default slideshow can look like. Sit back, grab a beer, enjoy.
|
146 |
|
147 |
+
2. Create a new slideshow. Slides and settings specific to this slideshow can be set here.
|
148 |
|
149 |
+
3. If you haven't uploaded any images yet, you can do so on the WordPress media page.
|
150 |
|
151 |
+
4. Click the 'Image Slide' button in the Slides List to search and pick images from the WordPress media page.
|
152 |
+
Click 'Insert' to insert the image as slide.
|
153 |
|
154 |
5. The images you selected are directly visible in your Slides List, don't forget to save!
|
155 |
|
156 |
+
6. When you understand the basics of creating slideshows, you may want to go a little more in depth and have a look at
|
157 |
+
the General Settings page. As seen in the image above, privileges can be granted to user roles to give users the ability
|
158 |
+
to add, edit or delete slideshows.
|
159 |
+
|
160 |
+
7. Default slideshow settings can be edited here. Slideshows that are newly created, will start out with these options.
|
161 |
+
|
162 |
+
8. Custom styles can be added and customized here. Custom styles can be used to style one or more slideshows to your own
|
163 |
+
personal taste.
|
164 |
|
165 |
|
166 |
== Changelog ==
|
167 |
|
168 |
+
= 2.1.23 =
|
169 |
+
* Default settings can now be changed from the 'General Settings' page.
|
170 |
+
* Custom styles are now shared across all slideshows and endless customizations can be created.
|
171 |
+
* Added input fields to set separate titles and descriptions for shared images.
|
172 |
+
* Cleaned up the slides list's layout, to reach a more WordPress-like look.
|
173 |
+
* Adapted the 'Dark' style to be more compatible with the WordPress TwentyTwelve theme.
|
174 |
+
* Changed 'Insert Slideshow' link to appear as a button.
|
175 |
+
* Empty settings won't be shown at the end of the settings boxes.
|
176 |
+
|
177 |
= 2.1.22 =
|
178 |
* Added French translation.
|
179 |
* Added a "General Settings" page, containing user capability settings.
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-5.png
CHANGED
Binary file
|
screenshot-6.png
CHANGED
Binary file
|
screenshot-7.png
ADDED
Binary file
|
screenshot-8.png
ADDED
Binary file
|
slideshow.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Slideshow
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/
|
5 |
Description: The slideshow plugin is easily deployable on your website. Add any image that has already been uploaded to add to your slideshow, add text slides, or even add a video. Options and styles are customizable for every single slideshow on your website.
|
6 |
-
Version: 2.1.
|
7 |
Requires at least: 3.3
|
8 |
Author: StefanBoonstra
|
9 |
Author URI: http://stefanboonstra.com/
|
@@ -22,7 +22,7 @@
|
|
22 |
class SlideshowPluginMain {
|
23 |
|
24 |
/** Variables */
|
25 |
-
static $version = '2.1.
|
26 |
|
27 |
/**
|
28 |
* Bootstraps the application by assigning the right functions to
|
3 |
Plugin Name: Slideshow
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/
|
5 |
Description: The slideshow plugin is easily deployable on your website. Add any image that has already been uploaded to add to your slideshow, add text slides, or even add a video. Options and styles are customizable for every single slideshow on your website.
|
6 |
+
Version: 2.1.23
|
7 |
Requires at least: 3.3
|
8 |
Author: StefanBoonstra
|
9 |
Author URI: http://stefanboonstra.com/
|
22 |
class SlideshowPluginMain {
|
23 |
|
24 |
/** Variables */
|
25 |
+
static $version = '2.1.23';
|
26 |
|
27 |
/**
|
28 |
* Bootstraps the application by assigning the right functions to
|
style/SlideshowPlugin/style-dark.css
CHANGED
@@ -60,17 +60,14 @@
|
|
60 |
background-position: -24px 0;
|
61 |
}
|
62 |
|
|
|
|
|
63 |
.slideshow_container a {
|
64 |
text-decoration: none;
|
65 |
color: #fff;
|
66 |
text-align: center;
|
67 |
}
|
68 |
|
69 |
-
.slideshow_container .description h2,
|
70 |
-
.slideshow_container .description p {
|
71 |
-
color: #fff;
|
72 |
-
}
|
73 |
-
|
74 |
.slideshow_container h2 {
|
75 |
margin: 5px;
|
76 |
font-size: 25px;
|
60 |
background-position: -24px 0;
|
61 |
}
|
62 |
|
63 |
+
.slideshow_container h2,
|
64 |
+
.slideshow_container p,
|
65 |
.slideshow_container a {
|
66 |
text-decoration: none;
|
67 |
color: #fff;
|
68 |
text-align: center;
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
71 |
.slideshow_container h2 {
|
72 |
margin: 5px;
|
73 |
font-size: 25px;
|
style/SlideshowPluginGeneralSettings/general-settings.css
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.feature-filter {
|
2 |
+
padding: 0 10px;
|
3 |
+
margin: 10px;
|
4 |
+
}
|
5 |
+
|
6 |
+
/* ==== ==== ==== User capabilities ==== ==== ==== */
|
7 |
+
|
8 |
+
.user-capabilities td {
|
9 |
+
line-height: 1.5em;
|
10 |
+
padding: 0 10px;
|
11 |
+
}
|
12 |
+
|
13 |
+
/* ==== ==== ==== Default slideshow settings ==== ==== ==== */
|
14 |
+
|
15 |
+
.default-slideshow-settings {
|
16 |
+
width: auto !important;
|
17 |
+
|
18 |
+
float: left;
|
19 |
+
}
|
20 |
+
|
21 |
+
.default-slideshow-settings table {
|
22 |
+
padding-bottom: 10px;
|
23 |
+
}
|
24 |
+
|
25 |
+
.default-slideshow-settings td {
|
26 |
+
padding: 0 10px !important;
|
27 |
+
}
|
28 |
+
|
29 |
+
/* ==== ==== ==== Custom styles ==== ==== ==== */
|
30 |
+
|
31 |
+
.custom-styles {
|
32 |
+
min-width: 500px;
|
33 |
+
}
|
34 |
+
|
35 |
+
.custom-styles .styles-list {
|
36 |
+
float: left;
|
37 |
+
|
38 |
+
min-width: 150px;
|
39 |
+
max-width: 250px;
|
40 |
+
|
41 |
+
padding-right: 10px;
|
42 |
+
|
43 |
+
border-right: 1px solid #dfdfdf;
|
44 |
+
}
|
45 |
+
|
46 |
+
.custom-styles .styles-list ul {
|
47 |
+
margin-left: 10px;
|
48 |
+
}
|
49 |
+
|
50 |
+
.custom-styles .styles-list li {
|
51 |
+
float: none;
|
52 |
+
}
|
53 |
+
|
54 |
+
.custom-styles .styles-list span {
|
55 |
+
padding: 0 2px;
|
56 |
+
}
|
57 |
+
|
58 |
+
.custom-styles .styles-list li .style-title {
|
59 |
+
float: left;
|
60 |
+
|
61 |
+
padding-right: 10px;
|
62 |
+
}
|
63 |
+
|
64 |
+
.custom-styles .styles-list li .style-action {
|
65 |
+
float: right;
|
66 |
+
|
67 |
+
color: #21759B;
|
68 |
+
}
|
69 |
+
|
70 |
+
.custom-styles .styles-list li .style-delete {
|
71 |
+
float: right;
|
72 |
+
|
73 |
+
color: #BC0B0B;
|
74 |
+
}
|
75 |
+
|
76 |
+
.custom-styles .styles-list li .style-action:hover {
|
77 |
+
cursor: pointer;
|
78 |
+
|
79 |
+
color: #D54E21;
|
80 |
+
}
|
81 |
+
|
82 |
+
.custom-styles .styles-list li .style-delete:hover {
|
83 |
+
cursor: pointer;
|
84 |
+
|
85 |
+
color: red;
|
86 |
+
}
|
87 |
+
|
88 |
+
.custom-styles .style-editors {
|
89 |
+
float: left;
|
90 |
+
|
91 |
+
min-width: 350px;
|
92 |
+
|
93 |
+
padding-left: 10px;
|
94 |
+
margin: 0 -21px 0 -1px;
|
95 |
+
|
96 |
+
border-left: 1px solid #dfdfdf;
|
97 |
+
}
|
98 |
+
|
99 |
+
.custom-styles .style-editors .style-editor textarea {
|
100 |
+
width: 100%;
|
101 |
+
}
|
views/SlideshowPlugin/slideshow.php
CHANGED
@@ -6,7 +6,11 @@
|
|
6 |
<?php foreach($slides as $slide): ?>
|
7 |
|
8 |
<?php
|
9 |
-
$url = $target = '';
|
|
|
|
|
|
|
|
|
10 |
if(isset($slide['url']))
|
11 |
$url = htmlspecialchars($slide['url']);
|
12 |
if(isset($slide['urlTarget']))
|
@@ -16,11 +20,7 @@
|
|
16 |
<?php if($slide['type'] == 'text'): ?>
|
17 |
|
18 |
<?php
|
19 |
-
$
|
20 |
-
if(isset($slide['title']))
|
21 |
-
$title = SlideshowPluginSecurity::htmlspecialchars_allow_exceptions($slide['title']);
|
22 |
-
if(isset($slide['description']))
|
23 |
-
$description = SlideshowPluginSecurity::htmlspecialchars_allow_exceptions($slide['description']);
|
24 |
if(isset($slide['color']))
|
25 |
$color = htmlspecialchars($slide['color']);
|
26 |
?>
|
@@ -64,16 +64,25 @@
|
|
64 |
<?php elseif($slide['type'] == 'attachment'): ?>
|
65 |
|
66 |
<?php
|
|
|
67 |
$postId = '';
|
68 |
if(isset($slide['postId']) && is_numeric($slide['postId']))
|
69 |
$postId = $slide['postId'];
|
70 |
else
|
71 |
continue;
|
72 |
|
|
|
73 |
$attachment = get_post($postId);
|
74 |
if(empty($attachment))
|
75 |
continue;
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
$image = wp_get_attachment_image_src($attachment->ID, 'full');
|
78 |
$imageSrc = '';
|
79 |
if(!is_array($image) || !$image){
|
@@ -89,12 +98,12 @@
|
|
89 |
<div class="slide slide_<?php echo $i; ?>" style="height: <?php echo (is_numeric($settings['height']))? $settings['height'] : 0; ?>px;">
|
90 |
<div class="description transparent">
|
91 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"'; ?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
92 |
-
<h2><?php echo
|
93 |
-
<p><?php echo
|
94 |
</a>
|
95 |
</div>
|
96 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"'; ?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
97 |
-
<img src="<?php echo htmlspecialchars($imageSrc); ?>" alt="<?php echo
|
98 |
</a>
|
99 |
</div>
|
100 |
|
6 |
<?php foreach($slides as $slide): ?>
|
7 |
|
8 |
<?php
|
9 |
+
$title = $description = $url = $target = '';
|
10 |
+
if(isset($slide['title']))
|
11 |
+
$title = SlideshowPluginSecurity::htmlspecialchars_allow_exceptions($slide['title']);
|
12 |
+
if(isset($slide['description']))
|
13 |
+
$description = SlideshowPluginSecurity::htmlspecialchars_allow_exceptions($slide['description']);
|
14 |
if(isset($slide['url']))
|
15 |
$url = htmlspecialchars($slide['url']);
|
16 |
if(isset($slide['urlTarget']))
|
20 |
<?php if($slide['type'] == 'text'): ?>
|
21 |
|
22 |
<?php
|
23 |
+
$color = '';
|
|
|
|
|
|
|
|
|
24 |
if(isset($slide['color']))
|
25 |
$color = htmlspecialchars($slide['color']);
|
26 |
?>
|
64 |
<?php elseif($slide['type'] == 'attachment'): ?>
|
65 |
|
66 |
<?php
|
67 |
+
// Get post id, continue if no post id was found
|
68 |
$postId = '';
|
69 |
if(isset($slide['postId']) && is_numeric($slide['postId']))
|
70 |
$postId = $slide['postId'];
|
71 |
else
|
72 |
continue;
|
73 |
|
74 |
+
// Get post from post id. Continue if post can't be loaded
|
75 |
$attachment = get_post($postId);
|
76 |
if(empty($attachment))
|
77 |
continue;
|
78 |
|
79 |
+
// Get post tile and description when empty
|
80 |
+
if(empty($title))
|
81 |
+
$title = SlideshowPluginSecurity::htmlspecialchars_allow_exceptions($attachment->post_title);
|
82 |
+
if(empty($description))
|
83 |
+
$description = SlideshowPluginSecurity::htmlspecialchars_allow_exceptions($attachment->post_content);
|
84 |
+
|
85 |
+
// Prepare image
|
86 |
$image = wp_get_attachment_image_src($attachment->ID, 'full');
|
87 |
$imageSrc = '';
|
88 |
if(!is_array($image) || !$image){
|
98 |
<div class="slide slide_<?php echo $i; ?>" style="height: <?php echo (is_numeric($settings['height']))? $settings['height'] : 0; ?>px;">
|
99 |
<div class="description transparent">
|
100 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"'; ?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
101 |
+
<h2><?php echo $title ?></h2>
|
102 |
+
<p><?php echo $description; ?></p>
|
103 |
</a>
|
104 |
</div>
|
105 |
<a <?php if(!empty($url)) echo 'href="' . $url . '"'; ?> <?php if(!empty($target)) echo 'target="' . $target . '"'; ?>>
|
106 |
+
<img src="<?php echo htmlspecialchars($imageSrc); ?>" alt="<?php echo $title; ?>" />
|
107 |
</a>
|
108 |
</div>
|
109 |
|
views/SlideshowPluginGeneralSettings/general-settings.php
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
<?php
|
2 |
|
|
|
|
|
3 |
// Roles
|
4 |
global $wp_roles;
|
5 |
|
@@ -10,24 +12,69 @@ $capabilities = array(
|
|
10 |
SlideshowPluginGeneralSettings::$capabilities['deleteSlideshows'] => __('Delete slideshows', 'slideshow-plugin')
|
11 |
);
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
?>
|
14 |
|
15 |
<div class="wrap">
|
16 |
|
17 |
-
<div class="icon32" style="background: url('<?php echo SlideshowPluginMain::getPluginUrl() . '/images/SlideshowPluginPostType/adminIcon32.png'; ?>');"></div>
|
18 |
-
<h2 class="nav-tab-wrapper">
|
19 |
-
<a href="#user-capabilities" class="nav-tab nav-tab-active"><?php _e('User Capabilities', 'slideshow-plugin'); ?></a>
|
20 |
-
<!-- <a href="#default-slideshow-settings" class="nav-tab">--><?php //_e('Default Slideshow Values', 'slideshow-plugin'); ?><!--</a>-->
|
21 |
-
<!-- <a href="#custom-styles" class="nav-tab">--><?php //_e('Custom Styles', 'slideshow-plugin'); ?><!--</a>-->
|
22 |
-
</h2>
|
23 |
-
|
24 |
<form method="post" action="options.php">
|
25 |
<?php settings_fields(SlideshowPluginGeneralSettings::$settingsGroup); ?>
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
<!-- ==== ==== User capabilities ==== ==== -->
|
28 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
-
|
31 |
|
32 |
<tr valign="top">
|
33 |
<th><?php echo $capabilityName; ?></th>
|
@@ -35,44 +82,256 @@ $capabilities = array(
|
|
35 |
<?php
|
36 |
|
37 |
if(isset($wp_roles->roles) && is_array($wp_roles->roles)):
|
38 |
-
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
|
56 |
-
|
57 |
<?php endif; ?>
|
58 |
|
59 |
</td>
|
60 |
</tr>
|
61 |
|
62 |
-
|
63 |
|
64 |
-
|
|
|
65 |
|
66 |
<!-- ==== ==== Defaults slideshow settings ==== ==== -->
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
-
|
|
|
|
|
|
|
70 |
|
71 |
<!-- ==== ==== Custom styles ==== ==== -->
|
72 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
</
|
75 |
|
76 |
-
|
|
|
|
|
77 |
</form>
|
78 |
</div>
|
1 |
<?php
|
2 |
|
3 |
+
/* ==== ==== ==== User capabilities ==== ==== ==== */
|
4 |
+
|
5 |
// Roles
|
6 |
global $wp_roles;
|
7 |
|
12 |
SlideshowPluginGeneralSettings::$capabilities['deleteSlideshows'] => __('Delete slideshows', 'slideshow-plugin')
|
13 |
);
|
14 |
|
15 |
+
/* ==== ==== ==== Default settings ==== ==== ==== */
|
16 |
+
|
17 |
+
// Default settings
|
18 |
+
$defaultSettings = SlideshowPluginSlideshowSettingsHandler::getDefaultSettings(true);
|
19 |
+
$defaultStyleSettings = SlideshowPluginSlideshowSettingsHandler::getDefaultStyleSettings(true);
|
20 |
+
|
21 |
+
/* ==== ==== ==== Custom styles ==== ==== ==== */
|
22 |
+
|
23 |
+
// Get default stylesheets
|
24 |
+
$defaultStyles = array();
|
25 |
+
$defaultStylesheets = array(
|
26 |
+
'style-light.css' => __('Light', 'slideshow-plugin'),
|
27 |
+
'style-dark.css' => __('Dark', 'slideshow-plugin')
|
28 |
+
);
|
29 |
+
$stylesheetsFilePath = SlideshowPluginMain::getPluginPath() . DIRECTORY_SEPARATOR . 'style' . DIRECTORY_SEPARATOR . 'SlideshowPlugin';
|
30 |
+
foreach($defaultStylesheets as $fileName => $name){
|
31 |
+
if(file_exists($stylesheetsFilePath . DIRECTORY_SEPARATOR . $fileName)){
|
32 |
+
ob_start();
|
33 |
+
include $stylesheetsFilePath . DIRECTORY_SEPARATOR . $fileName;
|
34 |
+
$defaultStyles[$fileName] = array(
|
35 |
+
'name' => $name,
|
36 |
+
'style' => ob_get_clean()
|
37 |
+
);
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
// Get custom styles
|
42 |
+
$customStyleValues = array();
|
43 |
+
$customStyleKeys = get_option(SlideshowPluginGeneralSettings::$customStyles, array());
|
44 |
+
if(is_array($customStyleKeys)){
|
45 |
+
foreach($customStyleKeys as $customStyleKey => $customStyleKeyName){
|
46 |
+
|
47 |
+
// Get custom style value from custom style key
|
48 |
+
$customStyleValues[$customStyleKey] = get_option($customStyleKey);
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
?>
|
53 |
|
54 |
<div class="wrap">
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
<form method="post" action="options.php">
|
57 |
<?php settings_fields(SlideshowPluginGeneralSettings::$settingsGroup); ?>
|
58 |
|
59 |
+
<div class="icon32" style="background: url('<?php echo SlideshowPluginMain::getPluginUrl() . '/images/SlideshowPluginPostType/adminIcon32.png'; ?>');"></div>
|
60 |
+
<h2 class="nav-tab-wrapper">
|
61 |
+
<a href="#user-capabilities" class="nav-tab nav-tab-active"><?php _e('User Capabilities', 'slideshow-plugin'); ?></a>
|
62 |
+
<a href="#default-slideshow-settings" class="nav-tab"><?php _e('Default Slideshow Settings', 'slideshow-plugin'); ?></a>
|
63 |
+
<a href="#custom-styles" class="nav-tab"><?php _e('Custom Styles', 'slideshow-plugin'); ?></a>
|
64 |
+
|
65 |
+
<?php submit_button(null, 'primary', null, false, 'style="float: right;"'); ?>
|
66 |
+
</h2>
|
67 |
+
|
68 |
<!-- ==== ==== User capabilities ==== ==== -->
|
69 |
+
<div class="user-capabilities feature-filter">
|
70 |
+
|
71 |
+
<p>
|
72 |
+
<b><?php _e('Select the user roles that will able to perform certain actions.', 'slideshow-plugin'); ?></b>
|
73 |
+
</p>
|
74 |
+
|
75 |
+
<table>
|
76 |
|
77 |
+
<?php foreach($capabilities as $capability => $capabilityName): ?>
|
78 |
|
79 |
<tr valign="top">
|
80 |
<th><?php echo $capabilityName; ?></th>
|
82 |
<?php
|
83 |
|
84 |
if(isset($wp_roles->roles) && is_array($wp_roles->roles)):
|
85 |
+
foreach($wp_roles->roles as $roleSlug => $values):
|
86 |
|
87 |
+
$disabled = ($roleSlug == 'administrator') ? 'disabled="disabled"' : '';
|
88 |
+
$checked = ((isset($values['capabilities']) && array_key_exists($capability, $values['capabilities']) && $values['capabilities'][$capability] == true) || $roleSlug == 'administrator') ? 'checked="checked"' : '';
|
89 |
+
$name = (isset($values['name'])) ? htmlspecialchars($values['name']) : __('Untitled role', 'slideshow-plugin');
|
90 |
|
91 |
+
?>
|
92 |
|
93 |
+
<input
|
94 |
+
type="checkbox"
|
95 |
+
name="<?php echo htmlspecialchars($capability); ?>[<?php echo htmlspecialchars($roleSlug); ?>]"
|
96 |
+
id="<?php echo htmlspecialchars($capability . '_' . $roleSlug); ?>"
|
97 |
+
<?php echo $disabled; ?>
|
98 |
+
<?php echo $checked; ?>
|
99 |
+
/>
|
100 |
+
<label for="<?php echo htmlspecialchars($capability . '_' . $roleSlug); ?>"><?php echo $name; ?></label>
|
101 |
+
<br />
|
102 |
|
103 |
+
<?php endforeach; ?>
|
104 |
<?php endif; ?>
|
105 |
|
106 |
</td>
|
107 |
</tr>
|
108 |
|
109 |
+
<?php endforeach; ?>
|
110 |
|
111 |
+
</table>
|
112 |
+
</div>
|
113 |
|
114 |
<!-- ==== ==== Defaults slideshow settings ==== ==== -->
|
115 |
+
<div class="default-slideshow-settings feature-filter" style="display: none;">
|
116 |
+
|
117 |
+
<p>
|
118 |
+
<b><?php _e('Default Slideshow Settings', 'slideshow-plugin'); ?></b>
|
119 |
+
</p>
|
120 |
+
|
121 |
+
<table>
|
122 |
+
|
123 |
+
<?php foreach($defaultSettings as $defaultSettingKey => $defaultSettingValue): ?>
|
124 |
+
|
125 |
+
<tr>
|
126 |
+
<td>
|
127 |
+
<?php echo $defaultSettingValue['description']; ?>
|
128 |
+
</td>
|
129 |
+
<td>
|
130 |
+
<?php echo SlideshowPluginSlideshowSettingsHandler::getInputField(SlideshowPluginGeneralSettings::$defaultSettings, $defaultSettingKey, $defaultSettingValue) ?>
|
131 |
+
</td>
|
132 |
+
</tr>
|
133 |
+
|
134 |
+
<?php endforeach; ?>
|
135 |
+
|
136 |
+
</table>
|
137 |
+
</div>
|
138 |
+
|
139 |
+
<div class="default-slideshow-settings feature-filter" style="display: none;">
|
140 |
+
|
141 |
+
<p>
|
142 |
+
<b><?php _e('Default Slideshow Stylesheet', 'slideshow-plugin'); ?></b>
|
143 |
+
</p>
|
144 |
+
|
145 |
+
<table>
|
146 |
+
|
147 |
+
<?php foreach($defaultStyleSettings as $defaultStyleSettingKey => $defaultStyleSettingValue): ?>
|
148 |
+
|
149 |
+
<tr>
|
150 |
+
<td>
|
151 |
+
<?php echo $defaultStyleSettingValue['description']; ?>
|
152 |
+
</td>
|
153 |
+
<td>
|
154 |
+
<?php echo SlideshowPluginSlideshowSettingsHandler::getInputField(SlideshowPluginGeneralSettings::$defaultStyleSettings, $defaultStyleSettingKey, $defaultStyleSettingValue) ?>
|
155 |
+
</td>
|
156 |
+
</tr>
|
157 |
+
|
158 |
+
<?php endforeach; ?>
|
159 |
|
160 |
+
</table>
|
161 |
+
</div>
|
162 |
+
|
163 |
+
<div style="clear: both;"></div>
|
164 |
|
165 |
<!-- ==== ==== Custom styles ==== ==== -->
|
166 |
+
<div class="custom-styles feature-filter" style="display: none;">
|
167 |
+
<div class="styles-list">
|
168 |
+
|
169 |
+
<p>
|
170 |
+
<b><?php _e('Default stylesheets', 'slideshow-plugin'); ?></b>
|
171 |
+
</p>
|
172 |
+
|
173 |
+
<ul class="default-styles-list">
|
174 |
+
|
175 |
+
<?php if(is_array($defaultStyles)): ?>
|
176 |
+
<?php foreach($defaultStyles as $defaultStyleKey => $defaultStyleValues): ?>
|
177 |
+
|
178 |
+
<?php if(!isset($defaultStyleValues['style']) || empty($defaultStyleValues['style'])) continue; // Continue if style is not set or empty ?>
|
179 |
+
|
180 |
+
<li>
|
181 |
+
<span class="style-title"><?php echo (isset($defaultStyleValues['name'])) ? htmlspecialchars($defaultStyleValues['name']) : __('Untitled'); ?></span>
|
182 |
+
<span
|
183 |
+
class="style-action style-default <?php htmlspecialchars($defaultStyleKey); ?>"
|
184 |
+
title="<?php _e('Create a new custom style from this style', 'slideshow-plugin'); ?>"
|
185 |
+
>
|
186 |
+
<?php _e('Customize', 'slideshow-plugin'); ?> »
|
187 |
+
</span>
|
188 |
+
|
189 |
+
<p style="clear: both;"></p>
|
190 |
+
|
191 |
+
<span class="style-content" style="display: none;"><?php echo htmlspecialchars($defaultStyleValues['style']); ?></span>
|
192 |
+
</li>
|
193 |
+
|
194 |
+
<?php endforeach; ?>
|
195 |
+
<?php endif; ?>
|
196 |
+
|
197 |
+
</ul>
|
198 |
+
|
199 |
+
<p>
|
200 |
+
<b><?php _e('Custom stylesheets', 'slideshow-plugin'); ?></b>
|
201 |
+
</p>
|
202 |
+
|
203 |
+
<ul class="custom-styles-list">
|
204 |
+
|
205 |
+
<?php if(is_array($customStyleKeys) && count($customStyleKeys) > 0): ?>
|
206 |
+
<?php foreach($customStyleKeys as $customStyleKey => $customStyleKeyName): ?>
|
207 |
+
|
208 |
+
<li>
|
209 |
+
<span class="style-title"><?php echo htmlspecialchars($customStyleKeyName); ?></span>
|
210 |
+
|
211 |
+
<span
|
212 |
+
class="style-action <?php echo htmlspecialchars($customStyleKey); ?>"
|
213 |
+
title="<?php _e('Edit this style', 'slideshow-plugin'); ?>"
|
214 |
+
>
|
215 |
+
<?php _e('Edit', 'slideshow-plugin'); ?> »
|
216 |
+
</span>
|
217 |
+
|
218 |
+
<span style="float: right;">|</span>
|
219 |
+
|
220 |
+
<span
|
221 |
+
class="style-delete <?php echo htmlspecialchars($customStyleKey); ?>"
|
222 |
+
title="<?php _e('Delete this style', 'slideshow-plugin'); ?>"
|
223 |
+
>
|
224 |
+
<?php _e('Delete', 'slideshow-plugin'); ?>
|
225 |
+
</span>
|
226 |
+
|
227 |
+
<p style="clear: both;"></p>
|
228 |
+
</li>
|
229 |
+
|
230 |
+
<?php endforeach; ?>
|
231 |
+
<?php else: ?>
|
232 |
+
|
233 |
+
<li class="no-custom-styles-found">
|
234 |
+
<?php _e("Click 'Customize' to create a new custom stylesheet."); ?>
|
235 |
+
</li>
|
236 |
+
|
237 |
+
<?php endif; ?>
|
238 |
+
|
239 |
+
</ul>
|
240 |
+
|
241 |
+
</div>
|
242 |
+
|
243 |
+
<div class="style-editors">
|
244 |
+
|
245 |
+
<p>
|
246 |
+
<b><?php _e('Custom style editor', 'slideshow-plugin'); ?></b>
|
247 |
+
</p>
|
248 |
+
|
249 |
+
<p class="style-editor">
|
250 |
+
<?php _e('Select a stylesheet from the left to start customizing it.', 'slideshow-plugin'); ?>
|
251 |
+
</p>
|
252 |
+
|
253 |
+
<?php if(is_array($customStyleValues)): ?>
|
254 |
+
<?php foreach($customStyleValues as $customStyleKey => $customStyleValue): ?>
|
255 |
+
|
256 |
+
<div class="style-editor <?php echo htmlspecialchars($customStyleKey); ?>" style="display: none;">
|
257 |
+
|
258 |
+
<p>
|
259 |
+
<i><?php _e('Title', 'slideshow-plugin'); ?></i><br />
|
260 |
+
<input
|
261 |
+
type="text"
|
262 |
+
name="<?php echo SlideshowPluginGeneralSettings::$customStyles; ?>[<?php echo htmlspecialchars($customStyleKey); ?>][title]"
|
263 |
+
value="<?php echo (isset($customStyleKeys[$customStyleKey]) && !empty($customStyleKeys[$customStyleKey])) ? $customStyleKeys[$customStyleKey] : __('Untitled', 'slideshow-plugin'); ?>"
|
264 |
+
/>
|
265 |
+
</p>
|
266 |
+
|
267 |
+
<p>
|
268 |
+
<i><?php _e('Style', 'slideshow-plugin'); ?></i><br />
|
269 |
+
<textarea
|
270 |
+
name="<?php echo SlideshowPluginGeneralSettings::$customStyles; ?>[<?php echo htmlspecialchars($customStyleKey); ?>][style]"
|
271 |
+
rows="25"
|
272 |
+
cols=""
|
273 |
+
><?php echo htmlspecialchars($customStyleValue); ?></textarea>
|
274 |
+
</p>
|
275 |
+
|
276 |
+
</div>
|
277 |
+
|
278 |
+
<?php endforeach; ?>
|
279 |
+
<?php endif; ?>
|
280 |
+
|
281 |
+
</div>
|
282 |
+
|
283 |
+
<div style="clear: both;"></div>
|
284 |
+
|
285 |
+
<div class="custom-style-templates" style="display: none;">
|
286 |
+
|
287 |
+
<li class="custom-styles-list-item">
|
288 |
+
<span class="style-title"></span>
|
289 |
+
|
290 |
+
<span
|
291 |
+
class="style-action"
|
292 |
+
title="<?php _e('Edit this style', 'slideshow-plugin'); ?>"
|
293 |
+
>
|
294 |
+
<?php _e('Edit', 'slideshow-plugin'); ?> »
|
295 |
+
</span>
|
296 |
+
|
297 |
+
<span style="float: right;">|</span>
|
298 |
+
|
299 |
+
<span
|
300 |
+
class="style-delete"
|
301 |
+
title="<?php _e('Delete this style', 'slideshow-plugin'); ?>"
|
302 |
+
>
|
303 |
+
<?php _e('Delete', 'slideshow-plugin'); ?>
|
304 |
+
</span>
|
305 |
+
|
306 |
+
<p style="clear: both;"></p>
|
307 |
+
</li>
|
308 |
+
|
309 |
+
<div class="style-editor" style="display: none;">
|
310 |
+
|
311 |
+
<p>
|
312 |
+
<i><?php _e('Title', 'slideshow-plugin'); ?></i><br />
|
313 |
+
<input
|
314 |
+
type="text"
|
315 |
+
class="new-custom-style-title"
|
316 |
+
/>
|
317 |
+
</p>
|
318 |
+
|
319 |
+
<p>
|
320 |
+
<i><?php _e('Style', 'slideshow-plugin'); ?></i><br />
|
321 |
+
<textarea
|
322 |
+
class="new-custom-style-content"
|
323 |
+
rows="25"
|
324 |
+
cols=""
|
325 |
+
></textarea>
|
326 |
+
</p>
|
327 |
+
|
328 |
+
</div>
|
329 |
+
</div>
|
330 |
|
331 |
+
</div>
|
332 |
|
333 |
+
<p>
|
334 |
+
<?php submit_button(null, 'primary', null, false); ?>
|
335 |
+
</p>
|
336 |
</form>
|
337 |
</div>
|
views/SlideshowPluginPostType/settings.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<?php if(count($settings) > 0): ?>
|
4 |
<?php foreach($settings as $key => $value): ?>
|
5 |
|
6 |
-
<?php if(!isset($value) || !is_array($value)) continue; ?>
|
7 |
|
8 |
<?php if(!empty($value['group']) && !isset($groups[$value['group']])): $groups[$value['group']] = true; ?>
|
9 |
<tr>
|
3 |
<?php if(count($settings) > 0): ?>
|
4 |
<?php foreach($settings as $key => $value): ?>
|
5 |
|
6 |
+
<?php if( !isset($value, $value['type'], $value['value'], $value['default'], $value['description']) || !is_array($value)) continue; ?>
|
7 |
|
8 |
<?php if(!empty($value['group']) && !isset($groups[$value['group']])): $groups[$value['group']] = true; ?>
|
9 |
<tr>
|
views/SlideshowPluginPostType/slides.php
CHANGED
@@ -13,9 +13,14 @@
|
|
13 |
.sortable li {
|
14 |
cursor: pointer;
|
15 |
}
|
|
|
|
|
|
|
|
|
16 |
</style>
|
|
|
17 |
<script type="text/javascript">
|
18 |
-
var slideshowHighestSlideId = <?php echo (is_numeric($highestSlideId))? $highestSlideId : 0; ?>
|
19 |
</script>
|
20 |
|
21 |
<ul class="sortable-slides-list">
|
@@ -34,7 +39,7 @@
|
|
34 |
$name = SlideshowPluginSlideshowSettingsHandler::$slidesKey . '[' . $key . ']';
|
35 |
?>
|
36 |
|
37 |
-
<li class="widefat sortable-slides-list-item">
|
38 |
<?php if($slide['type'] == 'text'):
|
39 |
|
40 |
// Type specific values
|
@@ -47,23 +52,30 @@
|
|
47 |
$color = $slide['color'];
|
48 |
?>
|
49 |
|
50 |
-
<
|
51 |
-
<
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
</p>
|
55 |
|
56 |
-
<p style="
|
|
|
57 |
<input type="text" name="<?php echo $name; ?>[url]" value="<?php echo $url; ?>" /><br />
|
|
|
58 |
<select name="<?php echo $name; ?>[urlTarget]">
|
59 |
<option value="_self" <?php selected('_self', $target); ?>><?php _e('Same window', 'slideshow-plugin'); ?></option>
|
60 |
<option value="_blank" <?php selected('_blank', $target); ?>><?php _e('New window', 'slideshow-plugin'); ?></option>
|
61 |
</select>
|
62 |
</p>
|
63 |
-
<p style="float: left; line-height: 50px;">
|
64 |
-
<i><?php _e('URL', 'slideshow-plugin'); ?></i>
|
65 |
-
</p>
|
66 |
-
<p style="clear: both;"></p>
|
67 |
|
68 |
<input type="hidden" name="<?php echo $name; ?>[type]" value="text" />
|
69 |
<input type="hidden" name="<?php echo $name; ?>[order]" value="<?php echo $order; ?>" class="slide_order" />
|
@@ -76,8 +88,15 @@
|
|
76 |
$videoId = $slide['videoId'];
|
77 |
?>
|
78 |
|
79 |
-
<
|
80 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
</p>
|
82 |
|
83 |
<input type="hidden" name="<?php echo $name; ?>[type]" value="video" />
|
@@ -90,6 +109,19 @@
|
|
90 |
if(!isset($attachment))
|
91 |
continue;
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
$image = wp_get_attachment_image_src($attachment->ID);
|
94 |
$imageSrc = '';
|
95 |
if(!is_array($image) || !$image){
|
@@ -104,31 +136,38 @@
|
|
104 |
|
105 |
$editUrl = admin_url() . '/media.php?attachment_id=' . $attachment->ID . '&action=edit'; ?>
|
106 |
|
107 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
<a href="<?php echo $editUrl; ?>" title="<?php _e('Edit', 'slideshow-plugin'); ?> "<?php echo $attachment->post_title; ?>"">
|
109 |
<img width="80" height="60" src="<?php echo $imageSrc; ?>" class="attachment-80x60" alt="<?php echo $attachment->post_title; ?>" title="<?php echo $attachment->post_title; ?>" />
|
110 |
</a>
|
111 |
</p>
|
112 |
|
113 |
-
<p style="float: left;
|
114 |
-
<
|
115 |
-
|
116 |
-
</strong><br />
|
117 |
-
<?php if(strlen($attachment->post_content) > 30) echo substr($attachment->post_content, 0, 20) . '...'; else echo $attachment->post_content; ?>
|
118 |
</p>
|
119 |
<p style="clear: both"></p>
|
120 |
|
121 |
-
<p style="
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
<input type="text" name="<?php echo $name; ?>[url]" value="<?php echo $url; ?>" /><br />
|
|
|
123 |
<select name="<?php echo $name; ?>[urlTarget]">
|
124 |
<option value="_self" <?php selected('_self', $target); ?>><?php _e('Same window', 'slideshow-plugin'); ?></option>
|
125 |
<option value="_blank" <?php selected('_blank', $target); ?>><?php _e('New window', 'slideshow-plugin'); ?></option>
|
126 |
</select>
|
127 |
</p>
|
128 |
-
<p style="float: left; line-height: 50px;">
|
129 |
-
<i><?php _e('URL', 'slideshow-plugin'); ?></i>
|
130 |
-
</p>
|
131 |
-
<p style="clear: both;"></p>
|
132 |
|
133 |
<input type="hidden" name="<?php echo $name; ?>[type]" value="attachment" />
|
134 |
<input type="hidden" name="<?php echo $name; ?>[postId]" value="<?php echo $attachment->ID; ?>" />
|
@@ -136,94 +175,128 @@
|
|
136 |
|
137 |
<?php else: ?>
|
138 |
|
139 |
-
<p style="
|
140 |
<?php _e('An error occurred while loading this slide, and it will not be present in the slideshow', 'slideshow-plugin'); ?>
|
141 |
</p>
|
142 |
|
143 |
<?php endif; ?>
|
144 |
-
|
145 |
-
|
|
|
146 |
<span style="display: none;" class="<?php echo $id; ?>"></span>
|
147 |
</p>
|
|
|
148 |
</li>
|
149 |
<?php endforeach; ?>
|
150 |
<?php endif; ?>
|
151 |
</ul>
|
152 |
|
153 |
<div class="text-slide-template" style="display: none;">
|
154 |
-
<li class="widefat sortable-slides-list-item">
|
155 |
-
|
156 |
-
|
157 |
-
<
|
158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
</p>
|
160 |
|
161 |
-
<p style="
|
|
|
162 |
<input type="text" class="url" value="" /><br />
|
|
|
163 |
<select class="urlTarget">
|
164 |
<option value="_self"><?php _e('Same window', 'slideshow-plugin'); ?></option>
|
165 |
<option value="_blank"><?php _e('New window', 'slideshow-plugin'); ?></option>
|
166 |
</select>
|
167 |
</p>
|
168 |
-
<p style="float: left; line-height: 50px;">
|
169 |
-
<i><?php _e('URL', 'slideshow-plugin'); ?></i>
|
170 |
-
</p>
|
171 |
-
<p style="clear: both"></p>
|
172 |
|
173 |
<input type="hidden" class="type" value="text" />
|
174 |
<input type="hidden" class="slide_order" />
|
175 |
|
176 |
-
<p style="
|
177 |
-
|
|
|
178 |
</p>
|
|
|
179 |
</li>
|
180 |
</div>
|
181 |
|
182 |
<div class="video-slide-template" style="display: none;">
|
183 |
-
<li class="widefat sortable-slides-list-item">
|
184 |
-
|
185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
</p>
|
187 |
|
188 |
<input type="hidden" class="type" value="video" />
|
189 |
<input type="hidden" class="slide_order" />
|
190 |
|
191 |
-
<p style="
|
192 |
-
|
|
|
193 |
</p>
|
|
|
194 |
</li>
|
195 |
</div>
|
196 |
|
197 |
<div class="image-slide-template" style="display: none;">
|
198 |
-
<li class="widefat sortable-slides-list-item">
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
<img width="80" height="60" src="" class="attachment attachment-80x60" alt="" title="" />
|
201 |
</p>
|
202 |
|
203 |
-
<p style="float: left;
|
204 |
-
<
|
205 |
-
<
|
206 |
</p>
|
207 |
<p style="clear: both"></p>
|
208 |
|
209 |
-
<p style="
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
<input type="text" class="url" value="" /><br />
|
|
|
211 |
<select class="urlTarget">
|
212 |
<option value="_self"><?php _e('Same window', 'slideshow-plugin'); ?></option>
|
213 |
<option value="_blank"><?php _e('New window', 'slideshow-plugin'); ?></option>
|
214 |
</select>
|
215 |
</p>
|
216 |
-
<p style="float: left; line-height: 50px;"
|
217 |
-
<i><?php _e('URL', 'slideshow-plugin'); ?></i>
|
218 |
-
</p>
|
219 |
-
<p style="clear: both"></p>
|
220 |
|
221 |
<input type="hidden" class="type" value="attachment" />
|
222 |
<input type="hidden" class="postId" value="" />
|
223 |
<input type="hidden" value="" class="slide_order" />
|
224 |
|
225 |
-
<p style="
|
226 |
-
|
|
|
227 |
</p>
|
|
|
228 |
</li>
|
229 |
</div>
|
13 |
.sortable li {
|
14 |
cursor: pointer;
|
15 |
}
|
16 |
+
|
17 |
+
.sortable-slide-placeholder {
|
18 |
+
border: 1px solid #f00;
|
19 |
+
}
|
20 |
</style>
|
21 |
+
|
22 |
<script type="text/javascript">
|
23 |
+
//var slideshowHighestSlideId = <?php echo (is_numeric($highestSlideId))? $highestSlideId : 0; ?>
|
24 |
</script>
|
25 |
|
26 |
<ul class="sortable-slides-list">
|
39 |
$name = SlideshowPluginSlideshowSettingsHandler::$slidesKey . '[' . $key . ']';
|
40 |
?>
|
41 |
|
42 |
+
<li class="widefat sortable-slides-list-item" style="margin: 10px 0; width: auto; background-color: #fafafa;">
|
43 |
<?php if($slide['type'] == 'text'):
|
44 |
|
45 |
// Type specific values
|
52 |
$color = $slide['color'];
|
53 |
?>
|
54 |
|
55 |
+
<h3 class="hndle">
|
56 |
+
<span style="font-size: 0.8em;">
|
57 |
+
<?php _e('Text slide', 'slideshow-plugin'); ?>
|
58 |
+
</span>
|
59 |
+
</h3>
|
60 |
+
|
61 |
+
<p style="margin: 5px 15px 5px 5px;">
|
62 |
+
<i><?php _e('Title', 'slideshow-plugin'); ?></i><br />
|
63 |
+
<input type="text" name="<?php echo $name; ?>[title]" value="<?php echo $title; ?>" /><br />
|
64 |
+
<i><?php _e('Description', 'slideshow-plugin'); ?></i><br />
|
65 |
+
<textarea name="<?php echo $name; ?>[description]" rows="7" cols="" style="width: 100%;"><?php echo $description; ?></textarea><br />
|
66 |
+
<i><?php _e('Background color', 'slideshow-plugin'); ?></i><br />
|
67 |
+
<input type="text" name="<?php echo $name; ?>[color]" value="<?php echo $color; ?>" class="color {required:false}" />
|
68 |
</p>
|
69 |
|
70 |
+
<p style="margin: 5px 15px 5px 5px;">
|
71 |
+
<i><?php _e('URL', 'slideshow-plugin'); ?></i><br />
|
72 |
<input type="text" name="<?php echo $name; ?>[url]" value="<?php echo $url; ?>" /><br />
|
73 |
+
<i><?php _e('Open URL in', 'slideshow-plugin'); ?></i>
|
74 |
<select name="<?php echo $name; ?>[urlTarget]">
|
75 |
<option value="_self" <?php selected('_self', $target); ?>><?php _e('Same window', 'slideshow-plugin'); ?></option>
|
76 |
<option value="_blank" <?php selected('_blank', $target); ?>><?php _e('New window', 'slideshow-plugin'); ?></option>
|
77 |
</select>
|
78 |
</p>
|
|
|
|
|
|
|
|
|
79 |
|
80 |
<input type="hidden" name="<?php echo $name; ?>[type]" value="text" />
|
81 |
<input type="hidden" name="<?php echo $name; ?>[order]" value="<?php echo $order; ?>" class="slide_order" />
|
88 |
$videoId = $slide['videoId'];
|
89 |
?>
|
90 |
|
91 |
+
<h3 class="hndle">
|
92 |
+
<span style="font-size: 0.8em;">
|
93 |
+
<?php _e('Video slide', 'slideshow-plugin'); ?>
|
94 |
+
</span>
|
95 |
+
</h3>
|
96 |
+
|
97 |
+
<p style="margin: 5px 15px 5px 5px;">
|
98 |
+
<i><?php _e('Youtube Video ID', 'slideshow-plugin'); ?></i><br />
|
99 |
+
<input type="text" name="<?php echo $name; ?>[videoId]" value="<?php echo $videoId; ?>" />
|
100 |
</p>
|
101 |
|
102 |
<input type="hidden" name="<?php echo $name; ?>[type]" value="video" />
|
109 |
if(!isset($attachment))
|
110 |
continue;
|
111 |
|
112 |
+
// Title and description
|
113 |
+
$title = $description = '';
|
114 |
+
if(isset($slide['title']) && !empty($slide['title']))
|
115 |
+
$title = $slide['title'];
|
116 |
+
else
|
117 |
+
$title = $attachment->post_title;
|
118 |
+
|
119 |
+
if(isset($slide['description']) && !empty($slide['description']))
|
120 |
+
$description = $slide['description'];
|
121 |
+
else
|
122 |
+
$description = $attachment->post_content;
|
123 |
+
|
124 |
+
// Prepare image
|
125 |
$image = wp_get_attachment_image_src($attachment->ID);
|
126 |
$imageSrc = '';
|
127 |
if(!is_array($image) || !$image){
|
136 |
|
137 |
$editUrl = admin_url() . '/media.php?attachment_id=' . $attachment->ID . '&action=edit'; ?>
|
138 |
|
139 |
+
<h3 class="hndle">
|
140 |
+
<span style="font-size: 0.8em;">
|
141 |
+
<?php _e('Image slide', 'slideshow-plugin'); ?>
|
142 |
+
</span>
|
143 |
+
</h3>
|
144 |
+
|
145 |
+
<p style="float: left; margin: 5px;">
|
146 |
<a href="<?php echo $editUrl; ?>" title="<?php _e('Edit', 'slideshow-plugin'); ?> "<?php echo $attachment->post_title; ?>"">
|
147 |
<img width="80" height="60" src="<?php echo $imageSrc; ?>" class="attachment-80x60" alt="<?php echo $attachment->post_title; ?>" title="<?php echo $attachment->post_title; ?>" />
|
148 |
</a>
|
149 |
</p>
|
150 |
|
151 |
+
<p style="float: left; margin: 5px 15px 5px 5px;">
|
152 |
+
<i><?php _e('Title', 'slideshow-plugin'); ?></i><br />
|
153 |
+
<input type="text" name="<?php echo $name; ?>[title]" value="<?php echo $title; ?>" />
|
|
|
|
|
154 |
</p>
|
155 |
<p style="clear: both"></p>
|
156 |
|
157 |
+
<p style="margin: 5px 15px 5px 5px;">
|
158 |
+
<i><?php _e('Description', 'slideshow-plugin'); ?></i><br />
|
159 |
+
<textarea name="<?php echo $name; ?>[description]" rows="3" cols="" style="width: 100%;"><?php echo $description; ?></textarea><br />
|
160 |
+
</p>
|
161 |
+
|
162 |
+
<p style="margin: 5px 15px 5px 5px;">
|
163 |
+
<i><?php _e('URL', 'slideshow-plugin'); ?></i><br />
|
164 |
<input type="text" name="<?php echo $name; ?>[url]" value="<?php echo $url; ?>" /><br />
|
165 |
+
<i><?php _e('Open URL in', 'slideshow-plugin'); ?></i>
|
166 |
<select name="<?php echo $name; ?>[urlTarget]">
|
167 |
<option value="_self" <?php selected('_self', $target); ?>><?php _e('Same window', 'slideshow-plugin'); ?></option>
|
168 |
<option value="_blank" <?php selected('_blank', $target); ?>><?php _e('New window', 'slideshow-plugin'); ?></option>
|
169 |
</select>
|
170 |
</p>
|
|
|
|
|
|
|
|
|
171 |
|
172 |
<input type="hidden" name="<?php echo $name; ?>[type]" value="attachment" />
|
173 |
<input type="hidden" name="<?php echo $name; ?>[postId]" value="<?php echo $attachment->ID; ?>" />
|
175 |
|
176 |
<?php else: ?>
|
177 |
|
178 |
+
<p style="margin: 5px 15px 5px 5px;">
|
179 |
<?php _e('An error occurred while loading this slide, and it will not be present in the slideshow', 'slideshow-plugin'); ?>
|
180 |
</p>
|
181 |
|
182 |
<?php endif; ?>
|
183 |
+
|
184 |
+
<p style="margin: 5px 15px 5px 5px; color: red; cursor: pointer;" class="slideshow-delete-slide">
|
185 |
+
<span><?php _e('Delete slide', 'slideshow-plugin'); ?></span>
|
186 |
<span style="display: none;" class="<?php echo $id; ?>"></span>
|
187 |
</p>
|
188 |
+
|
189 |
</li>
|
190 |
<?php endforeach; ?>
|
191 |
<?php endif; ?>
|
192 |
</ul>
|
193 |
|
194 |
<div class="text-slide-template" style="display: none;">
|
195 |
+
<li class="widefat sortable-slides-list-item" style="margin: 10px 0; width: auto; background-color: #fafafa;">
|
196 |
+
|
197 |
+
<h3 class="hndle">
|
198 |
+
<span style="font-size: 0.8em;">
|
199 |
+
<?php _e('Text slide', 'slideshow-plugin'); ?>
|
200 |
+
</span>
|
201 |
+
</h3>
|
202 |
+
|
203 |
+
<p style="margin: 5px 15px 5px 5px;">
|
204 |
+
<i><?php _e('Title', 'slideshow-plugin'); ?></i><br />
|
205 |
+
<input type="text" class="title" /><br />
|
206 |
+
<i><?php _e('Description', 'slideshow-plugin'); ?></i><br />
|
207 |
+
<textarea class="description" cols="" rows="7" style="width: 100%;"></textarea><br />
|
208 |
+
<i><?php _e('Background color', 'slideshow-plugin'); ?></i><br />
|
209 |
+
<input type="text" class="color {required:false}" />
|
210 |
</p>
|
211 |
|
212 |
+
<p style="margin: 5px 15px 5px 5px;">
|
213 |
+
<i><?php _e('URL', 'slideshow-plugin'); ?></i><br />
|
214 |
<input type="text" class="url" value="" /><br />
|
215 |
+
<i><?php _e('Open URL in', 'slideshow-plugin'); ?></i>
|
216 |
<select class="urlTarget">
|
217 |
<option value="_self"><?php _e('Same window', 'slideshow-plugin'); ?></option>
|
218 |
<option value="_blank"><?php _e('New window', 'slideshow-plugin'); ?></option>
|
219 |
</select>
|
220 |
</p>
|
|
|
|
|
|
|
|
|
221 |
|
222 |
<input type="hidden" class="type" value="text" />
|
223 |
<input type="hidden" class="slide_order" />
|
224 |
|
225 |
+
<p style="margin: 5px 15px 5px 5px; color: red; cursor: pointer;" class="slideshow-delete-new-slide">
|
226 |
+
<span><?php _e('Delete slide', 'slideshow-plugin'); ?></span>
|
227 |
+
<span style="display: none;" class="<?php echo $id; ?>"></span>
|
228 |
</p>
|
229 |
+
|
230 |
</li>
|
231 |
</div>
|
232 |
|
233 |
<div class="video-slide-template" style="display: none;">
|
234 |
+
<li class="widefat sortable-slides-list-item" style="margin: 10px 0; width: auto; background-color: #fafafa;">
|
235 |
+
|
236 |
+
<h3 class="hndle">
|
237 |
+
<span style="font-size: 0.8em;">
|
238 |
+
<?php _e('Video slide', 'slideshow-plugin'); ?>
|
239 |
+
</span>
|
240 |
+
</h3>
|
241 |
+
|
242 |
+
<p style="margin: 5px 15px 5px 5px;">
|
243 |
+
<i><?php _e('Youtube Video ID', 'slideshow-plugin'); ?></i><br />
|
244 |
+
<input type="text" class="videoId" />
|
245 |
</p>
|
246 |
|
247 |
<input type="hidden" class="type" value="video" />
|
248 |
<input type="hidden" class="slide_order" />
|
249 |
|
250 |
+
<p style="margin: 5px 15px 5px 5px; color: red; cursor: pointer;" class="slideshow-delete-new-slide">
|
251 |
+
<span><?php _e('Delete slide', 'slideshow-plugin'); ?></span>
|
252 |
+
<span style="display: none;" class="<?php echo $id; ?>"></span>
|
253 |
</p>
|
254 |
+
|
255 |
</li>
|
256 |
</div>
|
257 |
|
258 |
<div class="image-slide-template" style="display: none;">
|
259 |
+
<li class="widefat sortable-slides-list-item" style="margin: 10px 0; width: auto; background-color: #fafafa;">
|
260 |
+
|
261 |
+
<h3 class="hndle">
|
262 |
+
<span style="font-size: 0.8em;">
|
263 |
+
<?php _e('Image slide', 'slideshow-plugin'); ?>
|
264 |
+
</span>
|
265 |
+
</h3>
|
266 |
+
|
267 |
+
<p style="float: left; margin: 5px;">
|
268 |
<img width="80" height="60" src="" class="attachment attachment-80x60" alt="" title="" />
|
269 |
</p>
|
270 |
|
271 |
+
<p style="float: left; margin: 5px 15px 5px 5px;">
|
272 |
+
<i><?php _e('Title', 'slideshow-plugin'); ?></i><br />
|
273 |
+
<input type="text" class="title" />
|
274 |
</p>
|
275 |
<p style="clear: both"></p>
|
276 |
|
277 |
+
<p style="margin: 5px 15px 5px 5px;">
|
278 |
+
<i><?php _e('Description', 'slideshow-plugin'); ?></i><br />
|
279 |
+
<textarea class="description" rows="3" cols="" style="width: 100%;"></textarea><br />
|
280 |
+
</p>
|
281 |
+
|
282 |
+
<p style="margin: 5px 15px 5px 5px;">
|
283 |
+
<i><?php _e('URL', 'slideshow-plugin'); ?></i><br />
|
284 |
<input type="text" class="url" value="" /><br />
|
285 |
+
<i><?php _e('Open URL in', 'slideshow-plugin'); ?></i>
|
286 |
<select class="urlTarget">
|
287 |
<option value="_self"><?php _e('Same window', 'slideshow-plugin'); ?></option>
|
288 |
<option value="_blank"><?php _e('New window', 'slideshow-plugin'); ?></option>
|
289 |
</select>
|
290 |
</p>
|
|
|
|
|
|
|
|
|
291 |
|
292 |
<input type="hidden" class="type" value="attachment" />
|
293 |
<input type="hidden" class="postId" value="" />
|
294 |
<input type="hidden" value="" class="slide_order" />
|
295 |
|
296 |
+
<p style="margin: 5px 15px 5px 5px; color: red; cursor: pointer;" class="slideshow-delete-new-slide">
|
297 |
+
<span><?php _e('Delete slide', 'slideshow-plugin'); ?></span>
|
298 |
+
<span style="display: none;" class="<?php echo $id; ?>"></span>
|
299 |
</p>
|
300 |
+
|
301 |
</li>
|
302 |
</div>
|
views/SlideshowPluginPostType/style-settings.php
CHANGED
@@ -3,15 +3,27 @@
|
|
3 |
|
4 |
<?php foreach($settings as $key => $value): ?>
|
5 |
|
6 |
-
<?php if(
|
7 |
-
|
8 |
<tr <?php if(isset($value['dependsOn'])) echo 'style="display:none;"'; ?>>
|
9 |
<td><?php echo $value['description']; ?></td>
|
10 |
<td><?php echo SlideshowPluginSlideshowSettingsHandler::getInputField(htmlspecialchars(SlideshowPluginSlideshowSettingsHandler::$styleSettingsKey), $key, $value); ?></td>
|
11 |
-
<td><?php _e('Default', 'slideshow-plugin'); ?>: '<?php echo $value['default']; ?>'</td>
|
12 |
</tr>
|
13 |
|
14 |
<?php endforeach; ?>
|
15 |
|
16 |
<?php endif; ?>
|
17 |
-
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
<?php foreach($settings as $key => $value): ?>
|
5 |
|
6 |
+
<?php if( !isset($value, $value['type'], $value['value'], $value['default'], $value['description']) || !is_array($value)) continue; ?>
|
7 |
+
|
8 |
<tr <?php if(isset($value['dependsOn'])) echo 'style="display:none;"'; ?>>
|
9 |
<td><?php echo $value['description']; ?></td>
|
10 |
<td><?php echo SlideshowPluginSlideshowSettingsHandler::getInputField(htmlspecialchars(SlideshowPluginSlideshowSettingsHandler::$styleSettingsKey), $key, $value); ?></td>
|
11 |
+
<td><?php _e('Default', 'slideshow-plugin'); ?>: '<?php echo (isset($value['options']))? $value['options'][$value['default']]: $value['default']; ?>'</td>
|
12 |
</tr>
|
13 |
|
14 |
<?php endforeach; ?>
|
15 |
|
16 |
<?php endif; ?>
|
17 |
+
</table>
|
18 |
+
|
19 |
+
<p>
|
20 |
+
<?php
|
21 |
+
echo sprintf(__(
|
22 |
+
'Custom styles can be created and customized %shere%s.',
|
23 |
+
'slideshow-plugin'
|
24 |
+
),
|
25 |
+
'<a href="' . admin_url() . '/edit.php?post_type=slideshow&page=general_settings#custom-styles" target="_blank">',
|
26 |
+
'</a>'
|
27 |
+
);
|
28 |
+
?>
|
29 |
+
</p>
|
views/SlideshowPluginShortcode/shortcode-inserter.php
CHANGED
@@ -1,13 +1,15 @@
|
|
1 |
<a
|
2 |
href="#TB_inline?width=450&inlineId=insertSlideshowShortcode"
|
3 |
-
class="thickbox"
|
4 |
title="<?php _e('Insert a Slideshow', 'slideshow-plugin'); ?>"
|
|
|
5 |
>
|
6 |
-
<?php _e('Insert Slideshow', 'slideshow-plugin'); ?>
|
7 |
<img
|
8 |
src="<?php echo SlideshowPluginMain::getPluginUrl() . '/images/adminIcon.png'; ?>"
|
9 |
alt="<?php _e('Insert a Slideshow', 'slideshow-plugin'); ?>"
|
|
|
10 |
/>
|
|
|
11 |
</a>
|
12 |
|
13 |
<div id="insertSlideshowShortcode" style="display: none;">
|
1 |
<a
|
2 |
href="#TB_inline?width=450&inlineId=insertSlideshowShortcode"
|
3 |
+
class="button thickbox"
|
4 |
title="<?php _e('Insert a Slideshow', 'slideshow-plugin'); ?>"
|
5 |
+
style="padding-left: .4em;"
|
6 |
>
|
|
|
7 |
<img
|
8 |
src="<?php echo SlideshowPluginMain::getPluginUrl() . '/images/adminIcon.png'; ?>"
|
9 |
alt="<?php _e('Insert a Slideshow', 'slideshow-plugin'); ?>"
|
10 |
+
style="vertical-align: text-top;"
|
11 |
/>
|
12 |
+
<?php _e('Insert Slideshow', 'slideshow-plugin'); ?>
|
13 |
</a>
|
14 |
|
15 |
<div id="insertSlideshowShortcode" style="display: none;">
|