Version Description
- Added: empty condition groups cannot be saved
- Added: confirmation on various condition group actions in sidebar editor
- Added: improved ux design for sidebar editor
- Added: chinese translation
- Added: wp3.9 compatibility
- Fixed: transposh compatibility now 0.9.5+
- Fixed: removed warnings for auto-select new children functionality
- Fixed: unprivileged users could in theory make, but never successfully execute, ajax requests for sidebar editor
- Fixed: removed warning in widgets screen when handle is not set
Download this release
Release Info
Developer | intoxstudio |
Plugin | Content Aware Sidebars – Unlimited Widget Areas |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 2.1
- content-aware-sidebars.php +902 -597
- css/index.php +2 -0
- css/style.css +258 -39
- img/index.php +2 -0
- index.php +1 -0
- js/accordion.min.js +1 -0
- js/cas_admin.js +625 -78
- js/index.php +2 -0
- js/jquery.ui.accordion.js +0 -1
- lang/content-aware-sidebars-da_DK.mo +0 -0
- lang/content-aware-sidebars-da_DK.po +248 -116
- lang/content-aware-sidebars-de_DE.mo +0 -0
- lang/content-aware-sidebars-de_DE.po +460 -0
- lang/content-aware-sidebars-es_ES.mo +0 -0
- lang/content-aware-sidebars-es_ES.po +459 -0
- lang/content-aware-sidebars-hu_HU.mo +0 -0
- lang/content-aware-sidebars-hu_HU.po +417 -0
- lang/content-aware-sidebars-it_IT.mo +0 -0
- lang/content-aware-sidebars-it_IT.po +316 -110
- lang/content-aware-sidebars-lt_LT.mo +0 -0
- lang/content-aware-sidebars-lt_LT.po +183 -136
- lang/content-aware-sidebars-lv_LV.mo +0 -0
- lang/content-aware-sidebars-lv_LV.po +299 -0
- lang/content-aware-sidebars-sk_SK.mo +0 -0
- lang/content-aware-sidebars-sk_SK.po +311 -0
- lang/content-aware-sidebars-zh_CN.mo +0 -0
- lang/content-aware-sidebars-zh_CN.po +409 -0
- lang/content-aware-sidebars.po +405 -0
- lang/content-aware-sidebars.pot +0 -276
- lang/index.php +2 -0
- license.txt +674 -0
- modules/abstract.php +239 -45
- modules/author.php +88 -13
- modules/bbpress.php +32 -14
- modules/bp_member.php +72 -26
- modules/index.php +2 -0
- modules/page_template.php +34 -13
- modules/polylang.php +36 -11
- modules/post_type.php +307 -74
- modules/qtranslate.php +32 -18
- modules/static.php +35 -34
- modules/taxonomy.php +323 -71
- modules/transposh.php +32 -11
- modules/wpml.php +31 -9
- readme.txt +192 -48
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- uninstall.php +5 -11
- update_db.php +126 -71
- walker.php +54 -192
- wpml-config.xml +10 -0
content-aware-sidebars.php
CHANGED
@@ -7,171 +7,252 @@
|
|
7 |
Plugin Name: Content Aware Sidebars
|
8 |
Plugin URI: http://www.intox.dk/
|
9 |
Description: Manage and show sidebars according to the content being viewed.
|
10 |
-
Version: 1
|
11 |
-
Author: Joachim Jensen
|
12 |
Author URI: http://www.intox.dk/
|
13 |
Text Domain: content-aware-sidebars
|
14 |
Domain Path: /lang/
|
15 |
-
License:
|
16 |
|
17 |
-
|
|
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
You should have received a copy of the GNU General Public License
|
29 |
-
along with this program; if not, write to the Free Software
|
30 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
31 |
|
|
|
|
|
32 |
*/
|
33 |
|
34 |
final class ContentAwareSidebars {
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
private $metadata = array();
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
private $sidebar_cache = array();
|
43 |
-
|
|
|
|
|
|
|
|
|
44 |
private $modules = array();
|
45 |
|
46 |
/**
|
47 |
-
*
|
|
|
|
|
|
|
|
|
|
|
48 |
* Constructor
|
49 |
-
*
|
50 |
*/
|
51 |
public function __construct() {
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
register_activation_hook(__FILE__, array(&$this,'plugin_activation'));
|
56 |
-
register_deactivation_hook(__FILE__, array(&$this,'plugin_deactivation'));
|
57 |
|
58 |
$this->_load_dependencies();
|
59 |
-
|
60 |
// WordPress Hooks. Somewhat ordered by execution
|
61 |
|
62 |
-
//
|
63 |
-
add_action('plugins_loaded', array(&$this,'deploy_modules'));
|
64 |
-
add_action('init', array(&$this,'init_sidebar_type'),99);
|
65 |
-
add_action('widgets_init', array(&$this,'create_sidebars'));
|
66 |
-
|
67 |
-
// On admin requests
|
68 |
-
add_action('admin_menu', array(&$this,'clear_admin_menu'));
|
69 |
-
add_action('admin_enqueue_scripts', array(&$this,'load_admin_scripts'));
|
70 |
-
|
71 |
-
// On post type and taxonomy requests
|
72 |
-
add_action('delete_post', array(&$this,'remove_sidebar_widgets'));
|
73 |
-
add_action('save_post', array(&$this,'save_post'));
|
74 |
-
|
75 |
-
// Order not known yet
|
76 |
-
add_action('add_meta_boxes_sidebar', array(&$this,'create_meta_boxes'));
|
77 |
-
|
78 |
-
add_filter('default_hidden_meta_boxes', array(&$this,'change_default_hidden'),10,2);
|
79 |
-
add_filter('manage_edit-sidebar_columns', array(&$this,'admin_column_headers'));
|
80 |
-
add_filter('manage_edit-sidebar_sortable_columns', array(&$this,'admin_column_sortable_headers'));
|
81 |
-
add_filter('manage_posts_custom_column', array(&$this,'admin_column_rows'),10,3);
|
82 |
-
add_filter('post_row_actions', array(&$this,'sidebar_row_actions'),10,2);
|
83 |
-
add_filter('post_updated_messages', array(&$this,'sidebar_updated_messages'));
|
84 |
-
|
85 |
-
|
86 |
-
// Sitewide hooks that should not be loaded sitewide here
|
87 |
if(is_admin()) {
|
88 |
-
add_filter('request', array(&$this,'admin_column_orderby'));
|
89 |
|
90 |
-
add_action('wp_loaded',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
} else {
|
92 |
-
|
|
|
|
|
93 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
|
95 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
/**
|
98 |
-
*
|
99 |
* Deploy modules
|
100 |
-
*
|
101 |
*/
|
102 |
public function deploy_modules() {
|
|
|
|
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
// List modules
|
107 |
$modules = array(
|
108 |
-
'static'
|
109 |
-
'post_type'
|
110 |
-
'author'
|
111 |
-
'page_template'
|
112 |
-
'taxonomy'
|
113 |
-
'
|
114 |
-
'
|
115 |
-
'
|
116 |
-
'
|
117 |
-
'
|
118 |
-
'
|
|
|
119 |
);
|
|
|
|
|
120 |
|
121 |
// Forge modules
|
122 |
foreach($modules as $name => $enabled) {
|
123 |
-
if($enabled
|
124 |
-
$
|
125 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
}
|
127 |
}
|
128 |
|
129 |
}
|
130 |
|
131 |
/**
|
132 |
-
*
|
133 |
* Create post meta fields
|
134 |
-
*
|
135 |
-
* @global int $post
|
136 |
* @global array $wp_registered_sidebars
|
|
|
137 |
*/
|
138 |
private function _init_metadata() {
|
139 |
-
global $
|
140 |
-
|
141 |
// List of sidebars
|
142 |
$sidebar_list = array();
|
143 |
foreach($wp_registered_sidebars as $sidebar) {
|
144 |
-
|
145 |
-
$sidebar_list[$sidebar['id']] = $sidebar['name'];
|
146 |
}
|
147 |
-
|
148 |
// Meta fields
|
149 |
$this->metadata['exposure'] = array(
|
150 |
-
'name' => __('Exposure',
|
151 |
'id' => 'exposure',
|
152 |
'desc' => '',
|
153 |
'val' => 1,
|
154 |
'type' => 'select',
|
155 |
'list' => array(
|
156 |
-
__('Singular',
|
157 |
-
__('Singular & Archive',
|
158 |
-
__('Archive',
|
159 |
)
|
160 |
);
|
161 |
$this->metadata['handle'] = array(
|
162 |
-
'name' => _x('Handle','option',
|
163 |
'id' => 'handle',
|
164 |
-
'desc' => __('Replace host sidebar, merge with it or add sidebar manually.',
|
165 |
'val' => 0,
|
166 |
'type' => 'select',
|
167 |
'list' => array(
|
168 |
-
__('Replace',
|
169 |
-
__('Merge',
|
170 |
-
__('Manual',
|
171 |
)
|
172 |
);
|
173 |
$this->metadata['host'] = array(
|
174 |
-
'name' => __('Host Sidebar',
|
175 |
'id' => 'host',
|
176 |
'desc' => '',
|
177 |
'val' => 'sidebar-1',
|
@@ -179,165 +260,189 @@ final class ContentAwareSidebars {
|
|
179 |
'list' => $sidebar_list
|
180 |
);
|
181 |
$this->metadata['merge-pos'] = array(
|
182 |
-
'name' => __('Merge position',
|
183 |
'id' => 'merge-pos',
|
184 |
-
'desc' => __('Place sidebar on top or bottom of host when merging.',
|
185 |
'val' => 1,
|
186 |
'type' => 'select',
|
187 |
'list' => array(
|
188 |
-
__('Top',
|
189 |
-
__('Bottom',
|
190 |
)
|
191 |
);
|
192 |
|
193 |
}
|
194 |
|
195 |
/**
|
196 |
-
*
|
197 |
-
*
|
198 |
-
*
|
199 |
*/
|
200 |
public function init_sidebar_type() {
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
// Register the sidebar type
|
208 |
-
register_post_type(
|
209 |
'labels' => array(
|
210 |
-
'name' => __('Sidebars',
|
211 |
-
'singular_name' => __('Sidebar',
|
212 |
-
'add_new' => _x('Add New', 'sidebar',
|
213 |
-
'add_new_item' => __('Add New Sidebar',
|
214 |
-
'edit_item' => __('Edit Sidebar',
|
215 |
-
'new_item' => __('New Sidebar',
|
216 |
-
'all_items' => __('All Sidebars',
|
217 |
-
'view_item' => __('View Sidebar',
|
218 |
-
'search_items' => __('Search Sidebars',
|
219 |
-
'not_found' => __('No sidebars found',
|
220 |
-
'not_found_in_trash' => __('No sidebars found in Trash',
|
221 |
),
|
222 |
-
'capabilities'
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
230 |
),
|
231 |
-
'
|
|
|
|
|
232 |
'query_var' => false,
|
233 |
'rewrite' => false,
|
234 |
-
'
|
235 |
-
'supports' => array('title','page-attributes','excerpt'),
|
236 |
-
'taxonomies' => $this->taxonomies,
|
237 |
-
'menu_icon' => WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)).'/img/icon-16.png'
|
238 |
));
|
239 |
}
|
240 |
|
241 |
/**
|
242 |
-
*
|
243 |
* Create update messages
|
244 |
-
*
|
245 |
* @global object $post
|
246 |
-
* @param
|
247 |
-
* @return array
|
248 |
*/
|
249 |
public function sidebar_updated_messages( $messages ) {
|
250 |
-
|
251 |
-
$messages['sidebar'] = array(
|
252 |
0 => '',
|
253 |
-
1 =>
|
254 |
2 => '',
|
255 |
3 => '',
|
256 |
-
4 => __('Sidebar updated.',
|
257 |
5 => '',
|
258 |
-
6 =>
|
259 |
-
7 => __('Sidebar saved.',
|
260 |
-
8 =>
|
261 |
-
9 => sprintf(__('Sidebar scheduled for: <strong>%1$s</strong>. <a href="%2$s"
|
262 |
-
|
263 |
-
|
264 |
-
|
|
|
|
|
265 |
);
|
266 |
return $messages;
|
267 |
}
|
268 |
|
269 |
/**
|
270 |
-
*
|
271 |
-
*
|
272 |
-
*
|
273 |
*/
|
274 |
-
public function
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
|
|
|
|
|
|
284 |
}
|
285 |
}
|
286 |
|
287 |
/**
|
288 |
-
*
|
289 |
-
*
|
290 |
-
*
|
291 |
*/
|
292 |
-
public function
|
293 |
|
294 |
-
//
|
295 |
-
$
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
register_sidebar( array(
|
302 |
'name' => $post->post_title,
|
303 |
-
'description' => $
|
304 |
-
'id' =>
|
305 |
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
306 |
'after_widget' => '</li>',
|
307 |
'before_title' => '<h3 class="widget-title">',
|
308 |
'after_title' => '</h3>',
|
309 |
));
|
310 |
-
}
|
311 |
}
|
312 |
|
313 |
/**
|
314 |
-
*
|
315 |
* Add admin column headers
|
316 |
-
*
|
317 |
-
* @
|
318 |
-
* @return array
|
319 |
*/
|
320 |
public function admin_column_headers($columns) {
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
'merge-pos' => __('Merge position', 'content-aware-sidebars')
|
330 |
-
),
|
331 |
-
$columns
|
332 |
);
|
333 |
}
|
334 |
|
335 |
/**
|
336 |
-
*
|
337 |
* Make some columns sortable
|
338 |
-
*
|
339 |
-
* @
|
340 |
-
* @return array
|
341 |
*/
|
342 |
public function admin_column_sortable_headers($columns) {
|
343 |
return array_merge(
|
@@ -345,216 +450,215 @@ final class ContentAwareSidebars {
|
|
345 |
'exposure' => 'exposure',
|
346 |
'handle' => 'handle',
|
347 |
'merge-pos' => 'merge-pos'
|
348 |
-
),
|
349 |
-
$columns
|
350 |
);
|
351 |
}
|
352 |
|
353 |
/**
|
354 |
-
*
|
355 |
* Manage custom column sorting
|
356 |
-
*
|
357 |
-
* @param array $vars
|
358 |
* @return array
|
359 |
*/
|
360 |
public function admin_column_orderby($vars) {
|
361 |
-
if (isset($vars['orderby']) && in_array($vars['orderby'],array('exposure','handle','merge-pos'))) {
|
362 |
-
$vars = array_merge(
|
363 |
-
'meta_key'
|
364 |
-
'orderby'
|
365 |
-
)
|
366 |
}
|
367 |
return $vars;
|
368 |
}
|
369 |
|
370 |
/**
|
371 |
-
*
|
372 |
* Add admin column rows
|
373 |
-
*
|
374 |
-
* @param
|
375 |
-
* @
|
376 |
-
* @return void
|
377 |
*/
|
378 |
-
public function admin_column_rows($column_name
|
379 |
-
|
380 |
-
if(get_post_type($post_id) !=
|
381 |
return;
|
382 |
-
|
383 |
// Load metadata
|
384 |
-
if(!$this->metadata)
|
385 |
-
|
386 |
-
|
387 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
|
389 |
-
if($column_name == 'handle' && $current < 2) {
|
390 |
-
$host = get_post_meta($post_id,self::prefix.'host',true);
|
391 |
-
$current_from_list .= ": ".(isset($this->metadata['host']['list'][$host]) ? $this->metadata['host']['list'][$host] : '<span style="color:red;">'.__('Please update Host Sidebar','content-aware-sidebars').'</span>');
|
392 |
-
}
|
393 |
echo $current_from_list;
|
394 |
}
|
395 |
|
396 |
/**
|
397 |
-
*
|
398 |
* Remove widget when its sidebar is removed
|
399 |
-
*
|
400 |
-
* @
|
401 |
-
* @return void
|
402 |
*/
|
403 |
public function remove_sidebar_widgets($post_id) {
|
404 |
-
|
405 |
// Authenticate and only continue on sidebar post type
|
406 |
-
if(!current_user_can(
|
407 |
return;
|
408 |
-
|
409 |
-
$id =
|
410 |
-
|
411 |
//Get widgets
|
412 |
$sidebars_widgets = wp_get_sidebars_widgets();
|
413 |
-
|
414 |
// Check if sidebar exists in database
|
415 |
-
if(!isset($sidebars_widgets[$id]))
|
416 |
return;
|
417 |
-
|
418 |
// Remove widgets settings from sidebar
|
419 |
-
foreach($sidebars_widgets[$id] as $widget_id) {
|
420 |
-
$widget_type = preg_replace(
|
421 |
-
$widget_settings = get_option('widget_'
|
422 |
-
$widget_id = substr($widget_id,strpos($widget_id,'-')+1);
|
423 |
-
if($widget_settings && isset($widget_settings[$widget_id])) {
|
424 |
unset($widget_settings[$widget_id]);
|
425 |
-
update_option('widget_'
|
426 |
}
|
427 |
}
|
428 |
-
|
429 |
// Remove sidebar
|
430 |
unset($sidebars_widgets[$id]);
|
431 |
wp_set_sidebars_widgets($sidebars_widgets);
|
432 |
-
|
433 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
}
|
435 |
|
436 |
/**
|
437 |
-
*
|
438 |
* Add admin rows actions
|
439 |
-
*
|
440 |
-
* @param
|
441 |
-
* @
|
442 |
-
* @return array
|
443 |
*/
|
444 |
public function sidebar_row_actions($actions, $post) {
|
445 |
-
if($post->post_type ==
|
446 |
-
|
447 |
-
//
|
448 |
-
|
449 |
-
unset($actions['view']);
|
450 |
-
|
451 |
-
return array_merge(
|
452 |
-
array_slice($actions, 0, 2, true),
|
453 |
-
array(
|
454 |
-
'mng_widgets' => '<a href="widgets.php" title="'.esc_html(__( 'Manage Widgets','content-aware-sidebars')).'">'.__( 'Manage Widgets','content-aware-sidebars').'</a>'
|
455 |
-
),
|
456 |
-
$actions
|
457 |
-
);
|
458 |
}
|
459 |
return $actions;
|
460 |
}
|
461 |
|
462 |
/**
|
463 |
-
*
|
464 |
-
*
|
465 |
-
* Handles content aware sidebars with hosts
|
466 |
-
*
|
467 |
* @global array $_wp_sidebars_widgets
|
468 |
* @return void
|
469 |
*/
|
470 |
public function replace_sidebar() {
|
471 |
global $_wp_sidebars_widgets;
|
472 |
-
|
473 |
$posts = $this->get_sidebars();
|
474 |
-
if(!$posts)
|
475 |
return;
|
476 |
-
|
477 |
-
foreach($posts as $post) {
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
// $continue = apply_filters('cas_exclude_sidebar', $continue, $post, self::prefix);
|
483 |
-
// if($continue)
|
484 |
-
// continue;
|
485 |
-
// }
|
486 |
-
//
|
487 |
-
$id = 'ca-sidebar-'.$post->ID;
|
488 |
-
$host = get_post_meta($post->ID, self::prefix.'host', true);
|
489 |
-
|
490 |
// Check for correct handling and if host exist
|
491 |
if ($post->handle == 2 || !isset($_wp_sidebars_widgets[$host]))
|
492 |
continue;
|
493 |
-
|
494 |
// Sidebar might not have any widgets. Get it anyway!
|
495 |
-
if(!isset($_wp_sidebars_widgets[$id]))
|
496 |
$_wp_sidebars_widgets[$id] = array();
|
497 |
-
|
498 |
// If host has already been replaced, merge with it instead. Might change in future.
|
499 |
-
if($post->handle || isset($handled_already[$host])) {
|
500 |
-
if(get_post_meta($post->ID, self::
|
501 |
-
$_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$host]
|
502 |
else
|
503 |
-
$_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$id]
|
504 |
} else {
|
505 |
$_wp_sidebars_widgets[$host] = $_wp_sidebars_widgets[$id];
|
506 |
$handled_already[$host] = 1;
|
507 |
-
}
|
508 |
}
|
509 |
}
|
510 |
|
511 |
/**
|
512 |
-
*
|
513 |
* Show manually handled content aware sidebars
|
514 |
-
*
|
515 |
* @global array $_wp_sidebars_widgets
|
516 |
-
* @param
|
517 |
-
* @return void
|
518 |
*/
|
519 |
public function manual_sidebar($args) {
|
520 |
global $_wp_sidebars_widgets;
|
521 |
-
|
522 |
// Grab args or defaults
|
523 |
-
$args = wp_parse_args($args,array(
|
524 |
-
'include'
|
525 |
-
'before'
|
526 |
-
'after'
|
527 |
));
|
528 |
-
extract($args,EXTR_SKIP);
|
529 |
|
530 |
// Get sidebars
|
531 |
$posts = $this->get_sidebars();
|
532 |
-
if(!$posts)
|
533 |
return;
|
534 |
|
535 |
// Handle include argument
|
536 |
-
if(!empty($include)) {
|
537 |
-
if(!is_array($include))
|
538 |
-
$include = explode(','
|
539 |
// Fast lookup
|
540 |
$include = array_flip($include);
|
541 |
}
|
542 |
|
543 |
-
$i = $host = 0;
|
544 |
-
foreach($posts as $post) {
|
545 |
|
546 |
-
$id =
|
547 |
|
548 |
// Check for manual handling, if sidebar exists and if id should be included
|
549 |
if ($post->handle != 2 || !isset($_wp_sidebars_widgets[$id]) || (!empty($include) && !isset($include[$post->ID])))
|
550 |
continue;
|
551 |
|
552 |
// Merge if more than one. First one is host.
|
553 |
-
if($i > 0) {
|
554 |
-
if(get_post_meta($post->ID, self::
|
555 |
-
$_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$host]
|
556 |
else
|
557 |
-
$_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$id]
|
558 |
} else {
|
559 |
$host = $id;
|
560 |
}
|
@@ -567,11 +671,9 @@ final class ContentAwareSidebars {
|
|
567 |
echo $after;
|
568 |
}
|
569 |
}
|
570 |
-
|
571 |
/**
|
572 |
-
*
|
573 |
* Query sidebars according to content
|
574 |
-
*
|
575 |
* @global type $wpdb
|
576 |
* @return array|boolean
|
577 |
*/
|
@@ -588,412 +690,615 @@ final class ContentAwareSidebars {
|
|
588 |
else
|
589 |
return $this->sidebar_cache;
|
590 |
}
|
591 |
-
|
592 |
-
$
|
593 |
-
$
|
594 |
-
$where2 = array();
|
595 |
-
|
596 |
-
// Get rules
|
597 |
-
foreach($this->modules as $module) {
|
598 |
-
if(apply_filters("cas-is-content-".$module->get_id(), $module->is_content())) {
|
599 |
-
$joins[] = apply_filters("cas-db-join-".$module->get_id(), $module->db_join());
|
600 |
-
$where[] = apply_filters("cas-db-where-".$module->get_id(), $module->db_where());
|
601 |
-
$where2[] = $module->db_where2();
|
602 |
-
}
|
603 |
-
}
|
604 |
|
605 |
// Check if there are any rules for this type of content
|
606 |
-
if(empty($
|
607 |
return false;
|
608 |
|
609 |
-
|
610 |
-
$
|
611 |
-
|
|
|
|
|
|
|
|
|
612 |
SELECT
|
613 |
-
posts.ID,
|
614 |
-
handle.meta_value handle
|
615 |
FROM $wpdb->posts posts
|
616 |
-
|
617 |
-
ON handle.post_id = posts.ID
|
618 |
-
AND handle.meta_key = '".self::prefix."handle'
|
619 |
-
LEFT JOIN $wpdb->postmeta exposure
|
620 |
-
ON exposure.post_id = posts.ID
|
621 |
-
AND exposure.meta_key = '".self::prefix."exposure'
|
622 |
-
".implode(' ',$joins)."
|
623 |
WHERE
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
|
632 |
// Return proper cache. If query was empty, tell the cache.
|
633 |
return (empty($this->sidebar_cache) ? $this->sidebar_cache[0] = false : $this->sidebar_cache);
|
634 |
|
635 |
}
|
636 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
637 |
/**
|
638 |
-
*
|
639 |
* Meta boxes for sidebar edit
|
640 |
-
*
|
|
|
641 |
*/
|
642 |
public function create_meta_boxes() {
|
643 |
|
644 |
-
//
|
645 |
-
|
|
|
646 |
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
array(&$this,'meta_box_options'),
|
673 |
-
'sidebar',
|
674 |
-
'side'
|
675 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
676 |
}
|
677 |
|
678 |
-
|
679 |
/**
|
680 |
-
*
|
681 |
* Hide some meta boxes from start
|
682 |
-
*
|
683 |
-
* @param
|
684 |
-
* @param object $screen
|
685 |
* @return array
|
686 |
*/
|
687 |
-
public function change_default_hidden(
|
|
|
|
|
|
|
|
|
|
|
688 |
|
689 |
-
//WordPress 3.3 has changed get_hidden_meta_boxes().
|
690 |
-
if(get_bloginfo('version') < 3.3) {
|
691 |
-
$condition = $screen->base == 'sidebar';
|
692 |
-
} else {
|
693 |
-
$condition = $screen->post_type == 'sidebar';
|
694 |
-
}
|
695 |
-
|
696 |
-
if ($condition && get_user_option( 'metaboxhidden_sidebar' ) === false) {
|
697 |
-
|
698 |
-
$hidden_meta_boxes = array('postexcerpt','pageparentdiv');
|
699 |
-
$hidden = array_merge($hidden,$hidden_meta_boxes);
|
700 |
-
|
701 |
$user = wp_get_current_user();
|
702 |
-
update_user_option(
|
703 |
-
|
704 |
}
|
705 |
return $hidden;
|
706 |
}
|
707 |
-
|
|
|
|
|
|
|
|
|
708 |
public function meta_box_rules() {
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
echo '<div id="cas-
|
719 |
-
|
720 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
721 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
722 |
echo '</div>'."\n";
|
723 |
|
724 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
725 |
|
726 |
/**
|
727 |
-
*
|
728 |
-
*
|
729 |
-
*
|
730 |
*/
|
731 |
public function meta_box_options() {
|
732 |
-
|
733 |
$columns = array(
|
734 |
'exposure',
|
735 |
'handle' => 'handle,host',
|
736 |
'merge-pos'
|
737 |
);
|
738 |
-
|
739 |
-
foreach($columns as $key => $value) {
|
740 |
-
|
741 |
-
echo '<span>'
|
742 |
echo '<p>';
|
743 |
-
$values = explode(','
|
744 |
-
foreach($values as $val) {
|
745 |
$this->_form_field($val);
|
746 |
}
|
747 |
echo '</p></span>';
|
748 |
}
|
749 |
}
|
750 |
-
|
751 |
/**
|
752 |
-
*
|
753 |
-
*
|
754 |
-
*
|
755 |
*/
|
756 |
public function meta_box_author_words() {
|
757 |
-
|
758 |
-
// Use nonce for verification
|
759 |
-
wp_nonce_field(
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
776 |
<?php
|
777 |
}
|
778 |
-
|
779 |
/**
|
780 |
-
*
|
781 |
* Create form field for metadata
|
782 |
-
*
|
783 |
* @global object $post
|
784 |
-
* @param
|
|
|
785 |
*/
|
786 |
private function _form_field($setting) {
|
787 |
-
|
788 |
-
|
789 |
-
$meta = get_post_meta($post->ID, self::prefix.$setting, true);
|
790 |
$setting = $this->metadata[$setting];
|
791 |
$current = $meta != '' ? $meta : $setting['val'];
|
792 |
-
switch($setting['type']) {
|
793 |
-
case 'select' :
|
794 |
-
echo '<select style="width:250px;" name="'
|
795 |
-
foreach($setting['list'] as $key => $value) {
|
796 |
-
echo '<option value="'
|
797 |
}
|
798 |
-
echo '</select>'."\n";
|
799 |
break;
|
800 |
case 'checkbox' :
|
801 |
-
echo '<ul>'."\n";
|
802 |
-
foreach($setting['list'] as $key => $value) {
|
803 |
-
echo '<li><label><input type="checkbox" name="'
|
804 |
}
|
805 |
-
echo '</ul>'."\n";
|
806 |
break;
|
807 |
case 'text' :
|
808 |
default :
|
809 |
-
echo '<input style="width:200px;" type="text" name="'
|
810 |
break;
|
811 |
}
|
812 |
}
|
813 |
-
|
814 |
/**
|
815 |
-
*
|
816 |
* Save meta values for post
|
817 |
-
*
|
818 |
-
* @param int $post_id
|
819 |
* @return void
|
820 |
*/
|
821 |
public function save_post($post_id) {
|
822 |
-
|
823 |
// Save button pressed
|
824 |
-
if(!isset($_POST['original_publish']) && !isset($_POST['save_post']))
|
825 |
return;
|
826 |
-
|
827 |
// Only sidebar type
|
828 |
-
if(get_post_type($post_id) !=
|
829 |
-
return;
|
830 |
-
|
831 |
// Verify nonce
|
832 |
-
if (!check_admin_referer(
|
833 |
return;
|
834 |
-
|
835 |
// Check permissions
|
836 |
-
if (!current_user_can(
|
837 |
return;
|
838 |
-
|
839 |
// Check autosave
|
840 |
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
|
841 |
return;
|
842 |
-
|
843 |
// Load metadata
|
844 |
$this->_init_metadata();
|
845 |
-
|
846 |
// Update metadata
|
847 |
-
foreach ($this->metadata as $field) {
|
848 |
$new = isset($_POST[$field['id']]) ? $_POST[$field['id']] : '';
|
849 |
-
$old = get_post_meta($post_id, self::
|
850 |
-
|
851 |
-
if ($new != '' && $new != $old) {
|
852 |
-
update_post_meta($post_id, self::
|
853 |
} elseif ($new == '' && $old != '') {
|
854 |
-
delete_post_meta($post_id, self::
|
855 |
-
}
|
856 |
-
}
|
857 |
-
// Update module data
|
858 |
-
foreach ($this->modules as $module) {
|
859 |
-
$new = isset($_POST[$module->get_id()]) ? $_POST[$module->get_id()] : '';
|
860 |
-
$old = array_flip(get_post_meta($post_id, self::prefix.$module->get_id(), false));
|
861 |
-
|
862 |
-
if(is_array($new)) {
|
863 |
-
// Skip existing data or insert new data
|
864 |
-
foreach($new as $new_single) {
|
865 |
-
if(isset($old[$new_single])) {
|
866 |
-
unset($old[$new_single]);
|
867 |
-
} else {
|
868 |
-
add_post_meta($post_id, self::prefix.$module->get_id(), $new_single);
|
869 |
-
}
|
870 |
-
}
|
871 |
-
// Remove existing data that have not been skipped
|
872 |
-
foreach($old as $old_key => $old_value) {
|
873 |
-
delete_post_meta($post_id, self::prefix.$module->get_id(), $old_key);
|
874 |
-
}
|
875 |
-
} elseif(!empty($old)) {
|
876 |
-
// Remove any old values when $new is empty
|
877 |
-
delete_post_meta($post_id, self::prefix.$module->get_id());
|
878 |
}
|
879 |
}
|
880 |
}
|
881 |
-
|
882 |
-
/**
|
883 |
-
*
|
884 |
-
* @param int $term_id
|
885 |
-
* @param int $tt_id
|
886 |
-
* @param string $taxonomy
|
887 |
-
* @return void
|
888 |
-
*/
|
889 |
-
public function term_ancestry_check($term_id, $tt_id, $taxonomy) {
|
890 |
-
|
891 |
-
if(is_taxonomy_hierarchical($taxonomy)) {
|
892 |
-
$term = get_term($term_id, $taxonomy);
|
893 |
-
//var_dump($term);
|
894 |
-
}
|
895 |
-
|
896 |
-
// Save button pressed
|
897 |
-
// if(!isset($_POST['original_publish']) && !isset($_POST['save_post']))
|
898 |
-
// return;
|
899 |
-
//
|
900 |
-
// // Check autosave
|
901 |
-
// if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
|
902 |
-
// return;
|
903 |
-
|
904 |
-
//$post = get_post($post_id);
|
905 |
-
|
906 |
-
// Only other types than sidebar
|
907 |
-
// if(get_post_type($post_id) == 'sidebar')
|
908 |
-
// return;
|
909 |
-
|
910 |
-
|
911 |
|
912 |
-
}
|
913 |
-
|
914 |
/**
|
915 |
-
*
|
916 |
* Database data update module
|
917 |
-
*
|
918 |
*/
|
919 |
public function db_update() {
|
920 |
-
cas_run_db_update(self::
|
921 |
}
|
922 |
-
|
923 |
/**
|
924 |
-
*
|
925 |
* Load scripts and styles for administration
|
926 |
-
*
|
927 |
-
* @
|
928 |
*/
|
929 |
public function load_admin_scripts($hook) {
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
if($hook == 'post.php' || $hook == 'post-new.php') {
|
935 |
-
// WordPress < 3.3 does not have jQuery UI accordion
|
936 |
-
if(get_bloginfo('version') < 3.3) {
|
937 |
-
wp_register_script('cas-jquery-ui-accordion', WP_PLUGIN_URL.'/'.plugin_basename(dirname(__FILE__)).'/js/jquery.ui.accordion.js', array('jquery-ui-core','jquery-ui-widget'), '1.8.9', true);
|
938 |
-
wp_enqueue_script('cas-jquery-ui-accordion');
|
939 |
-
} else {
|
940 |
-
wp_enqueue_script('jquery-ui-accordion');
|
941 |
-
}
|
942 |
-
wp_enqueue_script('cas_admin_script');
|
943 |
|
944 |
-
|
945 |
-
|
946 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
947 |
}
|
948 |
-
|
949 |
}
|
950 |
|
951 |
/**
|
952 |
-
*
|
953 |
* Load dependencies
|
954 |
-
*
|
955 |
*/
|
956 |
private function _load_dependencies() {
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
}
|
963 |
-
|
964 |
-
/**
|
965 |
-
*
|
966 |
-
* Flush rewrite rules on plugin activation
|
967 |
-
*
|
968 |
-
*/
|
969 |
-
public function plugin_activation() {
|
970 |
-
$this->init_sidebar_type();
|
971 |
-
flush_rewrite_rules();
|
972 |
-
}
|
973 |
-
|
974 |
-
/**
|
975 |
-
*
|
976 |
-
* Flush rewrite rules on plugin deactivation
|
977 |
-
*
|
978 |
-
*/
|
979 |
-
public function plugin_deactivation() {
|
980 |
-
flush_rewrite_rules();
|
981 |
}
|
982 |
-
|
983 |
}
|
984 |
|
985 |
// Launch plugin
|
986 |
-
|
987 |
-
$ca_sidebars = new ContentAwareSidebars();
|
988 |
|
989 |
/**
|
990 |
-
*
|
991 |
-
*
|
992 |
-
*
|
993 |
-
* @global object $ca_sidebars
|
994 |
-
* @param array|string $args
|
995 |
*/
|
996 |
function display_ca_sidebar($args = array()) {
|
997 |
-
|
998 |
-
$ca_sidebars->manual_sidebar($args);
|
999 |
}
|
|
|
|
7 |
Plugin Name: Content Aware Sidebars
|
8 |
Plugin URI: http://www.intox.dk/
|
9 |
Description: Manage and show sidebars according to the content being viewed.
|
10 |
+
Version: 2.1
|
11 |
+
Author: Joachim Jensen, Intox Studio
|
12 |
Author URI: http://www.intox.dk/
|
13 |
Text Domain: content-aware-sidebars
|
14 |
Domain Path: /lang/
|
15 |
+
License: GPLv3
|
16 |
|
17 |
+
Content Aware Sidebars Plugin
|
18 |
+
Copyright (C) 2011-2014 Joachim Jensen - jv@intox.dk
|
19 |
|
20 |
+
This program is free software: you can redistribute it and/or modify
|
21 |
+
it under the terms of the GNU General Public License as published by
|
22 |
+
the Free Software Foundation, either version 3 of the License, or
|
23 |
+
(at your option) any later version.
|
24 |
|
25 |
+
This program is distributed in the hope that it will be useful,
|
26 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
27 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
28 |
+
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
29 |
|
30 |
+
You should have received a copy of the GNU General Public License
|
31 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
32 |
*/
|
33 |
|
34 |
final class ContentAwareSidebars {
|
35 |
|
36 |
+
/**
|
37 |
+
* Database version for update module
|
38 |
+
*/
|
39 |
+
const DB_VERSION = '2.0';
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Plugin version
|
43 |
+
*/
|
44 |
+
const PLUGIN_VERSION = '2.0.3';
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Prefix for data (keys) stored in database
|
48 |
+
*/
|
49 |
+
const PREFIX = '_cas_';
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Prefix for sidebar id
|
53 |
+
*/
|
54 |
+
const SIDEBAR_PREFIX = 'ca-sidebar-';
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Post Type for sidebars
|
58 |
+
*/
|
59 |
+
const TYPE_SIDEBAR = 'sidebar';
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Post Type for sidebar groups
|
63 |
+
*/
|
64 |
+
const TYPE_CONDITION_GROUP = 'sidebar_group';
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Language domain
|
68 |
+
*/
|
69 |
+
const DOMAIN = 'content-aware-sidebars';
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Capability to manage sidebars
|
73 |
+
*/
|
74 |
+
const CAPABILITY = 'edit_theme_options';
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Sidebar metadata
|
78 |
+
* @var array
|
79 |
+
*/
|
80 |
private $metadata = array();
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Store all sidebars here
|
84 |
+
* @var array
|
85 |
+
*/
|
86 |
+
private $sidebars = array();
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Sidebars retrieved from database
|
90 |
+
* @var array
|
91 |
+
*/
|
92 |
private $sidebar_cache = array();
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Modules for specific content or cases
|
96 |
+
* @var array
|
97 |
+
*/
|
98 |
private $modules = array();
|
99 |
|
100 |
/**
|
101 |
+
* Instance of class
|
102 |
+
* @var ContentAwareSidebars
|
103 |
+
*/
|
104 |
+
private static $_instance;
|
105 |
+
|
106 |
+
/**
|
107 |
* Constructor
|
|
|
108 |
*/
|
109 |
public function __construct() {
|
110 |
+
|
111 |
+
//__('Manage and show sidebars according to the content being viewed.',self::DOMAIN);
|
112 |
+
//__('Content Aware Sidebars',self::DOMAIN);
|
|
|
|
|
113 |
|
114 |
$this->_load_dependencies();
|
115 |
+
|
116 |
// WordPress Hooks. Somewhat ordered by execution
|
117 |
|
118 |
+
//For administration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
if(is_admin()) {
|
|
|
120 |
|
121 |
+
add_action('wp_loaded', array(&$this,'db_update'));
|
122 |
+
add_action('admin_enqueue_scripts', array(&$this,'load_admin_scripts'));
|
123 |
+
add_action('delete_post', array(&$this,'remove_sidebar_widgets'));
|
124 |
+
add_action('delete_post', array(&$this,'cascade_sidebar_delete'));
|
125 |
+
add_action('save_post', array(&$this,'save_post'));
|
126 |
+
add_action('add_meta_boxes_'.self::TYPE_SIDEBAR, array(&$this,'create_meta_boxes'));
|
127 |
+
add_action('in_admin_header', array(&$this,'clear_admin_menu'),99);
|
128 |
+
|
129 |
+
add_action('transition_post_status', array(&$this,'cascade_sidebar_status'),10,3);
|
130 |
+
|
131 |
+
add_filter('request', array(&$this,'admin_column_orderby'));
|
132 |
+
add_filter('default_hidden_meta_boxes', array(&$this,'change_default_hidden'),10,2);
|
133 |
+
add_filter('manage_edit-'.self::TYPE_SIDEBAR.'_columns', array(&$this,'admin_column_headers'),99);
|
134 |
+
add_filter('manage_edit-'.self::TYPE_SIDEBAR.'_sortable_columns',array(&$this,'admin_column_sortable_headers'));
|
135 |
+
add_filter('manage_posts_custom_column', array(&$this,'admin_column_rows'),10,3);
|
136 |
+
add_filter('post_row_actions', array(&$this,'sidebar_row_actions'),10,2);
|
137 |
+
add_filter('post_updated_messages', array(&$this,'sidebar_updated_messages'));
|
138 |
+
|
139 |
+
add_action('wp_ajax_cas_add_rule', array(&$this,'add_sidebar_rule_ajax'));
|
140 |
+
add_action('wp_ajax_cas_remove_group', array(&$this,'remove_sidebar_group_ajax'));
|
141 |
+
|
142 |
+
//For frontend
|
143 |
} else {
|
144 |
+
|
145 |
+
add_filter('wp', array(&$this,'replace_sidebar'));
|
146 |
+
|
147 |
}
|
148 |
+
|
149 |
+
//For both
|
150 |
+
add_action('init', array(&$this,'deploy_modules'));
|
151 |
+
add_action('init', array(&$this,'init_sidebar_type'),99);
|
152 |
+
add_action('widgets_init', array(&$this,'create_sidebars'),99);
|
153 |
+
add_action('wp_loaded', array(&$this,'update_sidebars'),99);
|
154 |
|
155 |
}
|
156 |
+
|
157 |
+
/**
|
158 |
+
* Instantiates and returns class singleton
|
159 |
+
* @return ContentAwareSidebars
|
160 |
+
*/
|
161 |
+
public static function instance() {
|
162 |
+
if(!self::$_instance) {
|
163 |
+
self::$_instance = new self();
|
164 |
+
}
|
165 |
+
return self::$_instance;
|
166 |
+
}
|
167 |
|
168 |
/**
|
|
|
169 |
* Deploy modules
|
170 |
+
* @return void
|
171 |
*/
|
172 |
public function deploy_modules() {
|
173 |
+
|
174 |
+
load_plugin_textdomain(self::DOMAIN, false, dirname(plugin_basename(__FILE__)).'/lang/');
|
175 |
|
176 |
+
// List builtin modules
|
|
|
|
|
177 |
$modules = array(
|
178 |
+
'static' => true,
|
179 |
+
'post_type' => true,
|
180 |
+
'author' => true,
|
181 |
+
'page_template' => true,
|
182 |
+
'taxonomy' => true,
|
183 |
+
'url' => false,
|
184 |
+
'bbpress' => function_exists('bbp_get_version'), // bbPress
|
185 |
+
'bp_member' => defined('BP_VERSION'), // BuddyPress
|
186 |
+
'polylang' => defined('POLYLANG_VERSION'), // Polylang
|
187 |
+
'qtranslate' => defined('QT_SUPPORTED_WP_VERSION'), // qTranslate
|
188 |
+
'transposh' => defined('TRANSPOSH_PLUGIN_VER'), // Transposh Translation Filter
|
189 |
+
'wpml' => class_exists('SitePress') // WPML Multilingual Blog/CMS
|
190 |
);
|
191 |
+
//Let developers remove builtin modules or add their own
|
192 |
+
$modules = apply_filters('cas-module-pre-deploy',$modules);
|
193 |
|
194 |
// Forge modules
|
195 |
foreach($modules as $name => $enabled) {
|
196 |
+
if($enabled) {
|
197 |
+
if(is_bool($enabled) && include('modules/'.$name .'.php')) {
|
198 |
+
$class = 'CASModule_'.$name;
|
199 |
+
$obj = new $class;
|
200 |
+
} else if(class_exists((string)$enabled)) {
|
201 |
+
$obj = new $enabled;
|
202 |
+
if(!($obj instanceof CASModule)) {
|
203 |
+
continue;
|
204 |
+
}
|
205 |
+
} else {
|
206 |
+
continue;
|
207 |
+
}
|
208 |
+
|
209 |
+
$this->modules[$obj->get_id()] = $obj;
|
210 |
}
|
211 |
}
|
212 |
|
213 |
}
|
214 |
|
215 |
/**
|
|
|
216 |
* Create post meta fields
|
|
|
|
|
217 |
* @global array $wp_registered_sidebars
|
218 |
+
* @return void
|
219 |
*/
|
220 |
private function _init_metadata() {
|
221 |
+
global $wp_registered_sidebars;
|
222 |
+
|
223 |
// List of sidebars
|
224 |
$sidebar_list = array();
|
225 |
foreach($wp_registered_sidebars as $sidebar) {
|
226 |
+
$sidebar_list[$sidebar['id']] = $sidebar['name'];
|
|
|
227 |
}
|
228 |
+
|
229 |
// Meta fields
|
230 |
$this->metadata['exposure'] = array(
|
231 |
+
'name' => __('Exposure', self::DOMAIN),
|
232 |
'id' => 'exposure',
|
233 |
'desc' => '',
|
234 |
'val' => 1,
|
235 |
'type' => 'select',
|
236 |
'list' => array(
|
237 |
+
__('Singular', self::DOMAIN),
|
238 |
+
__('Singular & Archive', self::DOMAIN),
|
239 |
+
__('Archive', self::DOMAIN)
|
240 |
)
|
241 |
);
|
242 |
$this->metadata['handle'] = array(
|
243 |
+
'name' => _x('Handle','option', self::DOMAIN),
|
244 |
'id' => 'handle',
|
245 |
+
'desc' => __('Replace host sidebar, merge with it or add sidebar manually.', self::DOMAIN),
|
246 |
'val' => 0,
|
247 |
'type' => 'select',
|
248 |
'list' => array(
|
249 |
+
__('Replace', self::DOMAIN),
|
250 |
+
__('Merge', self::DOMAIN),
|
251 |
+
__('Manual', self::DOMAIN)
|
252 |
)
|
253 |
);
|
254 |
$this->metadata['host'] = array(
|
255 |
+
'name' => __('Host Sidebar', self::DOMAIN),
|
256 |
'id' => 'host',
|
257 |
'desc' => '',
|
258 |
'val' => 'sidebar-1',
|
260 |
'list' => $sidebar_list
|
261 |
);
|
262 |
$this->metadata['merge-pos'] = array(
|
263 |
+
'name' => __('Merge position', self::DOMAIN),
|
264 |
'id' => 'merge-pos',
|
265 |
+
'desc' => __('Place sidebar on top or bottom of host when merging.', self::DOMAIN),
|
266 |
'val' => 1,
|
267 |
'type' => 'select',
|
268 |
'list' => array(
|
269 |
+
__('Top', self::DOMAIN),
|
270 |
+
__('Bottom', self::DOMAIN)
|
271 |
)
|
272 |
);
|
273 |
|
274 |
}
|
275 |
|
276 |
/**
|
277 |
+
* Create sidebar post type and filter group post type
|
278 |
+
* @return void
|
|
|
279 |
*/
|
280 |
public function init_sidebar_type() {
|
281 |
+
|
282 |
+
$capabilities = array(
|
283 |
+
'edit_post' => self::CAPABILITY,
|
284 |
+
'read_post' => self::CAPABILITY,
|
285 |
+
'delete_post' => self::CAPABILITY,
|
286 |
+
'edit_posts' => self::CAPABILITY,
|
287 |
+
'edit_others_posts' => self::CAPABILITY,
|
288 |
+
'publish_posts' => self::CAPABILITY,
|
289 |
+
'read_private_posts' => self::CAPABILITY
|
290 |
+
);
|
291 |
|
292 |
// Register the sidebar type
|
293 |
+
register_post_type(self::TYPE_SIDEBAR,array(
|
294 |
'labels' => array(
|
295 |
+
'name' => __('Sidebars', self::DOMAIN),
|
296 |
+
'singular_name' => __('Sidebar', self::DOMAIN),
|
297 |
+
'add_new' => _x('Add New', 'sidebar', self::DOMAIN),
|
298 |
+
'add_new_item' => __('Add New Sidebar', self::DOMAIN),
|
299 |
+
'edit_item' => __('Edit Sidebar', self::DOMAIN),
|
300 |
+
'new_item' => __('New Sidebar', self::DOMAIN),
|
301 |
+
'all_items' => __('All Sidebars', self::DOMAIN),
|
302 |
+
'view_item' => __('View Sidebar', self::DOMAIN),
|
303 |
+
'search_items' => __('Search Sidebars', self::DOMAIN),
|
304 |
+
'not_found' => __('No sidebars found', self::DOMAIN),
|
305 |
+
'not_found_in_trash' => __('No sidebars found in Trash', self::DOMAIN)
|
306 |
),
|
307 |
+
'capabilities' => $capabilities,
|
308 |
+
'show_ui' => true,
|
309 |
+
'show_in_menu' => true, //current_user_can(self::CAPABILITY),
|
310 |
+
'query_var' => false,
|
311 |
+
'rewrite' => false,
|
312 |
+
'menu_position' => 25.099, //less probable to be overwritten
|
313 |
+
'supports' => array('title','page-attributes'),
|
314 |
+
'menu_icon' => plugins_url('/img/icon-16.png', __FILE__ )
|
315 |
+
));
|
316 |
+
|
317 |
+
// Register the condition group type
|
318 |
+
register_post_type(self::TYPE_CONDITION_GROUP,array(
|
319 |
+
'labels' => array(
|
320 |
+
'name' => __('Condition Groups', self::DOMAIN),
|
321 |
+
'singular_name' => __('Condition Group', self::DOMAIN),
|
322 |
+
'add_new' => _x('Add New', 'group', self::DOMAIN),
|
323 |
+
'add_new_item' => __('Add New Group', self::DOMAIN),
|
324 |
+
'edit_item' => _x('Edit', 'group', self::DOMAIN),
|
325 |
+
'new_item' => '',
|
326 |
+
'all_items' => '',
|
327 |
+
'view_item' => '',
|
328 |
+
'search_items' => '',
|
329 |
+
'not_found' => '',
|
330 |
+
'not_found_in_trash' => ''
|
331 |
),
|
332 |
+
'capabilities' => $capabilities,
|
333 |
+
'show_ui' => false,
|
334 |
+
'show_in_menu' => false,
|
335 |
'query_var' => false,
|
336 |
'rewrite' => false,
|
337 |
+
'supports' => array('author'), //prevents fallback
|
|
|
|
|
|
|
338 |
));
|
339 |
}
|
340 |
|
341 |
/**
|
|
|
342 |
* Create update messages
|
|
|
343 |
* @global object $post
|
344 |
+
* @param array $messages
|
345 |
+
* @return array
|
346 |
*/
|
347 |
public function sidebar_updated_messages( $messages ) {
|
348 |
+
$messages[self::TYPE_SIDEBAR] = array(
|
|
|
349 |
0 => '',
|
350 |
+
1 => __('Sidebar updated.',self::DOMAIN).sprintf(' <a href="%1$s">%2$s</a>','widgets.php',__('Manage widgets',self::DOMAIN)),
|
351 |
2 => '',
|
352 |
3 => '',
|
353 |
+
4 => __('Sidebar updated.',self::DOMAIN),
|
354 |
5 => '',
|
355 |
+
6 => __('Sidebar published.',self::DOMAIN).sprintf(' <a href="%1$s">%2$s</a>','widgets.php',__('Manage widgets',self::DOMAIN)),
|
356 |
+
7 => __('Sidebar saved.',self::DOMAIN),
|
357 |
+
8 => __('Sidebar submitted.',self::DOMAIN).sprintf(' <a href="%1$s">%2$s</a>','widgets.php',__('Manage widgets',self::DOMAIN)),
|
358 |
+
9 => sprintf(__('Sidebar scheduled for: <strong>%1$s</strong>.',self::DOMAIN).' <a href="%2$s">%3$s</a>',
|
359 |
+
// translators: Publish box date format, see http://php.net/date
|
360 |
+
date_i18n(__('M j, Y @ G:i'),strtotime(get_the_ID())),
|
361 |
+
'widgets.php',
|
362 |
+
__('Manage widgets',self::DOMAIN)),
|
363 |
+
10 => __('Sidebar draft updated.',self::DOMAIN),
|
364 |
);
|
365 |
return $messages;
|
366 |
}
|
367 |
|
368 |
/**
|
369 |
+
* Add sidebars to widgets area
|
370 |
+
* Triggered in widgets_init to save location for each theme
|
371 |
+
* @return void
|
372 |
*/
|
373 |
+
public function create_sidebars() {
|
374 |
+
$this->sidebars = get_posts(array(
|
375 |
+
'numberposts' => -1,
|
376 |
+
'post_type' => self::TYPE_SIDEBAR,
|
377 |
+
'post_status' => array('publish','private','future')
|
378 |
+
));
|
379 |
+
|
380 |
+
//Register sidebars to add them to the list
|
381 |
+
foreach($this->sidebars as $post) {
|
382 |
+
register_sidebar( array(
|
383 |
+
'name' => $post->post_title,
|
384 |
+
'id' => self::SIDEBAR_PREFIX.$post->ID
|
385 |
+
));
|
386 |
}
|
387 |
}
|
388 |
|
389 |
/**
|
390 |
+
* Update the created sidebars with metadata
|
391 |
+
* @return void
|
|
|
392 |
*/
|
393 |
+
public function update_sidebars() {
|
394 |
|
395 |
+
//Init metadata
|
396 |
+
$this->_init_metadata();
|
397 |
+
|
398 |
+
//Now reregister sidebars with proper content
|
399 |
+
foreach($this->sidebars as $post) {
|
400 |
+
|
401 |
+
$handle = get_post_meta($post->ID,self::PREFIX . 'handle', true);
|
402 |
+
//$handle = $post->{self::PREFIX . 'handle'};
|
403 |
+
if(!isset($this->metadata['handle']['list'][$handle])) {
|
404 |
+
continue;
|
405 |
+
}
|
406 |
+
|
407 |
+
$desc = $this->metadata['handle']['list'][$handle];
|
408 |
+
|
409 |
+
if ($handle < 2) {
|
410 |
+
$host = get_post_meta($post->ID, self::PREFIX . 'host', true);
|
411 |
+
$desc .= ": " . (isset($this->metadata['host']['list'][$host]) ? $this->metadata['host']['list'][$host] : __('Please update Host Sidebar', self::DOMAIN) );
|
412 |
+
}
|
413 |
register_sidebar( array(
|
414 |
'name' => $post->post_title,
|
415 |
+
'description' => $desc,
|
416 |
+
'id' => self::SIDEBAR_PREFIX.$post->ID,
|
417 |
'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
|
418 |
'after_widget' => '</li>',
|
419 |
'before_title' => '<h3 class="widget-title">',
|
420 |
'after_title' => '</h3>',
|
421 |
));
|
422 |
+
}
|
423 |
}
|
424 |
|
425 |
/**
|
|
|
426 |
* Add admin column headers
|
427 |
+
* @param array $columns
|
428 |
+
* @return array
|
|
|
429 |
*/
|
430 |
public function admin_column_headers($columns) {
|
431 |
+
// Totally discard current columns and rebuild
|
432 |
+
return array(
|
433 |
+
'cb' => $columns['cb'],
|
434 |
+
'title' => $columns['title'],
|
435 |
+
'exposure' => __('Exposure', self::DOMAIN),
|
436 |
+
'handle' => _x('Handle','option', self::DOMAIN),
|
437 |
+
'merge-pos' => __('Merge position', self::DOMAIN),
|
438 |
+
'date' => $columns['date']
|
|
|
|
|
|
|
439 |
);
|
440 |
}
|
441 |
|
442 |
/**
|
|
|
443 |
* Make some columns sortable
|
444 |
+
* @param array $columns
|
445 |
+
* @return array
|
|
|
446 |
*/
|
447 |
public function admin_column_sortable_headers($columns) {
|
448 |
return array_merge(
|
450 |
'exposure' => 'exposure',
|
451 |
'handle' => 'handle',
|
452 |
'merge-pos' => 'merge-pos'
|
453 |
+
), $columns
|
|
|
454 |
);
|
455 |
}
|
456 |
|
457 |
/**
|
|
|
458 |
* Manage custom column sorting
|
459 |
+
* @param array $vars
|
|
|
460 |
* @return array
|
461 |
*/
|
462 |
public function admin_column_orderby($vars) {
|
463 |
+
if (isset($vars['orderby']) && in_array($vars['orderby'], array('exposure', 'handle', 'merge-pos'))) {
|
464 |
+
$vars = array_merge($vars, array(
|
465 |
+
'meta_key' => self::PREFIX . $vars['orderby'],
|
466 |
+
'orderby' => 'meta_value'
|
467 |
+
));
|
468 |
}
|
469 |
return $vars;
|
470 |
}
|
471 |
|
472 |
/**
|
|
|
473 |
* Add admin column rows
|
474 |
+
* @param string $column_name
|
475 |
+
* @param int $post_id
|
476 |
+
* @return void
|
|
|
477 |
*/
|
478 |
+
public function admin_column_rows($column_name, $post_id) {
|
479 |
+
|
480 |
+
if (get_post_type($post_id) != self::TYPE_SIDEBAR)
|
481 |
return;
|
482 |
+
|
483 |
// Load metadata
|
484 |
+
if (!$this->metadata)
|
485 |
+
$this->_init_metadata();
|
486 |
+
|
487 |
+
$current = get_post_meta($post_id, self::PREFIX . $column_name, true);
|
488 |
+
$current_from_list = "";
|
489 |
+
|
490 |
+
if(isset($this->metadata[$column_name]['list'][$current])) {
|
491 |
+
|
492 |
+
$current_from_list = $this->metadata[$column_name]['list'][$current];
|
493 |
+
|
494 |
+
if ($column_name == 'handle' && $current < 2) {
|
495 |
+
$host = get_post_meta($post_id, self::PREFIX . 'host', true);
|
496 |
+
$current_from_list .= ": " . (isset($this->metadata['host']['list'][$host]) ? $this->metadata['host']['list'][$host] : '<span style="color:red;">' . __('Please update Host Sidebar', self::DOMAIN) . '</span>');
|
497 |
+
}
|
498 |
+
|
499 |
+
}
|
500 |
|
|
|
|
|
|
|
|
|
501 |
echo $current_from_list;
|
502 |
}
|
503 |
|
504 |
/**
|
|
|
505 |
* Remove widget when its sidebar is removed
|
506 |
+
* @param int $post_id
|
507 |
+
* @return void
|
|
|
508 |
*/
|
509 |
public function remove_sidebar_widgets($post_id) {
|
510 |
+
|
511 |
// Authenticate and only continue on sidebar post type
|
512 |
+
if (!current_user_can(self::CAPABILITY) || get_post_type($post_id) != self::TYPE_SIDEBAR)
|
513 |
return;
|
514 |
+
|
515 |
+
$id = self::SIDEBAR_PREFIX . $post_id;
|
516 |
+
|
517 |
//Get widgets
|
518 |
$sidebars_widgets = wp_get_sidebars_widgets();
|
519 |
+
|
520 |
// Check if sidebar exists in database
|
521 |
+
if (!isset($sidebars_widgets[$id]))
|
522 |
return;
|
523 |
+
|
524 |
// Remove widgets settings from sidebar
|
525 |
+
foreach ($sidebars_widgets[$id] as $widget_id) {
|
526 |
+
$widget_type = preg_replace('/-[0-9]+$/', '', $widget_id);
|
527 |
+
$widget_settings = get_option('widget_' . $widget_type);
|
528 |
+
$widget_id = substr($widget_id, strpos($widget_id, '-') + 1);
|
529 |
+
if ($widget_settings && isset($widget_settings[$widget_id])) {
|
530 |
unset($widget_settings[$widget_id]);
|
531 |
+
update_option('widget_' . $widget_type, $widget_settings);
|
532 |
}
|
533 |
}
|
534 |
+
|
535 |
// Remove sidebar
|
536 |
unset($sidebars_widgets[$id]);
|
537 |
wp_set_sidebars_widgets($sidebars_widgets);
|
538 |
+
}
|
539 |
+
|
540 |
+
/**
|
541 |
+
* Delete condition groups for
|
542 |
+
* a sidebar that is deleted
|
543 |
+
* @author Joachim Jensen <jv@intox.dk>
|
544 |
+
* @since 2.0
|
545 |
+
* @param int $post_id
|
546 |
+
* @return void
|
547 |
+
*/
|
548 |
+
public function cascade_sidebar_delete($post_id) {
|
549 |
+
|
550 |
+
// Authenticate and only continue on sidebar post type
|
551 |
+
if (!current_user_can(self::CAPABILITY) || get_post_type($post_id) != self::TYPE_SIDEBAR)
|
552 |
+
return;
|
553 |
+
|
554 |
+
global $wpdb;
|
555 |
+
$groups = (array)$wpdb->get_col($wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE post_parent = '%d'", $post_id));
|
556 |
+
foreach($groups as $group_id) {
|
557 |
+
//Takes care of metadata and terms too
|
558 |
+
wp_delete_post($group_id,true);
|
559 |
+
}
|
560 |
+
|
561 |
}
|
562 |
|
563 |
/**
|
|
|
564 |
* Add admin rows actions
|
565 |
+
* @param array $actions
|
566 |
+
* @param WP_Post $post
|
567 |
+
* @return array
|
|
|
568 |
*/
|
569 |
public function sidebar_row_actions($actions, $post) {
|
570 |
+
if ($post->post_type == self::TYPE_SIDEBAR && $post->post_status != 'trash') {
|
571 |
+
$new_actions['mng_widgets'] = '<a href="widgets.php" title="' . esc_attr__('Manage Widgets', self::DOMAIN) . '">' . __('Manage Widgets', self::DOMAIN) . '</a>';
|
572 |
+
//Append new actions just before trash action
|
573 |
+
array_splice($actions, -1, 0, $new_actions);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
}
|
575 |
return $actions;
|
576 |
}
|
577 |
|
578 |
/**
|
579 |
+
* Replace or merge a sidebar with content aware sidebars.
|
580 |
+
* Handles sidebars with hosts
|
|
|
|
|
581 |
* @global array $_wp_sidebars_widgets
|
582 |
* @return void
|
583 |
*/
|
584 |
public function replace_sidebar() {
|
585 |
global $_wp_sidebars_widgets;
|
586 |
+
|
587 |
$posts = $this->get_sidebars();
|
588 |
+
if (!$posts)
|
589 |
return;
|
590 |
+
|
591 |
+
foreach ($posts as $post) {
|
592 |
+
|
593 |
+
$id = self::SIDEBAR_PREFIX . $post->ID;
|
594 |
+
$host = get_post_meta($post->ID, self::PREFIX . 'host', true);
|
595 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
596 |
// Check for correct handling and if host exist
|
597 |
if ($post->handle == 2 || !isset($_wp_sidebars_widgets[$host]))
|
598 |
continue;
|
599 |
+
|
600 |
// Sidebar might not have any widgets. Get it anyway!
|
601 |
+
if (!isset($_wp_sidebars_widgets[$id]))
|
602 |
$_wp_sidebars_widgets[$id] = array();
|
603 |
+
|
604 |
// If host has already been replaced, merge with it instead. Might change in future.
|
605 |
+
if ($post->handle || isset($handled_already[$host])) {
|
606 |
+
if (get_post_meta($post->ID, self::PREFIX . 'merge-pos', true))
|
607 |
+
$_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$host], $_wp_sidebars_widgets[$id]);
|
608 |
else
|
609 |
+
$_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$id], $_wp_sidebars_widgets[$host]);
|
610 |
} else {
|
611 |
$_wp_sidebars_widgets[$host] = $_wp_sidebars_widgets[$id];
|
612 |
$handled_already[$host] = 1;
|
613 |
+
}
|
614 |
}
|
615 |
}
|
616 |
|
617 |
/**
|
|
|
618 |
* Show manually handled content aware sidebars
|
|
|
619 |
* @global array $_wp_sidebars_widgets
|
620 |
+
* @param string|array $args
|
621 |
+
* @return void
|
622 |
*/
|
623 |
public function manual_sidebar($args) {
|
624 |
global $_wp_sidebars_widgets;
|
625 |
+
|
626 |
// Grab args or defaults
|
627 |
+
$args = wp_parse_args($args, array(
|
628 |
+
'include' => '',
|
629 |
+
'before' => '<div id="sidebar" class="widget-area"><ul class="xoxo">',
|
630 |
+
'after' => '</ul></div>'
|
631 |
));
|
632 |
+
extract($args, EXTR_SKIP);
|
633 |
|
634 |
// Get sidebars
|
635 |
$posts = $this->get_sidebars();
|
636 |
+
if (!$posts)
|
637 |
return;
|
638 |
|
639 |
// Handle include argument
|
640 |
+
if (!empty($include)) {
|
641 |
+
if (!is_array($include))
|
642 |
+
$include = explode(',', $include);
|
643 |
// Fast lookup
|
644 |
$include = array_flip($include);
|
645 |
}
|
646 |
|
647 |
+
$i = $host = 0;
|
648 |
+
foreach ($posts as $post) {
|
649 |
|
650 |
+
$id = self::SIDEBAR_PREFIX . $post->ID;
|
651 |
|
652 |
// Check for manual handling, if sidebar exists and if id should be included
|
653 |
if ($post->handle != 2 || !isset($_wp_sidebars_widgets[$id]) || (!empty($include) && !isset($include[$post->ID])))
|
654 |
continue;
|
655 |
|
656 |
// Merge if more than one. First one is host.
|
657 |
+
if ($i > 0) {
|
658 |
+
if (get_post_meta($post->ID, self::PREFIX . 'merge-pos', true))
|
659 |
+
$_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$host], $_wp_sidebars_widgets[$id]);
|
660 |
else
|
661 |
+
$_wp_sidebars_widgets[$host] = array_merge($_wp_sidebars_widgets[$id], $_wp_sidebars_widgets[$host]);
|
662 |
} else {
|
663 |
$host = $id;
|
664 |
}
|
671 |
echo $after;
|
672 |
}
|
673 |
}
|
674 |
+
|
675 |
/**
|
|
|
676 |
* Query sidebars according to content
|
|
|
677 |
* @global type $wpdb
|
678 |
* @return array|boolean
|
679 |
*/
|
690 |
else
|
691 |
return $this->sidebar_cache;
|
692 |
}
|
693 |
+
|
694 |
+
$context_data['WHERE'] = $context_data['JOIN'] = $context_data['EXCLUDE'] = array();
|
695 |
+
$context_data = apply_filters('cas-context-data',$context_data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
696 |
|
697 |
// Check if there are any rules for this type of content
|
698 |
+
if(empty($context_data['WHERE']))
|
699 |
return false;
|
700 |
|
701 |
+
$context_data['WHERE'][] = "posts.post_type = '".self::TYPE_CONDITION_GROUP."'";
|
702 |
+
$context_data['WHERE'][] = "posts.post_status ".(current_user_can('read_private_posts') ? "IN('publish','private')" : "= 'publish'")."";
|
703 |
+
|
704 |
+
//Syntax changed in MySQL 5.6
|
705 |
+
$wpdb->query('SET'.(version_compare($wpdb->db_version(), '5.6', '>=') ? '' : ' OPTION').' SQL_BIG_SELECTS = 1');
|
706 |
+
|
707 |
+
$sidebars_in_context = $wpdb->get_results("
|
708 |
SELECT
|
709 |
+
posts.ID, posts.post_parent
|
|
|
710 |
FROM $wpdb->posts posts
|
711 |
+
".implode(' ',$context_data['JOIN'])."
|
|
|
|
|
|
|
|
|
|
|
|
|
712 |
WHERE
|
713 |
+
".implode(' AND ',$context_data['WHERE'])."
|
714 |
+
",OBJECT_K);
|
715 |
+
|
716 |
+
$valid = array();
|
717 |
+
|
718 |
+
//Force update of meta cache to prevent lazy loading
|
719 |
+
update_meta_cache('post',array_keys($sidebars_in_context));
|
720 |
+
|
721 |
+
//Exclude sidebars that have unrelated content in same group
|
722 |
+
foreach($sidebars_in_context as $key => $sidebar) {
|
723 |
+
$valid[$sidebar->ID] = $sidebar->post_parent;
|
724 |
+
//TODO: move to modules
|
725 |
+
foreach($context_data['EXCLUDE'] as $exclude) {
|
726 |
+
//quick fix to check for taxonomies terms
|
727 |
+
if($exclude == 'taxonomies') {
|
728 |
+
if($wpdb->get_var("SELECT COUNT(*) FROM $wpdb->term_relationships WHERE object_id = '{$sidebar->ID}'") > 0) {
|
729 |
+
unset($valid[$sidebar->ID]);
|
730 |
+
break;
|
731 |
+
}
|
732 |
+
}
|
733 |
+
if(get_post_custom_values(self::PREFIX . $exclude, $sidebar->ID) !== null) {
|
734 |
+
unset($valid[$sidebar->ID]);
|
735 |
+
break;
|
736 |
+
}
|
737 |
+
}
|
738 |
+
|
739 |
+
}
|
740 |
+
|
741 |
+
if(!empty($valid)) {
|
742 |
+
|
743 |
+
$context_data = array();
|
744 |
+
$context_data['JOIN'][] = "INNER JOIN $wpdb->postmeta handle ON handle.post_id = posts.ID AND handle.meta_key = '".self::PREFIX."handle'";
|
745 |
+
$context_data['JOIN'][] = "INNER JOIN $wpdb->postmeta exposure ON exposure.post_id = posts.ID AND exposure.meta_key = '".self::PREFIX."exposure'";
|
746 |
+
$context_data['WHERE'][] = "posts.post_type = '".self::TYPE_SIDEBAR."'";
|
747 |
+
$context_data['WHERE'][] = "exposure.meta_value ".(is_archive() || is_home() ? '>' : '<')."= '1'";
|
748 |
+
$context_data['WHERE'][] = "posts.post_status ".(current_user_can('read_private_posts') ? "IN('publish','private')" : "= 'publish'")."";
|
749 |
+
$context_data['WHERE'][] = "posts.ID IN(".implode(',',$valid).")";
|
750 |
+
|
751 |
+
$this->sidebar_cache = $wpdb->get_results("
|
752 |
+
SELECT
|
753 |
+
posts.ID,
|
754 |
+
handle.meta_value handle
|
755 |
+
FROM $wpdb->posts posts
|
756 |
+
".implode(' ',$context_data['JOIN'])."
|
757 |
+
WHERE
|
758 |
+
".implode(' AND ',$context_data['WHERE'])."
|
759 |
+
ORDER BY posts.menu_order ASC, handle.meta_value DESC, posts.post_date DESC
|
760 |
+
");
|
761 |
+
|
762 |
+
}
|
763 |
|
764 |
// Return proper cache. If query was empty, tell the cache.
|
765 |
return (empty($this->sidebar_cache) ? $this->sidebar_cache[0] = false : $this->sidebar_cache);
|
766 |
|
767 |
}
|
768 |
+
|
769 |
+
/**
|
770 |
+
* Remove unwanted meta boxes
|
771 |
+
* @return void
|
772 |
+
*/
|
773 |
+
public function clear_admin_menu() {
|
774 |
+
global $wp_meta_boxes;
|
775 |
+
|
776 |
+
$screen = get_current_screen();
|
777 |
+
|
778 |
+
// Post type not set on all pages in WP3.1
|
779 |
+
if(!(isset($screen->post_type) && $screen->post_type == self::TYPE_SIDEBAR && $screen->base == 'post'))
|
780 |
+
return;
|
781 |
+
|
782 |
+
// Names of whitelisted meta boxes
|
783 |
+
$whitelist = array(
|
784 |
+
'cas-support' => 'cas-support',
|
785 |
+
'cas-groups' => 'cas-groups',
|
786 |
+
'cas-rules' => 'cas-rules',
|
787 |
+
'cas-options' => 'cas-options',
|
788 |
+
'submitdiv' => 'submitdiv',
|
789 |
+
'pageparentdiv' => 'pageparentdiv',
|
790 |
+
'slugdiv' => 'slugdiv'
|
791 |
+
);
|
792 |
+
|
793 |
+
// Loop through context (normal,advanced,side)
|
794 |
+
foreach($wp_meta_boxes[self::TYPE_SIDEBAR] as $context_k => $context_v) {
|
795 |
+
// Loop through priority (high,core,default,low)
|
796 |
+
foreach($context_v as $priority_k => $priority_v) {
|
797 |
+
// Loop through boxes
|
798 |
+
foreach($priority_v as $box_k => $box_v) {
|
799 |
+
// If box is not whitelisted, remove it
|
800 |
+
if(!isset($whitelist[$box_k])) {
|
801 |
+
$wp_meta_boxes[self::TYPE_SIDEBAR][$context_k][$priority_k][$box_k] = false;
|
802 |
+
//unset($whitelist[$box_k]);
|
803 |
+
}
|
804 |
+
}
|
805 |
+
}
|
806 |
+
}
|
807 |
+
}
|
808 |
+
|
809 |
/**
|
|
|
810 |
* Meta boxes for sidebar edit
|
811 |
+
* @global object $post
|
812 |
+
* @return void
|
813 |
*/
|
814 |
public function create_meta_boxes() {
|
815 |
|
816 |
+
// Remove ability to set self to host
|
817 |
+
if(get_the_ID())
|
818 |
+
unset($this->metadata['host']['list'][self::SIDEBAR_PREFIX.get_the_ID()]);
|
819 |
|
820 |
+
$boxes = array(
|
821 |
+
//About
|
822 |
+
array(
|
823 |
+
'id' => 'cas-support',
|
824 |
+
'title' => __('Support the Author of Content Aware Sidebars', self::DOMAIN),
|
825 |
+
'callback' => 'meta_box_author_words',
|
826 |
+
'context' => 'normal',
|
827 |
+
'priority' => 'high'
|
828 |
+
),
|
829 |
+
//Content
|
830 |
+
array(
|
831 |
+
'id' => 'cas-rules',
|
832 |
+
'title' => __('Content', self::DOMAIN),
|
833 |
+
'callback' => 'meta_box_rules',
|
834 |
+
'context' => 'normal',
|
835 |
+
'priority' => 'high'
|
836 |
+
),
|
837 |
+
//Options
|
838 |
+
array(
|
839 |
+
'id' => 'cas-options',
|
840 |
+
'title' => __('Options', self::DOMAIN),
|
841 |
+
'callback' => 'meta_box_options',
|
842 |
+
'context' => 'side',
|
843 |
+
'priority' => 'default'
|
844 |
+
),
|
|
|
|
|
|
|
845 |
);
|
846 |
+
|
847 |
+
//Add meta boxes
|
848 |
+
foreach($boxes as $box) {
|
849 |
+
add_meta_box(
|
850 |
+
$box['id'],
|
851 |
+
$box['title'],
|
852 |
+
array(&$this, $box['callback']),
|
853 |
+
self::TYPE_SIDEBAR,
|
854 |
+
$box['context'],
|
855 |
+
$box['priority']
|
856 |
+
);
|
857 |
+
}
|
858 |
+
|
859 |
}
|
860 |
|
|
|
861 |
/**
|
|
|
862 |
* Hide some meta boxes from start
|
863 |
+
* @param array $hidden
|
864 |
+
* @param object $screen
|
|
|
865 |
* @return array
|
866 |
*/
|
867 |
+
public function change_default_hidden($hidden, $screen) {
|
868 |
+
|
869 |
+
if ($screen->post_type == self::TYPE_SIDEBAR && get_user_option('metaboxhidden_sidebar') === false) {
|
870 |
+
|
871 |
+
$hidden_meta_boxes = array('pageparentdiv');
|
872 |
+
$hidden = array_merge($hidden, $hidden_meta_boxes);
|
873 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
874 |
$user = wp_get_current_user();
|
875 |
+
update_user_option($user->ID, 'metaboxhidden_sidebar', $hidden, true);
|
|
|
876 |
}
|
877 |
return $hidden;
|
878 |
}
|
879 |
+
|
880 |
+
/**
|
881 |
+
* Meta box for content rules
|
882 |
+
* @return void
|
883 |
+
*/
|
884 |
public function meta_box_rules() {
|
885 |
+
|
886 |
+
$groups = $this->_get_sidebar_groups(null,false);
|
887 |
+
|
888 |
+
echo '<div id="cas-container">'."\n";
|
889 |
+
echo '<div id="cas-accordion" class="accordion-container postbox">'."\n";
|
890 |
+
echo '<ul class="outer-border">';
|
891 |
+
do_action('cas-module-admin-box');
|
892 |
+
echo '</ul>';
|
893 |
+
echo '</div>'."\n";
|
894 |
+
echo '<div id="cas-groups" class="postbox'.(empty($groups) ? '' : ' cas-has-groups').'">'."\n";
|
895 |
+
echo '<div class="cas-groups-header"><h3>'.__('Condition Groups',self::DOMAIN).'</h3><input type="button" class="button button-primary js-cas-group-new" value="'.__('Add New Group',self::DOMAIN).'" /></div>';
|
896 |
+
echo '<div class="cas-groups-body"><p>'.__('Click to edit a group or create a new one. Select content on the left to add it. In each group, you can combine different types of associated content.',self::DOMAIN).'</p>';
|
897 |
+
echo '<h4>'.__('Display sidebar with',self::DOMAIN).':</h4>';
|
898 |
+
|
899 |
+
$i = 0;
|
900 |
+
|
901 |
+
echo '<ul>';
|
902 |
+
echo '<li class="cas-no-groups">'.__('No content. Please add at least one condition group to make the sidebar content aware.',self::DOMAIN).'</li>';
|
903 |
+
foreach($groups as $group) {
|
904 |
+
|
905 |
+
echo '<li class="cas-group-single'.($i == 0 ? ' cas-group-active' : '').'">
|
906 |
+
<span class="cas-group-control cas-group-control-active">
|
907 |
+
<input type="button" class="button js-cas-group-save" value="'.__('Save',self::DOMAIN).'" /> | <a class="js-cas-group-cancel" href="#">'.__('Cancel',self::DOMAIN).'</a>
|
908 |
+
</span>
|
909 |
+
<span class="cas-group-control">
|
910 |
+
<a class="js-cas-group-edit" href="#">'._x('Edit','group',self::DOMAIN).'</a> | <a class="submitdelete js-cas-group-remove" href="#">'.__('Remove',self::DOMAIN).'</a>
|
911 |
+
</span>
|
912 |
+
<div class="cas-content">';
|
913 |
+
do_action('cas-module-print-data',$group->ID);
|
914 |
+
echo '</div>
|
915 |
+
<input type="hidden" class="cas_group_id" name="cas_group_id" value="'.$group->ID.'" />';
|
916 |
+
|
917 |
+
echo '</li>';
|
918 |
+
$i++;
|
919 |
}
|
920 |
+
echo '</ul>';
|
921 |
+
|
922 |
+
|
923 |
+
echo '</div>';
|
924 |
+
echo '<div class="cas-groups-footer">';
|
925 |
+
echo '<input type="button" class="button button-primary js-cas-group-new" value="'.__('Add New Group',self::DOMAIN).'" />';
|
926 |
+
echo '</div>';
|
927 |
+
echo '</div>'."\n";
|
928 |
echo '</div>'."\n";
|
929 |
|
930 |
}
|
931 |
+
|
932 |
+
/**
|
933 |
+
* Insert new condition group for sidebar
|
934 |
+
* Uses current sidebar per default
|
935 |
+
* @author Joachim Jensen <jv@intox.dk>
|
936 |
+
* @since 2.0
|
937 |
+
* @param WP_Post|int $post
|
938 |
+
* @return int
|
939 |
+
*/
|
940 |
+
private function _add_sidebar_group($post_id = null) {
|
941 |
+
$post = get_post($post_id);
|
942 |
+
|
943 |
+
$status = $post->post_status;
|
944 |
+
//Make sure to go from auto-draft to draft
|
945 |
+
if($status == 'auto-draft') {
|
946 |
+
$status = 'draft';
|
947 |
+
wp_update_post( array(
|
948 |
+
'ID' => $post->ID,
|
949 |
+
'post_status' => $status
|
950 |
+
));
|
951 |
+
}
|
952 |
+
|
953 |
+
return wp_insert_post(array(
|
954 |
+
'post_status' => $status,
|
955 |
+
'post_type' => self::TYPE_CONDITION_GROUP,
|
956 |
+
'post_author' => $post->post_author,
|
957 |
+
'post_parent' => $post->ID,
|
958 |
+
));
|
959 |
+
}
|
960 |
+
|
961 |
+
/**
|
962 |
+
* Get condition groups for sidebar
|
963 |
+
* Uses current sidebar per default
|
964 |
+
* Creates the first group if necessary
|
965 |
+
* @author Joachim Jensen <jv@intox.dk>
|
966 |
+
* @since 2.0
|
967 |
+
* @param WP_Post|int $post_id
|
968 |
+
* @param boolean $create_first
|
969 |
+
* @return array
|
970 |
+
*/
|
971 |
+
private function _get_sidebar_groups($post_id = null, $create_first = false) {
|
972 |
+
$post = get_post($post_id);
|
973 |
+
|
974 |
+
$groups = get_posts(array(
|
975 |
+
'posts_per_page' => -1,
|
976 |
+
'post_type' => self::TYPE_CONDITION_GROUP,
|
977 |
+
'post_parent' => $post->ID,
|
978 |
+
'post_status' => 'any',
|
979 |
+
'order' => 'ASC'
|
980 |
+
));
|
981 |
+
if($groups == null && $create_first) {
|
982 |
+
$group = $this->_add_sidebar_group($post);
|
983 |
+
$groups[] = get_post($group);
|
984 |
+
}
|
985 |
+
|
986 |
+
return $groups;
|
987 |
+
|
988 |
+
}
|
989 |
+
|
990 |
+
/**
|
991 |
+
* AJAX call to add filters to a group
|
992 |
+
* @author Joachim Jensen <jv@intox.dk>
|
993 |
+
* @since 2.0
|
994 |
+
* @return void
|
995 |
+
*/
|
996 |
+
public function add_sidebar_rule_ajax() {
|
997 |
+
|
998 |
+
try {
|
999 |
+
if(!isset($_POST['current_id'])) {
|
1000 |
+
_e('Unauthorized request',self::DOMAIN);
|
1001 |
+
throw new Exception("Forbidden",403);
|
1002 |
+
}
|
1003 |
+
|
1004 |
+
if(!check_ajax_referer(self::SIDEBAR_PREFIX.$_POST['current_id'],'token',false)) {
|
1005 |
+
_e('Unauthorized request',self::DOMAIN);
|
1006 |
+
throw new Exception("Forbidden",403);
|
1007 |
+
}
|
1008 |
+
|
1009 |
+
$response = array();
|
1010 |
+
|
1011 |
+
//Make sure some rules are sent
|
1012 |
+
if(!isset($_POST['cas_condition'])) {
|
1013 |
+
_e('Condition group cannot be empty',self::DOMAIN);
|
1014 |
+
throw new Exception("Internal Server Error",500);
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
//If ID was not sent at this point, it is a new group
|
1018 |
+
if(!isset($_POST['cas_group_id'])) {
|
1019 |
+
$post_id = $this->_add_sidebar_group(intval($_POST['current_id']));
|
1020 |
+
$response['new_post_id'] = $post_id;
|
1021 |
+
} else {
|
1022 |
+
$post_id = intval($_POST['cas_group_id']);
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
do_action('cas-module-save-data',$post_id);
|
1026 |
+
|
1027 |
+
$response['message'] = __('Condition group saved',self::DOMAIN);
|
1028 |
+
|
1029 |
+
echo json_encode($response);
|
1030 |
+
|
1031 |
+
} catch(Exception $e) {
|
1032 |
+
header("HTTP/1.1 ".$e->getCode()." ".$e->getMessage());
|
1033 |
+
}
|
1034 |
+
die();
|
1035 |
+
}
|
1036 |
+
|
1037 |
+
/**
|
1038 |
+
* AJAX call to remove group from a sidebar
|
1039 |
+
* @author Joachim Jensen <jv@intox.dk>
|
1040 |
+
* @since 2.0
|
1041 |
+
* @return void
|
1042 |
+
*/
|
1043 |
+
public function remove_sidebar_group_ajax() {
|
1044 |
+
|
1045 |
+
try {
|
1046 |
+
if(!isset($_POST['current_id'],$_POST['cas_group_id'])) {
|
1047 |
+
_e('Unauthorized request',self::DOMAIN);
|
1048 |
+
throw new Exception("Forbidden",403);
|
1049 |
+
}
|
1050 |
+
|
1051 |
+
if(!check_ajax_referer(self::SIDEBAR_PREFIX.$_POST['current_id'],'token',false)) {
|
1052 |
+
_e('Unauthorized request',self::DOMAIN);
|
1053 |
+
throw new Exception("Forbidden",403);
|
1054 |
+
}
|
1055 |
+
|
1056 |
+
if(wp_delete_post(intval($_POST['cas_group_id']), true) === false) {
|
1057 |
+
_e('Condition group could not be removed',self::DOMAIN);
|
1058 |
+
throw new Exception("Internal Server Error",500);
|
1059 |
+
}
|
1060 |
+
|
1061 |
+
echo json_encode(array(
|
1062 |
+
'message' => __('Condition group removed',self::DOMAIN)
|
1063 |
+
));
|
1064 |
+
|
1065 |
+
} catch(Exception $e) {
|
1066 |
+
header("HTTP/1.1 ".$e->getCode()." ".$e->getMessage());
|
1067 |
+
}
|
1068 |
+
die();
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
/**
|
1072 |
+
* Whenever a sidebar changes post_status
|
1073 |
+
* Cascade that status to its groups
|
1074 |
+
* @author Joachim Jensen <jv@intox.dk>
|
1075 |
+
* @since 2.0
|
1076 |
+
* @param string $new_status
|
1077 |
+
* @param string $old_status
|
1078 |
+
* @param WP_Post $post
|
1079 |
+
* @return void
|
1080 |
+
*/
|
1081 |
+
public function cascade_sidebar_status($new_status, $old_status, $post) {
|
1082 |
+
if($post->post_type == self::TYPE_SIDEBAR && $old_status != $new_status) {
|
1083 |
+
global $wpdb;
|
1084 |
+
$wpdb->query("
|
1085 |
+
UPDATE $wpdb->posts
|
1086 |
+
SET post_status = '".$new_status."'
|
1087 |
+
WHERE post_parent = '".$post->ID."' AND post_type = '".self::TYPE_CONDITION_GROUP."'
|
1088 |
+
");
|
1089 |
+
}
|
1090 |
+
}
|
1091 |
|
1092 |
/**
|
1093 |
+
* Meta box for options
|
1094 |
+
* @return void
|
|
|
1095 |
*/
|
1096 |
public function meta_box_options() {
|
1097 |
+
|
1098 |
$columns = array(
|
1099 |
'exposure',
|
1100 |
'handle' => 'handle,host',
|
1101 |
'merge-pos'
|
1102 |
);
|
1103 |
+
|
1104 |
+
foreach ($columns as $key => $value) {
|
1105 |
+
|
1106 |
+
echo '<span>' . $this->metadata[is_numeric($key) ? $value : $key]['name'] . ':';
|
1107 |
echo '<p>';
|
1108 |
+
$values = explode(',', $value);
|
1109 |
+
foreach ($values as $val) {
|
1110 |
$this->_form_field($val);
|
1111 |
}
|
1112 |
echo '</p></span>';
|
1113 |
}
|
1114 |
}
|
1115 |
+
|
1116 |
/**
|
1117 |
+
* Meta box for author words
|
1118 |
+
* @return void
|
|
|
1119 |
*/
|
1120 |
public function meta_box_author_words() {
|
1121 |
+
|
1122 |
+
// Use nonce for verification. Unique per sidebar
|
1123 |
+
wp_nonce_field(self::SIDEBAR_PREFIX.get_the_ID(), '_ca-sidebar-nonce');
|
1124 |
+
echo '<input type="hidden" id="current_sidebar" value="'.get_the_ID().'" />';
|
1125 |
+
?>
|
1126 |
+
<div style="overflow:hidden;">
|
1127 |
+
<div style="float:left;width:40%;overflow:hidden">
|
1128 |
+
<p><strong><?php _e('If you love this plugin, please consider donating to support future development.', self::DOMAIN); ?></strong></p>
|
1129 |
+
<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KPZHE6A72LEN4&lc=US&item_name=WordPress%20Plugin%3a%20Content%20Aware%20Sidebars&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"
|
1130 |
+
target="_blank" title="PayPal - The safer, easier way to pay online!">
|
1131 |
+
<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" width="147" height="47" alt="PayPal - The safer, easier way to pay online!">
|
1132 |
+
</a>
|
1133 |
+
|
1134 |
+
</p>
|
1135 |
+
</div>
|
1136 |
+
<div style="float:left;width:40%;border-left:#ebebeb 1px solid;border-right:#ebebeb 1px solid;box-sizing:border-box;-moz-box-sizing:border-box;">
|
1137 |
+
<p><strong><?php _e('Or you could:',self::DOMAIN); ?></strong></p>
|
1138 |
+
<ul>
|
1139 |
+
<li><a href="http://wordpress.org/support/view/plugin-reviews/content-aware-sidebars?rate=5#postform" target="_blank"><?php _e('Rate the plugin on WordPress.org',self::DOMAIN); ?></a></li>
|
1140 |
+
<li><a href="http://wordpress.org/extend/plugins/content-aware-sidebars/" target="_blank"><?php _e('Link to the plugin page',self::DOMAIN); ?></a></li>
|
1141 |
+
<li><a href="http://wordpress.org/extend/plugins/content-aware-sidebars/" target="_blank"><?php _e('Translate the plugin into your language',self::DOMAIN); ?></a></li>
|
1142 |
+
</ul>
|
1143 |
+
</div>
|
1144 |
+
<div style="float:left;width:20%;">
|
1145 |
+
<p><a href="https://twitter.com/intoxstudio" class="twitter-follow-button" data-show-count="false">Follow @intoxstudio</a>
|
1146 |
+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></p>
|
1147 |
+
<p>
|
1148 |
+
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fintoxstudio&width=450&height=21&colorscheme=light&layout=button_count&action=like&show_faces=false&send=false&appId=436031373100972" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
|
1149 |
+
</p>
|
1150 |
+
</div>
|
1151 |
+
</div>
|
1152 |
<?php
|
1153 |
}
|
1154 |
+
|
1155 |
/**
|
|
|
1156 |
* Create form field for metadata
|
|
|
1157 |
* @global object $post
|
1158 |
+
* @param array $setting
|
1159 |
+
* @return void
|
1160 |
*/
|
1161 |
private function _form_field($setting) {
|
1162 |
+
|
1163 |
+
$meta = get_post_meta(get_the_ID(), self::PREFIX . $setting, true);
|
|
|
1164 |
$setting = $this->metadata[$setting];
|
1165 |
$current = $meta != '' ? $meta : $setting['val'];
|
1166 |
+
switch ($setting['type']) {
|
1167 |
+
case 'select' :
|
1168 |
+
echo '<select style="width:250px;" name="' . $setting['id'] . '">' . "\n";
|
1169 |
+
foreach ($setting['list'] as $key => $value) {
|
1170 |
+
echo '<option value="' . $key . '"' . selected($current,$key,false) . '>' . $value . '</option>' . "\n";
|
1171 |
}
|
1172 |
+
echo '</select>' . "\n";
|
1173 |
break;
|
1174 |
case 'checkbox' :
|
1175 |
+
echo '<ul>' . "\n";
|
1176 |
+
foreach ($setting['list'] as $key => $value) {
|
1177 |
+
echo '<li><label><input type="checkbox" name="' . $setting['id'] . '[]" value="' . $key . '"' . (in_array($key, $current) ? ' checked="checked"' : '') . ' /> ' . $value . '</label></li>' . "\n";
|
1178 |
}
|
1179 |
+
echo '</ul>' . "\n";
|
1180 |
break;
|
1181 |
case 'text' :
|
1182 |
default :
|
1183 |
+
echo '<input style="width:200px;" type="text" name="' . $setting['id'] . '" value="' . $current . '" />' . "\n";
|
1184 |
break;
|
1185 |
}
|
1186 |
}
|
1187 |
+
|
1188 |
/**
|
|
|
1189 |
* Save meta values for post
|
1190 |
+
* @param int $post_id
|
|
|
1191 |
* @return void
|
1192 |
*/
|
1193 |
public function save_post($post_id) {
|
1194 |
+
|
1195 |
// Save button pressed
|
1196 |
+
if (!isset($_POST['original_publish']) && !isset($_POST['save_post']))
|
1197 |
return;
|
1198 |
+
|
1199 |
// Only sidebar type
|
1200 |
+
if (get_post_type($post_id) != self::TYPE_SIDEBAR)
|
1201 |
+
return;
|
1202 |
+
|
1203 |
// Verify nonce
|
1204 |
+
if (!check_admin_referer(self::SIDEBAR_PREFIX.$post_id, '_ca-sidebar-nonce'))
|
1205 |
return;
|
1206 |
+
|
1207 |
// Check permissions
|
1208 |
+
if (!current_user_can(self::CAPABILITY, $post_id))
|
1209 |
return;
|
1210 |
+
|
1211 |
// Check autosave
|
1212 |
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
|
1213 |
return;
|
1214 |
+
|
1215 |
// Load metadata
|
1216 |
$this->_init_metadata();
|
1217 |
+
|
1218 |
// Update metadata
|
1219 |
+
foreach ($this->metadata as $field) {
|
1220 |
$new = isset($_POST[$field['id']]) ? $_POST[$field['id']] : '';
|
1221 |
+
$old = get_post_meta($post_id, self::PREFIX . $field['id'], true);
|
1222 |
+
|
1223 |
+
if ($new != '' && $new != $old) {
|
1224 |
+
update_post_meta($post_id, self::PREFIX . $field['id'], $new);
|
1225 |
} elseif ($new == '' && $old != '') {
|
1226 |
+
delete_post_meta($post_id, self::PREFIX . $field['id'], $old);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1227 |
}
|
1228 |
}
|
1229 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1230 |
|
|
|
|
|
1231 |
/**
|
|
|
1232 |
* Database data update module
|
1233 |
+
* @return void
|
1234 |
*/
|
1235 |
public function db_update() {
|
1236 |
+
cas_run_db_update(self::DB_VERSION);
|
1237 |
}
|
1238 |
+
|
1239 |
/**
|
|
|
1240 |
* Load scripts and styles for administration
|
1241 |
+
* @param string $hook
|
1242 |
+
* @return void
|
1243 |
*/
|
1244 |
public function load_admin_scripts($hook) {
|
1245 |
+
|
1246 |
+
$current_screen = get_current_screen();
|
1247 |
+
|
1248 |
+
if($current_screen->post_type == self::TYPE_SIDEBAR) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1249 |
|
1250 |
+
wp_register_script('cas_admin_script', plugins_url('/js/cas_admin.js', __FILE__), array('jquery'), self::PLUGIN_VERSION, true);
|
1251 |
+
wp_register_style('cas_admin_style', plugins_url('/css/style.css', __FILE__), array(), self::PLUGIN_VERSION);
|
1252 |
+
|
1253 |
+
//Sidebar editor
|
1254 |
+
if ($current_screen->base == 'post') {
|
1255 |
+
|
1256 |
+
if(!wp_script_is('accordion','registered')) {
|
1257 |
+
wp_register_script('accordion', plugins_url('/js/accordion.min.js', __FILE__), array('jquery'), self::PLUGIN_VERSION, true);
|
1258 |
+
}
|
1259 |
+
wp_enqueue_script('accordion');
|
1260 |
+
wp_enqueue_script('cas_admin_script');
|
1261 |
+
wp_localize_script( 'cas_admin_script', 'CASAdmin', array(
|
1262 |
+
'save' => __('Save',self::DOMAIN),
|
1263 |
+
'cancel' => __('Cancel',self::DOMAIN),
|
1264 |
+
'edit' => _x('Edit','group',self::DOMAIN),
|
1265 |
+
'remove' => __('Remove',self::DOMAIN),
|
1266 |
+
'confirmRemove' => __('Remove this group and its contents permanently?',self::DOMAIN),
|
1267 |
+
'noResults' => __('No results found.',self::DOMAIN),
|
1268 |
+
'confirmCancel' => __('The current group has unsaved changes. Do you want to continue and discard these changes?', self::DOMAIN)
|
1269 |
+
));
|
1270 |
+
wp_enqueue_style('cas_admin_style');
|
1271 |
+
//Sidebar overview
|
1272 |
+
} else if ($hook == 'edit.php') {
|
1273 |
+
wp_enqueue_style('cas_admin_style');
|
1274 |
+
}
|
1275 |
}
|
1276 |
+
|
1277 |
}
|
1278 |
|
1279 |
/**
|
|
|
1280 |
* Load dependencies
|
1281 |
+
* @return void
|
1282 |
*/
|
1283 |
private function _load_dependencies() {
|
1284 |
+
$path = plugin_dir_path( __FILE__ );
|
1285 |
+
require($path.'/walker.php');
|
1286 |
+
require($path.'/update_db.php');
|
1287 |
+
require($path.'/modules/abstract.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1288 |
}
|
1289 |
+
|
1290 |
}
|
1291 |
|
1292 |
// Launch plugin
|
1293 |
+
ContentAwareSidebars::instance();
|
|
|
1294 |
|
1295 |
/**
|
1296 |
+
* Template wrapper to display content aware sidebars
|
1297 |
+
* @param array|string $args
|
1298 |
+
* @return void
|
|
|
|
|
1299 |
*/
|
1300 |
function display_ca_sidebar($args = array()) {
|
1301 |
+
ContentAwareSidebars::instance()->manual_sidebar($args);
|
|
|
1302 |
}
|
1303 |
+
|
1304 |
+
//eol
|
css/index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**/
|
css/style.css
CHANGED
@@ -7,70 +7,289 @@
|
|
7 |
background:transparent url('../img/icon-32.png') no-repeat !important;
|
8 |
}
|
9 |
|
10 |
-
#cas-rules
|
11 |
-
|
12 |
}
|
13 |
|
14 |
-
#cas-rules
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
overflow:hidden;
|
16 |
margin:0;
|
17 |
padding:0;
|
18 |
}
|
19 |
|
20 |
-
#cas-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
margin:0;
|
25 |
-
background-color:#ececec;
|
26 |
-
display:block;
|
27 |
-
outline: none;
|
28 |
}
|
29 |
|
30 |
-
#cas-accordion
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
32 |
}
|
33 |
|
34 |
-
#cas-accordion
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
}
|
41 |
|
42 |
-
.cas-
|
43 |
-
|
44 |
-
border-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
|
50 |
-
#cas-accordion .
|
51 |
-
border-
|
52 |
}
|
53 |
|
54 |
-
#cas-accordion .
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
}
|
60 |
|
61 |
-
#cas-accordion .
|
62 |
-
|
63 |
-
border-
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
}
|
67 |
|
68 |
-
#cas-accordion .tabs {
|
69 |
-
border-color
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
|
72 |
.cas-tick {
|
73 |
background-image:url('../img/tick.png'); /* Icon by fatcow.com */
|
74 |
background-repeat: no-repeat;
|
75 |
background-position: 8px center;
|
76 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
background:transparent url('../img/icon-32.png') no-repeat !important;
|
8 |
}
|
9 |
|
10 |
+
#cas-rules > .handlediv, #cas-rules > .hndle {
|
11 |
+
display:none;
|
12 |
}
|
13 |
|
14 |
+
#cas-rules.postbox {
|
15 |
+
background:none;
|
16 |
+
border:none;
|
17 |
+
box-shadow: none;
|
18 |
+
}
|
19 |
+
|
20 |
+
#cas-rules > .inside {
|
21 |
overflow:hidden;
|
22 |
margin:0;
|
23 |
padding:0;
|
24 |
}
|
25 |
|
26 |
+
#cas-container {
|
27 |
+
overflow:hidden;
|
28 |
+
width:100%;
|
29 |
+
}
|
30 |
+
|
31 |
+
#cas-accordion {
|
32 |
+
float:left;
|
33 |
+
width:280px;
|
34 |
+
}
|
35 |
+
|
36 |
+
#cas-accordion .outer-border {
|
37 |
margin:0;
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
+
#cas-accordion.accordion-container .accordion-section:first-child,
|
41 |
+
#cas-accordion.accordion-container .accordion-section:first-child h3,
|
42 |
+
#cas-accordion.accordion-container .top,
|
43 |
+
#cas-accordion.accordion-container .top h3 {
|
44 |
+
border-top-left-radius: 3px;
|
45 |
+
border-top-right-radius: 3px;
|
46 |
+
border-top:none;
|
47 |
}
|
48 |
|
49 |
+
#cas-accordion.accordion-container .accordion-section:last-child,
|
50 |
+
#cas-accordion.accordion-container .accordion-section:last-child .accordion-section-content,
|
51 |
+
#cas-accordion.accordion-container .bottom,
|
52 |
+
#cas-accordion.accordion-container .bottom:not(.open) h3 {
|
53 |
+
border-bottom-left-radius: 3px;
|
54 |
+
border-bottom-right-radius: 3px;
|
55 |
}
|
56 |
|
57 |
+
.js #cas-accordion .accordion-section-title {
|
58 |
+
cursor: pointer;
|
59 |
+
border-radius:0!important;
|
60 |
+
box-shadow:none!important;
|
61 |
+
border-bottom-width: 0;
|
62 |
+
}
|
63 |
+
|
64 |
+
#cas-accordion .accordion-section-title {
|
65 |
+
padding: 10px 20px;
|
66 |
+
margin:0!important;
|
67 |
+
overflow:hidden;
|
68 |
+
border-left:none;
|
69 |
+
border-right:none;
|
70 |
}
|
71 |
|
72 |
+
#cas-accordion .control-section.open .accordion-section-title {
|
73 |
+
border-bottom:1px solid #DFDFDF;
|
74 |
}
|
75 |
|
76 |
+
#cas-accordion .accordion-section-content {
|
77 |
+
padding: 18px 13px;
|
78 |
+
font-size: 13px;
|
79 |
+
border-left:none;
|
80 |
+
border-right:none;
|
81 |
}
|
82 |
|
83 |
+
#cas-accordion .accordion-section {
|
84 |
+
margin:0;
|
85 |
+
border-bottom: 1px solid #DFDFDF;
|
86 |
+
}
|
87 |
+
|
88 |
+
.js #cas-accordion .accordion-section:not(.open) .accordion-section-content {
|
89 |
+
display:none;
|
90 |
+
}
|
91 |
+
|
92 |
+
#cas-accordion ul.category-tabs {
|
93 |
+
width:auto;
|
94 |
+
margin: 20px 0 -1px;
|
95 |
+
}
|
96 |
+
|
97 |
+
#cas-accordion ul.category-tabs li {
|
98 |
+
padding: 3px 5px 3px 8px;
|
99 |
+
border-style: solid;
|
100 |
+
border-width: 1px;
|
101 |
+
position: relative;
|
102 |
+
display: inline-block;
|
103 |
+
line-height: 1.35em;
|
104 |
+
margin:0;
|
105 |
+
border-color: transparent;
|
106 |
}
|
107 |
|
108 |
+
#cas-accordion ul.category-tabs li.tabs {
|
109 |
+
border-color: #DFDFDF #DFDFDF #FDFDFD;
|
110 |
+
border-style: solid;
|
111 |
+
border-width: 1px;
|
112 |
+
}
|
113 |
+
|
114 |
+
#cas-accordion .tabs-panel {
|
115 |
+
overflow:auto;
|
116 |
+
clear:both;
|
117 |
+
}
|
118 |
+
|
119 |
+
#cas-accordion .button-controls {
|
120 |
+
margin:10px 0 0;
|
121 |
}
|
122 |
|
123 |
.cas-tick {
|
124 |
background-image:url('../img/tick.png'); /* Icon by fatcow.com */
|
125 |
background-repeat: no-repeat;
|
126 |
background-position: 8px center;
|
127 |
+
}
|
128 |
+
|
129 |
+
.cas-contentlist .children li {
|
130 |
+
padding-left:20px;
|
131 |
+
}
|
132 |
+
|
133 |
+
#cas-accordion .button-controls {
|
134 |
+
overflow:hidden;
|
135 |
+
}
|
136 |
+
|
137 |
+
.add-to-group {
|
138 |
+
float:right;
|
139 |
+
}
|
140 |
+
|
141 |
+
#cas-groups {
|
142 |
+
box-sizing:border-box;
|
143 |
+
-moz-box-sizing:border-box;
|
144 |
+
-webkit-box-sizing:border-box;
|
145 |
+
-o-box-sizing:border-box;
|
146 |
+
-ms-box-sizing:border-box;
|
147 |
+
margin-left:300px;
|
148 |
+
}
|
149 |
+
|
150 |
+
#cas-groups h3 {
|
151 |
+
cursor:auto;
|
152 |
+
display:inline-block;
|
153 |
+
border:none;
|
154 |
+
padding:0;
|
155 |
+
line-height:2;
|
156 |
+
background:none;
|
157 |
+
box-shadow: none;
|
158 |
+
}
|
159 |
+
|
160 |
+
.cas-groups-header, .cas-groups-footer {
|
161 |
+
background: none repeat scroll 0 0 #F5F5F5;
|
162 |
+
padding: 6px 10px;
|
163 |
+
overflow:hidden;
|
164 |
+
}
|
165 |
+
|
166 |
+
.cas-groups-header .button, .cas-groups-footer .button {
|
167 |
+
float:right;
|
168 |
+
}
|
169 |
+
|
170 |
+
.cas-groups-header {
|
171 |
+
border-bottom:1px solid #DFDFDF;
|
172 |
+
}
|
173 |
+
|
174 |
+
.cas-groups-footer {
|
175 |
+
border-top:1px solid #DFDFDF;
|
176 |
+
}
|
177 |
+
|
178 |
+
.cas-groups-body {
|
179 |
+
padding:8px 10px;
|
180 |
+
background-color: #fff;
|
181 |
+
}
|
182 |
+
|
183 |
+
.cas-group-single.cas-group-active {
|
184 |
+
border-color:#5B9DD9;
|
185 |
+
box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
|
186 |
+
}
|
187 |
+
/*.cas-group-single.cas-group-active .cas-group-control {
|
188 |
+
border-color:#555;
|
189 |
+
}*/
|
190 |
+
|
191 |
+
.cas-group-single {
|
192 |
+
-webkit-box-sizing:border-box;
|
193 |
+
-moz-box-sizing:border-box;
|
194 |
+
-ms-box-sizing:border-box;
|
195 |
+
box-sizing:border-box;
|
196 |
+
border-width:1px;
|
197 |
+
border-style:solid;
|
198 |
+
border-color:#cfcfcf;
|
199 |
+
padding:4px 10px;
|
200 |
+
overflow:hidden;
|
201 |
+
position:relative;
|
202 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
203 |
+
min-height:45px;
|
204 |
+
margin-bottom:10px;
|
205 |
+
}
|
206 |
+
|
207 |
+
.cas-group-single .cas-group-control {
|
208 |
+
text-align: right;
|
209 |
+
display:inline;
|
210 |
+
position:absolute;
|
211 |
+
top:0;
|
212 |
+
right:0;
|
213 |
+
line-height:30px;
|
214 |
+
padding:5px 10px;
|
215 |
+
background-color:#fafafa;
|
216 |
+
border-width:0 0 1px 1px;
|
217 |
+
border-style:solid;
|
218 |
+
border-color:#cfcfcf;
|
219 |
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
|
220 |
+
}
|
221 |
+
.cas-group-single .cas-group-control a {
|
222 |
+
text-decoration: none;
|
223 |
+
}
|
224 |
+
.cas-group-active .cas-group-control {
|
225 |
+
display:none;
|
226 |
+
}
|
227 |
+
|
228 |
+
.cas-group-single .cas-group-control-active {
|
229 |
+
display:none;
|
230 |
+
}
|
231 |
+
|
232 |
+
.cas-group-active .cas-group-control-active {
|
233 |
+
display:inline;
|
234 |
+
}
|
235 |
+
|
236 |
+
.cas-group-single:not(.cas-group-active) label {
|
237 |
+
cursor:auto;
|
238 |
+
}
|
239 |
+
|
240 |
+
.cas-group-single:not(.cas-group-active) input[type="checkbox"] {
|
241 |
+
display:none;
|
242 |
+
}
|
243 |
+
|
244 |
+
.cas-group-single .submitdelete {
|
245 |
+
color:#BC0B0B;
|
246 |
+
}
|
247 |
+
.cas-group-single .submitdelete:hover {
|
248 |
+
color:#fff;
|
249 |
+
background-color:#FF0000;
|
250 |
+
}
|
251 |
+
|
252 |
+
.cas-group-single li {
|
253 |
+
list-style: disc inside;
|
254 |
+
}
|
255 |
+
|
256 |
+
.cas-group-single li.cas-new {
|
257 |
+
background:#F6F3E4;
|
258 |
+
}
|
259 |
+
|
260 |
+
.cas-group-single.cas-group-active li {
|
261 |
+
list-style:none;
|
262 |
+
}
|
263 |
+
|
264 |
+
.cas-condition {
|
265 |
+
padding:0 0 5px;
|
266 |
+
}
|
267 |
+
|
268 |
+
#cas-groups.cas-has-groups .cas-no-groups {
|
269 |
+
display:none;
|
270 |
+
}
|
271 |
+
#cas-groups:not(.cas-has-groups) .cas-no-groups {
|
272 |
+
display:inline;
|
273 |
+
}
|
274 |
+
|
275 |
+
.cas-alert {
|
276 |
+
position:fixed;
|
277 |
+
top:23px;
|
278 |
+
left:50%;
|
279 |
+
}
|
280 |
+
|
281 |
+
.cas-alert > div {
|
282 |
+
padding:5px 30px;
|
283 |
+
position: relative;
|
284 |
+
left: -50%;
|
285 |
+
}
|
286 |
+
|
287 |
+
@media (max-width: 600px), (min-width:850px) and (max-width:1060px) {
|
288 |
+
#cas-accordion {
|
289 |
+
float:none;
|
290 |
+
width:auto;
|
291 |
+
}
|
292 |
+
#cas-groups {
|
293 |
+
margin:0;
|
294 |
+
}
|
295 |
+
}
|
img/index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**/
|
index.php
CHANGED
@@ -1 +1,2 @@
|
|
1 |
<?php
|
|
1 |
<?php
|
2 |
+
/**/
|
js/accordion.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a){function b(){d.removeClass("top bottom"),d.filter(":visible").first().addClass("top"),d.filter(":visible").last().addClass("bottom").find(e).addClass("bottom")}function c(a){var c=a.closest(".accordion-section"),d=c.closest(".accordion-container").find(".open"),f=c.find(e);c.hasClass("cannot-expand")||(c.hasClass("open")?(c.toggleClass("open"),f.toggle(!0).slideToggle(150)):(d.removeClass("open"),d.find(e).show().slideUp(150),f.toggle(!1).slideToggle(150),c.toggleClass("open")),b())}a(document).ready(function(){a(".accordion-container").on("click keydown",".accordion-section-title",function(b){("keydown"!==b.type||13===b.which)&&(b.preventDefault(),c(a(this)))}),a(".hide-postbox-tog").click(function(){b()})});var d=a(".accordion-container li.accordion-section"),e=a(".accordion-section-content");b()}(jQuery);
|
js/cas_admin.js
CHANGED
@@ -3,89 +3,636 @@
|
|
3 |
* @author Joachim Jensen <jv@intox.dk>
|
4 |
*/
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
autoHeight: false,
|
9 |
-
collapsible: true,
|
10 |
-
heightStyle: 'content'
|
11 |
-
});
|
12 |
-
|
13 |
-
jQuery(document).ready(function($) {
|
14 |
-
|
15 |
-
handleSidebarHandle();
|
16 |
-
|
17 |
-
/**
|
18 |
-
*
|
19 |
-
* Set tickers if at least one checkbox is checked
|
20 |
-
*
|
21 |
-
*/
|
22 |
-
$('.cas-rule-content :input').each( function() {
|
23 |
-
toggleTick(this);
|
24 |
-
});
|
25 |
-
$('.cas-rule-content :input').change( function() {
|
26 |
-
toggleTick(this);
|
27 |
-
});
|
28 |
-
|
29 |
/**
|
30 |
-
*
|
31 |
-
*
|
32 |
-
*
|
33 |
*/
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
*
|
56 |
-
* Handle the Handle selection
|
57 |
-
*
|
58 |
-
*/
|
59 |
-
function handleSidebarHandle() {
|
60 |
-
|
61 |
-
var name = "select[name='handle']";
|
62 |
-
|
63 |
-
// Execute on ready
|
64 |
-
$(name).each(function(){
|
65 |
-
endisableHostSidebars($(this));
|
66 |
-
});
|
67 |
-
|
68 |
-
// Execute on change
|
69 |
-
$(name).change(function(){
|
70 |
-
endisableHostSidebars($(this));
|
71 |
-
});
|
72 |
-
}
|
73 |
-
|
74 |
/**
|
75 |
-
*
|
76 |
-
*
|
77 |
-
* If Handling is manual, selection of host sidebar will be disabled
|
78 |
*/
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
}
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
* @author Joachim Jensen <jv@intox.dk>
|
4 |
*/
|
5 |
|
6 |
+
(function($) {
|
7 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/**
|
9 |
+
* Condition group management
|
10 |
+
* @author Joachim Jensen <jv@intox.dk>
|
11 |
+
* @since 2.0
|
12 |
*/
|
13 |
+
function GroupHandler() {
|
14 |
+
/**
|
15 |
+
* Container element
|
16 |
+
* @type {Object}
|
17 |
+
*/
|
18 |
+
this._$groupContainer = $('#cas-groups');
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Current condition group
|
22 |
+
* @type {Object}
|
23 |
+
*/
|
24 |
+
this._currentGroup = null;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* CSS class for current group
|
28 |
+
* @type {string}
|
29 |
+
*/
|
30 |
+
this._activeClass = 'cas-group-active';
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Add a group to gui
|
34 |
+
* @author Joachim Jensen <jv@intox.dk>
|
35 |
+
* @since 2.1
|
36 |
+
* @param {Object} obj
|
37 |
+
*/
|
38 |
+
this.add = function(obj) {
|
39 |
+
var canSet = this.setCurrent(obj);
|
40 |
+
if(canSet) {
|
41 |
+
cas_alert.dismiss();
|
42 |
+
if(!this.hasGroups()) {
|
43 |
+
this.getGroupContainer().addClass('cas-has-groups');
|
44 |
+
}
|
45 |
+
$('ul', this._$groupContainer).first().append(obj);
|
46 |
+
}
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Remove a group from gui
|
51 |
+
* @author Joachim Jensen <jv@intox.dk>
|
52 |
+
* @since 2.1
|
53 |
+
* @param {Object} obj
|
54 |
+
* @return {void}
|
55 |
+
*/
|
56 |
+
this.remove = function(obj) {
|
57 |
+
var that = this;
|
58 |
+
obj
|
59 |
+
.css('background','red')
|
60 |
+
.fadeOut('slow', function() {
|
61 |
+
obj.remove();
|
62 |
+
if(!that.hasGroups()) {
|
63 |
+
that.getGroupContainer().removeClass('cas-has-groups');
|
64 |
+
}
|
65 |
+
});
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Set a group as current group
|
70 |
+
* Will reset former current group
|
71 |
+
* @author Joachim Jensen <jv@intox.dk>
|
72 |
+
* @since 2.1
|
73 |
+
* @param {Object} obj
|
74 |
+
* @return {Boolean}
|
75 |
+
*/
|
76 |
+
this.setCurrent = function(obj) {
|
77 |
+
var retval = true;
|
78 |
+
if(this.getCurrent()) {
|
79 |
+
retval = this.resetCurrent();
|
80 |
+
}
|
81 |
+
if(retval) {
|
82 |
+
this._currentGroup = obj;
|
83 |
+
this._setActive(true);
|
84 |
+
}
|
85 |
+
return retval;
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Reset current group if any
|
90 |
+
* Will take care of confirmation on unsaved rules
|
91 |
+
* and strip unsaved changes
|
92 |
+
* @author Joachim Jensen <jv@intox.dk>
|
93 |
+
* @since 2.1
|
94 |
+
* @return {Boolean}
|
95 |
+
*/
|
96 |
+
this.resetCurrent = function() {
|
97 |
+
var retval = true;
|
98 |
+
cas_alert.dismiss();
|
99 |
+
if(this.getCurrent()) {
|
100 |
+
|
101 |
+
if(this.isNewGroup()) {
|
102 |
+
var remove = true;
|
103 |
+
//Confirm if there are unsaved rules
|
104 |
+
if(this.hasUnsavedRules()) {
|
105 |
+
remove = confirm(CASAdmin.confirmCancel);
|
106 |
+
}
|
107 |
+
if(remove) {
|
108 |
+
this._setActive(false);
|
109 |
+
this.remove(this.getCurrent());
|
110 |
+
this._currentGroup = null;
|
111 |
+
} else {
|
112 |
+
retval = false;
|
113 |
+
}
|
114 |
+
|
115 |
+
} else {
|
116 |
+
|
117 |
+
var remove = true;
|
118 |
+
//Confirm if there are unsaved rules
|
119 |
+
if(this.hasUnsavedRules()) {
|
120 |
+
remove = confirm(CASAdmin.confirmCancel);
|
121 |
+
}
|
122 |
+
if(remove) {
|
123 |
+
//Remove new content that should not be saved
|
124 |
+
$("li.cas-new",this.getCurrent()).remove();
|
125 |
+
//Remove conditional headlines
|
126 |
+
$(".cas-condition",this.getCurrent()).each( function() {
|
127 |
+
if($(this).find('input').length == 0) {
|
128 |
+
$(this).remove();
|
129 |
+
}
|
130 |
+
});
|
131 |
+
this._setActive(false);
|
132 |
+
this._currentGroup = null;
|
133 |
+
} else {
|
134 |
+
retval = false;
|
135 |
+
}
|
136 |
+
|
137 |
+
|
138 |
+
}
|
139 |
+
|
140 |
+
}
|
141 |
+
return retval;
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Get current group
|
146 |
+
* @author Joachim Jensen <jv@intox.dk>
|
147 |
+
* @since 2.1
|
148 |
+
* @return {Object}
|
149 |
+
*/
|
150 |
+
this.getCurrent = function() {
|
151 |
+
return this._currentGroup;
|
152 |
+
}
|
153 |
+
|
154 |
+
/**
|
155 |
+
* Determines if current group is a new one
|
156 |
+
* I.e. it is not saved to database
|
157 |
+
* @author Joachim Jensen <jv@intox.dk>
|
158 |
+
* @since 2.1
|
159 |
+
* @return {Boolean}
|
160 |
+
*/
|
161 |
+
this.isNewGroup = function() {
|
162 |
+
return this.getCurrent().find('.cas_group_id').length == 0;
|
163 |
+
}
|
164 |
+
|
165 |
+
/**
|
166 |
+
* Determines if current group has unsaved changes
|
167 |
+
* @author Joachim Jensen <jv@intox.dk>
|
168 |
+
* @since 2.1
|
169 |
+
* @return {Boolean}
|
170 |
+
*/
|
171 |
+
this.hasUnsavedRules = function() {
|
172 |
+
return this.getCurrent().find('li.cas-new').length > 0;
|
173 |
+
}
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Determines if there are any condition groups
|
177 |
+
* @author Joachim Jensen <jv@intox.dk>
|
178 |
+
* @since 2.1
|
179 |
+
* @return {Boolean}
|
180 |
+
*/
|
181 |
+
this.hasGroups = function() {
|
182 |
+
return $('.cas-group-single',this.getGroupContainer()).length > 0;
|
183 |
+
}
|
184 |
+
|
185 |
+
/**
|
186 |
+
* Manages CSS class for group and
|
187 |
+
* the ability to add and edit rules
|
188 |
+
* @author Joachim Jensen <jv@intox.dk>
|
189 |
+
* @since 2.1
|
190 |
+
* @param {Boolean} active
|
191 |
+
*/
|
192 |
+
this._setActive = function(active) {
|
193 |
+
$('.js-cas-condition-add').attr('disabled',!active);
|
194 |
+
this.getCurrent().toggleClass(this._activeClass,active);
|
195 |
+
var checkboxes = $("input:checkbox",this.getCurrent());
|
196 |
+
checkboxes.attr('disabled',!active);
|
197 |
+
if(active) {
|
198 |
+
checkboxes.attr('checked',true);
|
199 |
+
}
|
200 |
+
}
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Get condition group container
|
204 |
+
* @author Joachim Jensen <jv@intox.dk>
|
205 |
+
* @since 2.1
|
206 |
+
* @return {Object}
|
207 |
+
*/
|
208 |
+
this.getGroupContainer = function() {
|
209 |
+
return this._$groupContainer;
|
210 |
}
|
211 |
}
|
212 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
/**
|
214 |
+
* Alert handler for sidebar editor
|
215 |
+
* @type {Object}
|
|
|
216 |
*/
|
217 |
+
var cas_alert = {
|
218 |
+
|
219 |
+
/**
|
220 |
+
* Message object
|
221 |
+
* @type {Object}
|
222 |
+
*/
|
223 |
+
_$message: null,
|
224 |
+
|
225 |
+
/**
|
226 |
+
* Set and print alert message
|
227 |
+
* @author Joachim Jensen <jv@intox.dk>
|
228 |
+
* @since 2.1
|
229 |
+
* @param {string} text
|
230 |
+
* @param {string} cssClass
|
231 |
+
*/
|
232 |
+
set: function(text,cssClass) {
|
233 |
+
if(this._$message) {
|
234 |
+
this._$message.remove();
|
235 |
+
}
|
236 |
+
this._$message = $('<div class="cas-alert"><div class="'+cssClass+'"><p>'+text+'</p></div></div>');
|
237 |
+
this._$message
|
238 |
+
.fadeIn('slow')
|
239 |
+
.appendTo('body');
|
240 |
+
},
|
241 |
+
|
242 |
+
/**
|
243 |
+
* Remove a current alert message
|
244 |
+
* @author Joachim Jensen <jv@intox.dk>
|
245 |
+
* @since 2.1
|
246 |
+
* @return {void}
|
247 |
+
*/
|
248 |
+
dismiss: function() {
|
249 |
+
if(this._$message) {
|
250 |
+
this._$message.fadeOut('slow',function() {
|
251 |
+
$(this).remove();
|
252 |
+
});
|
253 |
+
}
|
254 |
}
|
255 |
}
|
256 |
+
|
257 |
+
var cas_admin = {
|
258 |
+
|
259 |
+
groups:new GroupHandler(),
|
260 |
+
nonce: $('#_ca-sidebar-nonce').val(),
|
261 |
+
sidebarID: $('#current_sidebar').val(),
|
262 |
+
|
263 |
+
init: function() {
|
264 |
+
|
265 |
+
this.groups.setCurrent($('.cas-group-single',this.groups.getGroupContainer()).first());
|
266 |
+
|
267 |
+
this.addPaginationListener();
|
268 |
+
this.addTabListener();
|
269 |
+
this.addPublishListener();
|
270 |
+
|
271 |
+
//this.addCheckboxListener();
|
272 |
+
this.addHandleListener();
|
273 |
+
this.addSearchListener();
|
274 |
+
this.addNewGroupListener();
|
275 |
+
this.addSetGroupListener();
|
276 |
+
this.addAddContentListener();
|
277 |
+
|
278 |
+
},
|
279 |
+
|
280 |
+
/**
|
281 |
+
* Listen to publish click to remind
|
282 |
+
* user of unsaved changes
|
283 |
+
* @author Joachim Jensen <jv@intox.dk>
|
284 |
+
* @since 2.1
|
285 |
+
*/
|
286 |
+
addPublishListener: function() {
|
287 |
+
$('#publish').click( function(e) {
|
288 |
+
var canSave = cas_admin.groups.resetCurrent();
|
289 |
+
if(!canSave) {
|
290 |
+
e.preventDefault();
|
291 |
+
}
|
292 |
+
});
|
293 |
+
},
|
294 |
+
|
295 |
+
/**
|
296 |
+
* Listen to pagination for select boxes
|
297 |
+
* @author Joachim Jensen <jv@intox.dk>
|
298 |
+
* @since 2.1
|
299 |
+
*/
|
300 |
+
addPaginationListener: function() {
|
301 |
+
$('.cas-contentlist').on('click','.page-numbers', function(e) {
|
302 |
+
e.preventDefault();
|
303 |
+
|
304 |
+
var link = $(this);
|
305 |
+
var action = link.closest('.cas-rule-content');
|
306 |
+
|
307 |
+
$.ajax({
|
308 |
+
url: ajaxurl,
|
309 |
+
data:link.attr('href').split('?')[1]+'&action=cas-module-'+action.attr('data-cas-module'),
|
310 |
+
dataType: 'JSON',
|
311 |
+
type: 'POST',
|
312 |
+
success:function(data){
|
313 |
+
link.closest('.cas-contentlist').html(data);
|
314 |
+
},
|
315 |
+
error: function(xhr, desc, e) {
|
316 |
+
console.log(xhr.responseText);
|
317 |
+
}
|
318 |
+
});
|
319 |
+
|
320 |
+
});
|
321 |
+
},
|
322 |
+
|
323 |
+
/**
|
324 |
+
* Listen to and handle adding
|
325 |
+
* content to current group
|
326 |
+
* @author Joachim Jensen <jv@intox.dk>
|
327 |
+
* @since 2.0
|
328 |
+
*/
|
329 |
+
addAddContentListener: function() {
|
330 |
+
$("#cas-accordion").on("click",".js-cas-condition-add", function(e) {
|
331 |
+
|
332 |
+
e.preventDefault();
|
333 |
+
|
334 |
+
if(cas_admin.groups.getCurrent() != null) {
|
335 |
+
|
336 |
+
var button = $(this);
|
337 |
+
|
338 |
+
var old_checkboxes = $("input:checkbox:checked", button.closest('.cas-rule-content'));
|
339 |
+
var condition_elem = $('.cas-condition-'+button.attr('data-cas-condition'), cas_admin.groups.getCurrent());
|
340 |
+
var data = [];
|
341 |
+
|
342 |
+
if(condition_elem.length == 0) {
|
343 |
+
condition_elem = $('<div class="cas-condition cas-condition-'+button.attr('data-cas-condition')+'"><strong>'+button.closest('.accordion-section').find('.accordion-section-title').text()+'</strong><ul></ul></div>');
|
344 |
+
cas_admin.groups.getCurrent().find('.cas-content').append(condition_elem);
|
345 |
+
}
|
346 |
+
|
347 |
+
//Check if checkbox with value already exists
|
348 |
+
old_checkboxes.each( function() {
|
349 |
+
var elem = $(this);
|
350 |
+
if(condition_elem.find("input[value='"+elem.val()+"']").length == 0) {
|
351 |
+
var temp = elem.closest('li').clone().addClass('cas-new');
|
352 |
+
//jQuery 1.7 fix
|
353 |
+
data.push(temp[0]);
|
354 |
+
}
|
355 |
+
});
|
356 |
+
old_checkboxes.attr('checked',false);
|
357 |
+
|
358 |
+
$('ul',condition_elem).append(data);
|
359 |
+
}
|
360 |
+
|
361 |
+
});
|
362 |
+
},
|
363 |
+
|
364 |
+
/**
|
365 |
+
* Listen to and handle Add New Group clicks
|
366 |
+
* Uses AJAX to create a new group
|
367 |
+
* @author Joachim Jensen <jv@intox.dk>
|
368 |
+
* @since 2.0
|
369 |
+
*/
|
370 |
+
addNewGroupListener: function() {
|
371 |
+
this.groups.getGroupContainer().on('click', '.js-cas-group-new', function(e) {
|
372 |
+
|
373 |
+
e.preventDefault();
|
374 |
+
|
375 |
+
var group = $('<li>', {class: 'cas-group-single cas-group-single-new', html: '<span class="cas-group-control cas-group-control-active">'+
|
376 |
+
'<input type="button" class="button js-cas-group-save" value="'+CASAdmin.save+'" /> | <a class="js-cas-group-cancel" href="#">'+CASAdmin.cancel+'</a>'+
|
377 |
+
'</span>'+
|
378 |
+
'<span class="cas-group-control">'+
|
379 |
+
'<a class="js-cas-group-edit" href="#">'+CASAdmin.edit+'</a> | <a class="submitdelete trash js-cas-group-remove" href="#">'+CASAdmin.remove+'</a>'+
|
380 |
+
'</span>'+
|
381 |
+
'<div class="cas-content"></div>'});
|
382 |
+
|
383 |
+
cas_admin.groups.add(group);
|
384 |
+
});
|
385 |
+
},
|
386 |
+
|
387 |
+
/**
|
388 |
+
* Listen to and manage
|
389 |
+
* group saving, editing, removal and cancelling
|
390 |
+
* @author Joachim Jensen <jv@intox.dk>
|
391 |
+
* @since 2.0
|
392 |
+
*/
|
393 |
+
addSetGroupListener: function() {
|
394 |
+
this.groups.getGroupContainer().on("click", ".js-cas-group-save", function(e){
|
395 |
+
e.preventDefault();
|
396 |
+
|
397 |
+
var button = $(this);
|
398 |
+
button.attr('disabled',true);
|
399 |
+
|
400 |
+
var data = cas_admin.groups.getCurrent().find("input").serializeArray();
|
401 |
+
data.push({name:"action",value:"cas_add_rule"});
|
402 |
+
data.push({name:"token",value:cas_admin.nonce});
|
403 |
+
data.push({name:"current_id",value:cas_admin.sidebarID});
|
404 |
+
|
405 |
+
$.ajax({
|
406 |
+
url: ajaxurl,
|
407 |
+
data:$.param(data),
|
408 |
+
dataType: 'JSON',
|
409 |
+
type: 'POST',
|
410 |
+
success:function(data){
|
411 |
+
|
412 |
+
cas_alert.set(data.message,'updated')
|
413 |
+
|
414 |
+
var content = $("input:checkbox",cas_admin.groups.getCurrent()).closest('li');
|
415 |
+
if(content.length > 0) {
|
416 |
+
$("input:checkbox:not(:checked)",cas_admin.groups.getCurrent()).closest('li').remove();
|
417 |
+
content.removeClass('cas-new');
|
418 |
+
}
|
419 |
+
|
420 |
+
$(".cas-condition",cas_admin.groups.getCurrent()).each( function() {
|
421 |
+
if($(this).find('input').length == 0) {
|
422 |
+
$(this).remove();
|
423 |
+
}
|
424 |
+
});
|
425 |
+
|
426 |
+
if(data.new_post_id) {
|
427 |
+
console.log("in");
|
428 |
+
cas_admin.groups.getCurrent().append('<input type="hidden" class="cas_group_id" name="cas_group_id" value="'+data.new_post_id+'" />');
|
429 |
+
}
|
430 |
+
button.attr('disabled',false);
|
431 |
+
|
432 |
+
},
|
433 |
+
error: function(xhr, desc, e) {
|
434 |
+
cas_alert.set(xhr.responseText,'error');
|
435 |
+
button.attr('disabled',false);
|
436 |
+
}
|
437 |
+
});
|
438 |
+
})
|
439 |
+
.on("click", ".js-cas-group-cancel", function(e){
|
440 |
+
e.preventDefault();
|
441 |
+
cas_admin.groups.resetCurrent();
|
442 |
+
})
|
443 |
+
.on("click", ".js-cas-group-edit", function(e){
|
444 |
+
e.preventDefault();
|
445 |
+
cas_admin.groups.setCurrent($(this).parents('.cas-group-single'));
|
446 |
+
})
|
447 |
+
.on("click", ".js-cas-group-remove", function(e){
|
448 |
+
e.preventDefault();
|
449 |
+
|
450 |
+
if(confirm(CASAdmin.confirmRemove) == true) {
|
451 |
+
|
452 |
+
var button = $(this);
|
453 |
+
button.attr('disabled',true);
|
454 |
+
var group = $(this).closest('.cas-group-single');
|
455 |
+
$.ajax({
|
456 |
+
url: ajaxurl,
|
457 |
+
data:{
|
458 |
+
action: 'cas_remove_group',
|
459 |
+
token: cas_admin.nonce,
|
460 |
+
cas_group_id: group.find('.cas_group_id').val(),
|
461 |
+
current_id: cas_admin.sidebarID
|
462 |
+
},
|
463 |
+
dataType: 'JSON',
|
464 |
+
type: 'POST',
|
465 |
+
success:function(data){
|
466 |
+
cas_alert.set(data.message,'updated');
|
467 |
+
cas_admin.groups.remove(group);
|
468 |
+
button.attr('disabled',false);
|
469 |
+
},
|
470 |
+
error: function(xhr, desc, e) {
|
471 |
+
cas_alert.set(xhr.responseText,'error');
|
472 |
+
button.attr('disabled',false);
|
473 |
+
}
|
474 |
+
});
|
475 |
+
|
476 |
+
}
|
477 |
+
});
|
478 |
+
},
|
479 |
+
|
480 |
+
/**
|
481 |
+
* Listen to and manage tab clicks
|
482 |
+
* Based on code from WordPress Core
|
483 |
+
* @author Joachim Jensen <jv@intox.dk>
|
484 |
+
* @since 2.0
|
485 |
+
*/
|
486 |
+
addTabListener: function() {
|
487 |
+
var class_active = 'tabs-panel-active',
|
488 |
+
class_inactive = 'tabs-panel-inactive';
|
489 |
+
|
490 |
+
$("#cas-accordion .accordion-section").first().addClass('open');
|
491 |
+
|
492 |
+
$('.nav-tab-link').on('click', function(e) {
|
493 |
+
e.preventDefault();
|
494 |
+
|
495 |
+
panelId = $(this).data( 'type' );
|
496 |
+
|
497 |
+
wrapper = $(this).closest('.accordion-section-content');
|
498 |
+
|
499 |
+
// upon changing tabs, we want to uncheck all checkboxes
|
500 |
+
$('input', wrapper).removeAttr('checked');
|
501 |
+
|
502 |
+
//Change active tab panel
|
503 |
+
$('.' + class_active, wrapper).removeClass(class_active).addClass(class_inactive);
|
504 |
+
$('#' + panelId, wrapper).removeClass(class_inactive).addClass(class_active);
|
505 |
+
|
506 |
+
$('.tabs', wrapper).removeClass('tabs');
|
507 |
+
$(this).parent().addClass('tabs');
|
508 |
+
|
509 |
+
// select the search bar
|
510 |
+
$('.quick-search', wrapper).focus();
|
511 |
+
|
512 |
+
});
|
513 |
+
},
|
514 |
+
|
515 |
+
/**
|
516 |
+
* Set tickers if at least one checkbox is checked
|
517 |
+
*/
|
518 |
+
addCheckboxListener: function() {
|
519 |
+
$('.cas-rule-content :input').change( function() {
|
520 |
+
var parent = $(this).parents('.cas-rule-content');
|
521 |
+
cas_admin.toggleTick(parent);
|
522 |
+
if($(this).attr('class') == 'cas-chk-all')
|
523 |
+
cas_admin.toggleSelectAll(this, parent);
|
524 |
+
}).change(); //fire change event on page load
|
525 |
+
},
|
526 |
+
toggleTick: function(parent) {
|
527 |
+
//Toggle on any selected checkbox
|
528 |
+
parent.prev().toggleClass('cas-tick',parent.find('input:checked').length > 0);
|
529 |
+
},
|
530 |
+
/**
|
531 |
+
* Toggle specific input depending on "show with all" checkbox
|
532 |
+
*/
|
533 |
+
toggleSelectAll: function(checkbox, parent) {
|
534 |
+
var checkboxes = parent.find("input[type=checkbox]").not(checkbox);
|
535 |
+
checkboxes.attr("disabled", $(checkbox).is(":checked"));
|
536 |
+
},
|
537 |
+
/**
|
538 |
+
* The value of Handle selection will control the
|
539 |
+
* accessibility of the host sidebar selection
|
540 |
+
* If Handling is manual, selection of host sidebar will be disabled
|
541 |
+
* @author Joachim Jensen <jv@intox.dk>
|
542 |
+
* @since 2.1
|
543 |
+
*/
|
544 |
+
addHandleListener: function() {
|
545 |
+
var host = $("select[name='host']");
|
546 |
+
var code = $('<code>display_ca_sidebar();</code>');
|
547 |
+
host.parent().append(code);
|
548 |
+
$("select[name='handle']").change(function(){
|
549 |
+
var handle = $(this);
|
550 |
+
host.attr("disabled", handle.val() == 2);
|
551 |
+
if(handle.val() == 2) {
|
552 |
+
host.hide();
|
553 |
+
code.show();
|
554 |
+
} else {
|
555 |
+
host.show();
|
556 |
+
code.hide();
|
557 |
+
}
|
558 |
+
}).change(); //fire change event on page load
|
559 |
+
},
|
560 |
+
/**
|
561 |
+
* Use AJAX to search for content from a specific module
|
562 |
+
*/
|
563 |
+
addSearchListener: function() {
|
564 |
+
var searchTimer;
|
565 |
+
|
566 |
+
$('.cas-autocomplete').keypress(function(e){
|
567 |
+
var t = $(this);
|
568 |
+
|
569 |
+
//If Enter (13) is pressed, search immediately
|
570 |
+
if( 13 == e.which ) {
|
571 |
+
cas_admin.updateSearchResults( t );
|
572 |
+
return false;
|
573 |
+
}
|
574 |
+
|
575 |
+
//If timer is already in progress, stop it
|
576 |
+
if( searchTimer ) clearTimeout(searchTimer);
|
577 |
+
|
578 |
+
searchTimer = setTimeout(function(){
|
579 |
+
cas_admin.updateSearchResults( t );
|
580 |
+
}, 400);
|
581 |
+
}).attr('autocomplete','off');
|
582 |
+
|
583 |
+
},
|
584 |
+
/**
|
585 |
+
* Make AJAX request to get results
|
586 |
+
* @author Joachim Jensen <jv@intox.dk>
|
587 |
+
* @since 2
|
588 |
+
* @param {Object} input
|
589 |
+
* @return {void}
|
590 |
+
*/
|
591 |
+
updateSearchResults: function(input) {
|
592 |
+
var panel,
|
593 |
+
minSearchLength = 2,
|
594 |
+
q = input.val();
|
595 |
+
|
596 |
+
if( q.length < minSearchLength ) return;
|
597 |
+
|
598 |
+
panel = input.parents('.tabs-panel');
|
599 |
+
var spinner = $('.spinner', panel);
|
600 |
+
|
601 |
+
spinner.show();
|
602 |
+
|
603 |
+
$.ajax({
|
604 |
+
url: ajaxurl,
|
605 |
+
data:{
|
606 |
+
'action': input.attr('class').split(' ')[0],
|
607 |
+
'response-format': 'JSON',
|
608 |
+
'nonce': cas_admin.nonce,
|
609 |
+
'sidebar_id': cas_admin.sidebarID,
|
610 |
+
'type': input.attr('id'),
|
611 |
+
'q': q
|
612 |
+
},
|
613 |
+
dataType: 'JSON',
|
614 |
+
type: 'POST',
|
615 |
+
success:function(response){
|
616 |
+
var elements = "";
|
617 |
+
if(response.length > 0) {
|
618 |
+
$.each(response, function(i,item) {
|
619 |
+
elements += '<li><label class="selectit"><input value="'+item.value+'" type="checkbox" name="'+item.name+'[]"/> '+item.label+'</label></li>';
|
620 |
+
});
|
621 |
+
} else {
|
622 |
+
elements = '<li><p>'+CASAdmin.noResults+'</p></li>';
|
623 |
+
}
|
624 |
+
|
625 |
+
$('.categorychecklist', panel).html(elements);
|
626 |
+
spinner.hide();
|
627 |
+
},
|
628 |
+
error: function(xhr, desc, e) {
|
629 |
+
console.log(xhr.responseText);
|
630 |
+
}
|
631 |
+
});
|
632 |
+
|
633 |
+
},
|
634 |
+
}
|
635 |
+
|
636 |
+
$(document).ready(function(){ cas_admin.init(); });
|
637 |
+
|
638 |
+
})(jQuery);
|
js/index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**/
|
js/jquery.ui.accordion.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
(function($,undefined){$.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase();}},_create:function(){var self=this,options=self.options;self.running=0;self.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");self.headers=self.element.find(options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){if(options.disabled){return;}$(this).addClass("ui-state-hover");}).bind("mouseleave.accordion",function(){if(options.disabled){return;}$(this).removeClass("ui-state-hover");}).bind("focus.accordion",function(){if(options.disabled){return;}$(this).addClass("ui-state-focus");}).bind("blur.accordion",function(){if(options.disabled){return;}$(this).removeClass("ui-state-focus");});self.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(options.navigation){var current=self.element.find("a").filter(options.navigationFilter).eq(0);if(current.length){var header=current.closest(".ui-accordion-header");if(header.length){self.active=header;}else{self.active=current.closest(".ui-accordion-content").prev();}}}self.active=self._findActive(self.active||options.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");self.active.next().addClass("ui-accordion-content-active");self._createIcons();self.resize();self.element.attr("role","tablist");self.headers.attr("role","tab").bind("keydown.accordion",function(event){return self._keydown(event);}).next().attr("role","tabpanel");self.headers.not(self.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();if(!self.active.length){self.headers.eq(0).attr("tabIndex",0);}else{self.active.attr({"aria-expanded":"true",tabIndex:0});}if(!$.browser.safari){self.headers.find("a").attr("tabIndex",-1);}if(options.event){self.headers.bind(options.event.split(" ").join(".accordion ")+".accordion",function(event){self._clickHandler.call(self,event,this);event.preventDefault();});}},_createIcons:function(){var options=this.options;if(options.icons){$("<span></span>").addClass("ui-icon "+options.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(options.icons.header).toggleClass(options.icons.headerSelected);this.element.addClass("ui-accordion-icons");}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons");},destroy:function(){var options=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var contents=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(options.autoHeight||options.fillHeight){contents.css("height","");}return $.Widget.prototype.destroy.call(this);},_setOption:function(key,value){$.Widget.prototype._setOption.apply(this,arguments);if(key=="active"){this.activate(value);}if(key=="icons"){this._destroyIcons();if(value){this._createIcons();}}if(key=="disabled"){this.headers.add(this.headers.next())[value?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled");}},_keydown:function(event){if(this.options.disabled||event.altKey||event.ctrlKey){return;}var keyCode=$.ui.keyCode,length=this.headers.length,currentIndex=this.headers.index(event.target),toFocus=false;switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=this.headers[(currentIndex+1)%length];break;case keyCode.LEFT:case keyCode.UP:toFocus=this.headers[(currentIndex-1+length)%length];break;case keyCode.SPACE:case keyCode.ENTER:this._clickHandler({target:event.target},event.target);event.preventDefault();}if(toFocus){$(event.target).attr("tabIndex",-1);$(toFocus).attr("tabIndex",0);toFocus.focus();return false;}return true;},resize:function(){var options=this.options,maxHeight;if(options.fillSpace){if($.browser.msie){var defOverflow=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden");}maxHeight=this.element.parent().height();if($.browser.msie){this.element.parent().css("overflow",defOverflow);}this.headers.each(function(){maxHeight-=$(this).outerHeight(true);});this.headers.next().each(function(){$(this).height(Math.max(0,maxHeight-$(this).innerHeight()+$(this).height()));}).css("overflow","auto");}else{if(options.autoHeight){maxHeight=0;this.headers.next().each(function(){maxHeight=Math.max(maxHeight,$(this).height("").height());}).height(maxHeight);}}return this;},activate:function(index){this.options.active=index;var active=this._findActive(index)[0];this._clickHandler({target:active},active);return this;},_findActive:function(selector){return selector?typeof selector==="number"?this.headers.filter(":eq("+selector+")"):this.headers.not(this.headers.not(selector)):selector===false?$([]):this.headers.filter(":eq(0)");},_clickHandler:function(event,target){var options=this.options;if(options.disabled){return;}if(!event.target){if(!options.collapsible){return;}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(options.icons.headerSelected).addClass(options.icons.header);this.active.next().addClass("ui-accordion-content-active");var toHide=this.active.next(),data={options:options,newHeader:$([]),oldHeader:options.active,newContent:$([]),oldContent:toHide},toShow=(this.active=$([]));this._toggle(toShow,toHide,data);return;}var clicked=$(event.currentTarget||target),clickedIsActive=clicked[0]===this.active[0];options.active=options.collapsible&&clickedIsActive?false:this.headers.index(clicked);if(this.running||(!options.collapsible&&clickedIsActive)){return;}var active=this.active,toShow=clicked.next(),toHide=this.active.next(),data={options:options,newHeader:clickedIsActive&&options.collapsible?$([]):clicked,oldHeader:this.active,newContent:clickedIsActive&&options.collapsible?$([]):toShow,oldContent:toHide},down=this.headers.index(this.active[0])>this.headers.index(clicked[0]);this.active=clickedIsActive?$([]):clicked;this._toggle(toShow,toHide,data,clickedIsActive,down);active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(options.icons.headerSelected).addClass(options.icons.header);if(!clickedIsActive){clicked.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(options.icons.header).addClass(options.icons.headerSelected);clicked.next().addClass("ui-accordion-content-active");}return;},_toggle:function(toShow,toHide,data,clickedIsActive,down){var self=this,options=self.options;self.toShow=toShow;self.toHide=toHide;self.data=data;var complete=function(){if(!self){return;}return self._completed.apply(self,arguments);};self._trigger("changestart",null,self.data);self.running=toHide.size()===0?toShow.size():toHide.size();if(options.animated){var animOptions={};if(options.collapsible&&clickedIsActive){animOptions={toShow:$([]),toHide:toHide,complete:complete,down:down,autoHeight:options.autoHeight||options.fillSpace};}else{animOptions={toShow:toShow,toHide:toHide,complete:complete,down:down,autoHeight:options.autoHeight||options.fillSpace};}if(!options.proxied){options.proxied=options.animated;}if(!options.proxiedDuration){options.proxiedDuration=options.duration;}options.animated=$.isFunction(options.proxied)?options.proxied(animOptions):options.proxied;options.duration=$.isFunction(options.proxiedDuration)?options.proxiedDuration(animOptions):options.proxiedDuration;var animations=$.ui.accordion.animations,duration=options.duration,easing=options.animated;if(easing&&!animations[easing]&&!$.easing[easing]){easing="slide";}if(!animations[easing]){animations[easing]=function(options){this.slide(options,{easing:easing,duration:duration||700});};}animations[easing](animOptions);}else{if(options.collapsible&&clickedIsActive){toShow.toggle();}else{toHide.hide();toShow.show();}complete(true);}toHide.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();toShow.prev().attr({"aria-expanded":"true",tabIndex:0}).focus();},_completed:function(cancel){this.running=cancel?0:--this.running;if(this.running){return;}if(this.options.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""});}this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length){this.toHide.parent()[0].className=this.toHide.parent()[0].className;}this._trigger("change",null,this.data);}});$.extend($.ui.accordion,{version:"1.8.9",animations:{slide:function(options,additions){options=$.extend({easing:"swing",duration:300},options,additions);if(!options.toHide.size()){options.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},options);return;}if(!options.toShow.size()){options.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},options);return;}var overflow=options.toShow.css("overflow"),percentDone=0,showProps={},hideProps={},fxAttrs=["height","paddingTop","paddingBottom"],originalWidth;var s=options.toShow;originalWidth=s[0].style.width;s.width(parseInt(s.parent().width(),10)-parseInt(s.css("paddingLeft"),10)-parseInt(s.css("paddingRight"),10)-(parseInt(s.css("borderLeftWidth"),10)||0)-(parseInt(s.css("borderRightWidth"),10)||0));$.each(fxAttrs,function(i,prop){hideProps[prop]="hide";var parts=(""+$.css(options.toShow[0],prop)).match(/^([\d+-.]+)(.*)$/);showProps[prop]={value:parts[1],unit:parts[2]||"px"};});options.toShow.css({height:0,overflow:"hidden"}).show();options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate(hideProps,{step:function(now,settings){if(settings.prop=="height"){percentDone=(settings.end-settings.start===0)?0:(settings.now-settings.start)/(settings.end-settings.start);}options.toShow[0].style[settings.prop]=(percentDone*showProps[settings.prop].value)+showProps[settings.prop].unit;},duration:options.duration,easing:options.easing,complete:function(){if(!options.autoHeight){options.toShow.css("height","");}options.toShow.css({width:originalWidth,overflow:overflow});options.complete();}});},bounceslide:function(options){this.slide(options,{easing:options.down?"easeOutBounce":"swing",duration:options.down?1000:200});}}});})(jQuery);
|
|
lang/content-aware-sidebars-da_DK.mo
CHANGED
Binary file
|
lang/content-aware-sidebars-da_DK.po
CHANGED
@@ -2,286 +2,418 @@
|
|
2 |
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Content Aware Sidebars
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
-
"PO-Revision-Date:
|
9 |
-
"Last-Translator:
|
10 |
-
"Language-Team:
|
11 |
"Language: da_DK\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
#: content-aware-sidebars.php:
|
|
|
|
|
|
|
|
|
17 |
msgid "Exposure"
|
18 |
msgstr "Eksponering"
|
19 |
|
20 |
-
#: content-aware-sidebars.php:
|
21 |
msgid "Singular"
|
22 |
msgstr "Singulær"
|
23 |
|
24 |
-
#: content-aware-sidebars.php:
|
25 |
msgid "Singular & Archive"
|
26 |
msgstr "Singulær og arkiv"
|
27 |
|
28 |
-
#: content-aware-sidebars.php:
|
29 |
msgid "Archive"
|
30 |
msgstr "Arkiv"
|
31 |
|
32 |
-
#: content-aware-sidebars.php:
|
33 |
msgctxt "option"
|
34 |
msgid "Handle"
|
35 |
msgstr "Håndtering"
|
36 |
|
37 |
-
#: content-aware-sidebars.php:
|
38 |
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
39 |
msgstr "Erstat værts-sidebar, flet med den eller tilføj denne sidebar manuelt."
|
40 |
|
41 |
-
#: content-aware-sidebars.php:
|
42 |
msgid "Replace"
|
43 |
msgstr "Erstat"
|
44 |
|
45 |
-
#: content-aware-sidebars.php:
|
46 |
msgid "Merge"
|
47 |
msgstr "Flet"
|
48 |
|
49 |
-
#: content-aware-sidebars.php:
|
50 |
msgid "Manual"
|
51 |
msgstr "Manuel"
|
52 |
|
53 |
-
#: content-aware-sidebars.php:
|
54 |
msgid "Host Sidebar"
|
55 |
msgstr "Værts-sidebar"
|
56 |
|
57 |
-
#: content-aware-sidebars.php:
|
58 |
msgid "Merge position"
|
59 |
msgstr "Fletteposition"
|
60 |
|
61 |
-
#: content-aware-sidebars.php:
|
62 |
msgid "Place sidebar on top or bottom of host when merging."
|
63 |
msgstr "Flet ind fra oven eller bunden."
|
64 |
|
65 |
-
#: content-aware-sidebars.php:
|
66 |
msgid "Top"
|
67 |
msgstr "Top"
|
68 |
|
69 |
-
#: content-aware-sidebars.php:
|
70 |
msgid "Bottom"
|
71 |
msgstr "Bund"
|
72 |
|
73 |
-
#: content-aware-sidebars.php:
|
74 |
msgid "Sidebars"
|
75 |
msgstr "Sidebars"
|
76 |
|
77 |
-
#: content-aware-sidebars.php:
|
78 |
msgid "Sidebar"
|
79 |
msgstr "Sidebar"
|
80 |
|
81 |
-
#: content-aware-sidebars.php:
|
82 |
msgctxt "sidebar"
|
83 |
msgid "Add New"
|
84 |
msgstr "Tilføj ny"
|
85 |
|
86 |
-
#: content-aware-sidebars.php:
|
87 |
msgid "Add New Sidebar"
|
88 |
msgstr "Tilføj ny sidebar"
|
89 |
|
90 |
-
#: content-aware-sidebars.php:
|
91 |
msgid "Edit Sidebar"
|
92 |
msgstr "Rediger sidebar"
|
93 |
|
94 |
-
#: content-aware-sidebars.php:
|
95 |
msgid "New Sidebar"
|
96 |
msgstr "Ny sidebar"
|
97 |
|
98 |
-
#: content-aware-sidebars.php:
|
99 |
msgid "All Sidebars"
|
100 |
msgstr "Alle sidebars"
|
101 |
|
102 |
-
#: content-aware-sidebars.php:
|
103 |
msgid "View Sidebar"
|
104 |
msgstr "Vis sidebar"
|
105 |
|
106 |
-
#: content-aware-sidebars.php:
|
107 |
msgid "Search Sidebars"
|
108 |
msgstr "Søg sidebars"
|
109 |
|
110 |
-
#: content-aware-sidebars.php:
|
111 |
msgid "No sidebars found"
|
112 |
msgstr "Ingen sidebars fundet"
|
113 |
|
114 |
-
#: content-aware-sidebars.php:
|
115 |
msgid "No sidebars found in Trash"
|
116 |
msgstr "Ingen sidebars fundet i papirkurven"
|
117 |
|
118 |
-
#: content-aware-sidebars.php:
|
119 |
-
msgid "
|
120 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
-
#: content-aware-sidebars.php:
|
123 |
msgid "Sidebar updated."
|
124 |
msgstr "Sidebar opdateret."
|
125 |
|
126 |
-
#: content-aware-sidebars.php:
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
129 |
|
130 |
-
#: content-aware-sidebars.php:
|
131 |
msgid "Sidebar saved."
|
132 |
msgstr "Sidebar gemt."
|
133 |
|
134 |
-
#: content-aware-sidebars.php:
|
135 |
-
msgid "Sidebar submitted.
|
136 |
-
msgstr "Sidebar indsendt.
|
137 |
|
138 |
-
#: content-aware-sidebars.php:
|
139 |
-
|
140 |
-
"Sidebar scheduled for: <strong>%1$s</strong>.
|
141 |
-
"
|
142 |
-
msgstr ""
|
143 |
-
"Sidebar planlagt til: <strong>%1$s</strong>. <a href=\"%2$s\">Håndter "
|
144 |
-
"widgets</a>"
|
145 |
|
146 |
-
|
147 |
-
#: content-aware-sidebars.php:263
|
148 |
msgid "M j, Y @ G:i"
|
149 |
msgstr "j. M, Y @ G:i"
|
150 |
|
151 |
-
#: content-aware-sidebars.php:
|
152 |
msgid "Sidebar draft updated."
|
153 |
msgstr "Sidebar-kladde opdateret."
|
154 |
|
155 |
-
#: content-aware-sidebars.php:
|
156 |
msgid "Please update Host Sidebar"
|
157 |
msgstr "Værts-sidebar skal opdateres"
|
158 |
|
159 |
-
#: content-aware-sidebars.php:
|
160 |
msgid "Manage Widgets"
|
161 |
msgstr "Håndter widgets"
|
162 |
|
163 |
-
#: content-aware-sidebars.php:
|
164 |
-
msgid "
|
165 |
-
msgstr "
|
166 |
|
167 |
-
#: content-aware-sidebars.php:
|
168 |
msgid "Content"
|
169 |
msgstr "Indhold"
|
170 |
|
171 |
-
#: content-aware-sidebars.php:
|
172 |
msgid "Options"
|
173 |
msgstr "Indstillinger"
|
174 |
|
175 |
-
#: content-aware-sidebars.php:
|
176 |
-
msgid "
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
|
179 |
-
#: content-aware-sidebars.php:
|
180 |
msgid ""
|
181 |
-
"
|
182 |
-
"
|
183 |
msgstr ""
|
184 |
-
"
|
185 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
|
187 |
-
#: content-aware-sidebars.php:
|
188 |
-
|
189 |
-
|
|
|
|
|
190 |
|
191 |
-
#: content-aware-sidebars.php:
|
192 |
-
msgid "
|
193 |
-
msgstr "
|
194 |
|
195 |
-
#:
|
196 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
msgstr "Vis ved alle %s"
|
198 |
|
199 |
-
#: modules/abstract.php:
|
|
|
200 |
msgid "View All"
|
201 |
msgstr "Vis alle"
|
202 |
|
203 |
-
#: modules/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
msgid "Authors"
|
205 |
msgstr "Forfattere"
|
206 |
|
207 |
-
#: modules/bbpress.php:
|
208 |
msgid "bbPress User Profiles"
|
209 |
msgstr "bbPress brugerprofiler"
|
210 |
|
211 |
-
#: modules/bp_member.php:
|
212 |
msgid "BuddyPress Members"
|
213 |
msgstr "BuddyPress medlemmer"
|
214 |
|
215 |
-
#: modules/page_template.php:
|
216 |
msgid "Page Templates"
|
217 |
msgstr "Skabeloner"
|
218 |
|
219 |
-
#: modules/polylang.php:
|
220 |
-
#: modules/wpml.php:
|
221 |
msgid "Languages"
|
222 |
msgstr "Sprog"
|
223 |
|
224 |
-
#: modules/post_type.php:
|
225 |
msgid "Post Types"
|
226 |
msgstr "Indholdstyper"
|
227 |
|
228 |
-
#: modules/post_type.php:
|
|
|
229 |
msgid "Automatically select new children of a selected ancestor"
|
230 |
msgstr "Vælg automatisk nye børn af den valgte forælder"
|
231 |
|
232 |
-
#: modules/post_type.php:
|
|
|
|
|
|
|
|
|
|
|
233 |
msgid "No items."
|
234 |
msgstr "Ingen elementer."
|
235 |
|
236 |
-
#: modules/
|
|
|
|
|
|
|
|
|
237 |
msgid "Static Pages"
|
238 |
msgstr "Statiske sider"
|
239 |
|
240 |
-
#: modules/static.php:
|
241 |
msgid "Front Page"
|
242 |
msgstr "Forside"
|
243 |
|
244 |
-
#: modules/static.php:
|
245 |
msgid "Search Results"
|
246 |
msgstr "Søgeresultater"
|
247 |
|
248 |
-
#: modules/static.php:
|
249 |
msgid "404 Page"
|
250 |
msgstr "404-side"
|
251 |
|
252 |
-
#: modules/taxonomy.php:
|
253 |
msgid "Taxonomies"
|
254 |
msgstr "Taksonomier"
|
255 |
|
256 |
-
#: modules/taxonomy.php:
|
257 |
-
msgid "Show with %s"
|
258 |
-
msgstr "Vis ved %s"
|
259 |
-
|
260 |
-
#: modules/taxonomy.php:120
|
261 |
msgid "Most Used"
|
262 |
msgstr "Mest brugte"
|
263 |
|
264 |
-
|
265 |
-
msgid "
|
266 |
-
msgstr "
|
267 |
-
|
268 |
-
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
|
269 |
-
#. Plugin URI of the plugin/theme
|
270 |
-
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
|
271 |
-
#. Author URI of the plugin/theme
|
272 |
-
msgid "http://www.intox.dk/"
|
273 |
-
msgstr "http://www.intox.dk/"
|
274 |
-
|
275 |
-
#. Description of the plugin/theme
|
276 |
-
msgid "Manage and show sidebars according to the content being viewed."
|
277 |
-
msgstr "Administrer og vis sidebars i henhold til det indhold, der vises."
|
278 |
-
|
279 |
-
#. Author of the plugin/theme
|
280 |
-
msgid "Joachim Jensen"
|
281 |
-
msgstr "Joachim Jensen"
|
282 |
|
283 |
-
|
284 |
-
|
|
|
285 |
|
286 |
-
#~ msgid "
|
287 |
-
#~ msgstr "
|
2 |
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Content Aware Sidebars 2.1\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
+
"POT-Creation-Date: 2014-05-01 12:57+0100\n"
|
8 |
+
"PO-Revision-Date: 2014-05-01 13:06+0100\n"
|
9 |
+
"Last-Translator: \n"
|
10 |
+
"Language-Team: Joachim Jensen <jv@intox.dk>\n"
|
11 |
"Language: da_DK\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.5.5\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
17 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
|
18 |
+
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
19 |
+
"X-Poedit-Basepath: .\n"
|
20 |
+
"X-Textdomain-Support: yes\n"
|
21 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
22 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
23 |
+
"X-Poedit-SearchPath-0: .\n"
|
24 |
+
"X-Poedit-SearchPath-1: ..\n"
|
25 |
+
|
26 |
+
#: ../content-aware-sidebars.php:111
|
27 |
+
msgid "Manage and show sidebars according to the content being viewed."
|
28 |
+
msgstr "Administrer og vis sidebars i henhold til det indhold, der vises."
|
29 |
|
30 |
+
#: ../content-aware-sidebars.php:112
|
31 |
+
msgid "Content Aware Sidebars"
|
32 |
+
msgstr "Content Aware Sidebars"
|
33 |
+
|
34 |
+
#: ../content-aware-sidebars.php:232 ../content-aware-sidebars.php:432
|
35 |
msgid "Exposure"
|
36 |
msgstr "Eksponering"
|
37 |
|
38 |
+
#: ../content-aware-sidebars.php:238
|
39 |
msgid "Singular"
|
40 |
msgstr "Singulær"
|
41 |
|
42 |
+
#: ../content-aware-sidebars.php:239
|
43 |
msgid "Singular & Archive"
|
44 |
msgstr "Singulær og arkiv"
|
45 |
|
46 |
+
#: ../content-aware-sidebars.php:240
|
47 |
msgid "Archive"
|
48 |
msgstr "Arkiv"
|
49 |
|
50 |
+
#: ../content-aware-sidebars.php:244 ../content-aware-sidebars.php:433
|
51 |
msgctxt "option"
|
52 |
msgid "Handle"
|
53 |
msgstr "Håndtering"
|
54 |
|
55 |
+
#: ../content-aware-sidebars.php:246
|
56 |
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
57 |
msgstr "Erstat værts-sidebar, flet med den eller tilføj denne sidebar manuelt."
|
58 |
|
59 |
+
#: ../content-aware-sidebars.php:250
|
60 |
msgid "Replace"
|
61 |
msgstr "Erstat"
|
62 |
|
63 |
+
#: ../content-aware-sidebars.php:251
|
64 |
msgid "Merge"
|
65 |
msgstr "Flet"
|
66 |
|
67 |
+
#: ../content-aware-sidebars.php:252
|
68 |
msgid "Manual"
|
69 |
msgstr "Manuel"
|
70 |
|
71 |
+
#: ../content-aware-sidebars.php:256
|
72 |
msgid "Host Sidebar"
|
73 |
msgstr "Værts-sidebar"
|
74 |
|
75 |
+
#: ../content-aware-sidebars.php:264 ../content-aware-sidebars.php:434
|
76 |
msgid "Merge position"
|
77 |
msgstr "Fletteposition"
|
78 |
|
79 |
+
#: ../content-aware-sidebars.php:266
|
80 |
msgid "Place sidebar on top or bottom of host when merging."
|
81 |
msgstr "Flet ind fra oven eller bunden."
|
82 |
|
83 |
+
#: ../content-aware-sidebars.php:270
|
84 |
msgid "Top"
|
85 |
msgstr "Top"
|
86 |
|
87 |
+
#: ../content-aware-sidebars.php:271
|
88 |
msgid "Bottom"
|
89 |
msgstr "Bund"
|
90 |
|
91 |
+
#: ../content-aware-sidebars.php:296
|
92 |
msgid "Sidebars"
|
93 |
msgstr "Sidebars"
|
94 |
|
95 |
+
#: ../content-aware-sidebars.php:297
|
96 |
msgid "Sidebar"
|
97 |
msgstr "Sidebar"
|
98 |
|
99 |
+
#: ../content-aware-sidebars.php:298
|
100 |
msgctxt "sidebar"
|
101 |
msgid "Add New"
|
102 |
msgstr "Tilføj ny"
|
103 |
|
104 |
+
#: ../content-aware-sidebars.php:299
|
105 |
msgid "Add New Sidebar"
|
106 |
msgstr "Tilføj ny sidebar"
|
107 |
|
108 |
+
#: ../content-aware-sidebars.php:300
|
109 |
msgid "Edit Sidebar"
|
110 |
msgstr "Rediger sidebar"
|
111 |
|
112 |
+
#: ../content-aware-sidebars.php:301
|
113 |
msgid "New Sidebar"
|
114 |
msgstr "Ny sidebar"
|
115 |
|
116 |
+
#: ../content-aware-sidebars.php:302
|
117 |
msgid "All Sidebars"
|
118 |
msgstr "Alle sidebars"
|
119 |
|
120 |
+
#: ../content-aware-sidebars.php:303
|
121 |
msgid "View Sidebar"
|
122 |
msgstr "Vis sidebar"
|
123 |
|
124 |
+
#: ../content-aware-sidebars.php:304
|
125 |
msgid "Search Sidebars"
|
126 |
msgstr "Søg sidebars"
|
127 |
|
128 |
+
#: ../content-aware-sidebars.php:305
|
129 |
msgid "No sidebars found"
|
130 |
msgstr "Ingen sidebars fundet"
|
131 |
|
132 |
+
#: ../content-aware-sidebars.php:306
|
133 |
msgid "No sidebars found in Trash"
|
134 |
msgstr "Ingen sidebars fundet i papirkurven"
|
135 |
|
136 |
+
#: ../content-aware-sidebars.php:321 ../content-aware-sidebars.php:892
|
137 |
+
msgid "Condition Groups"
|
138 |
+
msgstr "Betingelsesgrupper"
|
139 |
+
|
140 |
+
#: ../content-aware-sidebars.php:322
|
141 |
+
msgid "Condition Group"
|
142 |
+
msgstr "Betingelsesgruppe"
|
143 |
+
|
144 |
+
#: ../content-aware-sidebars.php:323
|
145 |
+
msgctxt "group"
|
146 |
+
msgid "Add New"
|
147 |
+
msgstr "Tilføj ny"
|
148 |
+
|
149 |
+
#: ../content-aware-sidebars.php:324 ../content-aware-sidebars.php:892
|
150 |
+
#: ../content-aware-sidebars.php:922
|
151 |
+
msgid "Add New Group"
|
152 |
+
msgstr "Tilføj ny gruppe"
|
153 |
+
|
154 |
+
#: ../content-aware-sidebars.php:325 ../content-aware-sidebars.php:907
|
155 |
+
#: ../content-aware-sidebars.php:1299
|
156 |
+
msgctxt "group"
|
157 |
+
msgid "Edit"
|
158 |
+
msgstr "Rediger"
|
159 |
|
160 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:354
|
161 |
msgid "Sidebar updated."
|
162 |
msgstr "Sidebar opdateret."
|
163 |
|
164 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:356
|
165 |
+
#: ../content-aware-sidebars.php:358 ../content-aware-sidebars.php:363
|
166 |
+
msgid "Manage widgets"
|
167 |
+
msgstr "Håndter widgets"
|
168 |
+
|
169 |
+
#: ../content-aware-sidebars.php:356
|
170 |
+
msgid "Sidebar published."
|
171 |
+
msgstr "Sidebar udgivet."
|
172 |
|
173 |
+
#: ../content-aware-sidebars.php:357
|
174 |
msgid "Sidebar saved."
|
175 |
msgstr "Sidebar gemt."
|
176 |
|
177 |
+
#: ../content-aware-sidebars.php:358
|
178 |
+
msgid "Sidebar submitted."
|
179 |
+
msgstr "Sidebar indsendt."
|
180 |
|
181 |
+
#: ../content-aware-sidebars.php:359
|
182 |
+
#, php-format
|
183 |
+
msgid "Sidebar scheduled for: <strong>%1$s</strong>."
|
184 |
+
msgstr "Sidebar planlagt til: <strong>%1$s</strong>."
|
|
|
|
|
|
|
185 |
|
186 |
+
#: ../content-aware-sidebars.php:361
|
|
|
187 |
msgid "M j, Y @ G:i"
|
188 |
msgstr "j. M, Y @ G:i"
|
189 |
|
190 |
+
#: ../content-aware-sidebars.php:364
|
191 |
msgid "Sidebar draft updated."
|
192 |
msgstr "Sidebar-kladde opdateret."
|
193 |
|
194 |
+
#: ../content-aware-sidebars.php:408 ../content-aware-sidebars.php:493
|
195 |
msgid "Please update Host Sidebar"
|
196 |
msgstr "Værts-sidebar skal opdateres"
|
197 |
|
198 |
+
#: ../content-aware-sidebars.php:568
|
199 |
msgid "Manage Widgets"
|
200 |
msgstr "Håndter widgets"
|
201 |
|
202 |
+
#: ../content-aware-sidebars.php:821
|
203 |
+
msgid "Support the Author of Content Aware Sidebars"
|
204 |
+
msgstr "Støt skaberen af Content Aware Sidebars"
|
205 |
|
206 |
+
#: ../content-aware-sidebars.php:829
|
207 |
msgid "Content"
|
208 |
msgstr "Indhold"
|
209 |
|
210 |
+
#: ../content-aware-sidebars.php:837
|
211 |
msgid "Options"
|
212 |
msgstr "Indstillinger"
|
213 |
|
214 |
+
#: ../content-aware-sidebars.php:893
|
215 |
+
msgid ""
|
216 |
+
"Click to edit a group or create a new one. Select content on the left to add "
|
217 |
+
"it. In each group, you can combine different types of associated content."
|
218 |
+
msgstr ""
|
219 |
+
"Klik for at redigere en gruppe eller opret en ny. Vælg indhold til venstre "
|
220 |
+
"for at tilføje det. I hver gruppe kan du kombinere forskellige typer af "
|
221 |
+
"forbundet indhold."
|
222 |
+
|
223 |
+
#: ../content-aware-sidebars.php:894
|
224 |
+
msgid "Display sidebar with"
|
225 |
+
msgstr "Vis sidebar ved"
|
226 |
|
227 |
+
#: ../content-aware-sidebars.php:899
|
228 |
msgid ""
|
229 |
+
"No content. Please add at least one condition group to make the sidebar "
|
230 |
+
"content aware."
|
231 |
msgstr ""
|
232 |
+
"Intet indhold. Tilføj mindst en betingelsesgruppe for at gøre sidebaren "
|
233 |
+
"indholdsbevidst."
|
234 |
+
|
235 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1297
|
236 |
+
msgid "Save"
|
237 |
+
msgstr "Gem"
|
238 |
+
|
239 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1298
|
240 |
+
msgid "Cancel"
|
241 |
+
msgstr "Annuller"
|
242 |
+
|
243 |
+
#: ../content-aware-sidebars.php:907 ../content-aware-sidebars.php:1300
|
244 |
+
msgid "Remove"
|
245 |
+
msgstr "Fjern"
|
246 |
|
247 |
+
#: ../content-aware-sidebars.php:997 ../content-aware-sidebars.php:1002
|
248 |
+
#: ../content-aware-sidebars.php:1044 ../content-aware-sidebars.php:1049
|
249 |
+
#: ../content-aware-sidebars.php:1082 ../content-aware-sidebars.php:1087
|
250 |
+
msgid "Unauthorized request"
|
251 |
+
msgstr "Uautoriseret forespørgsel"
|
252 |
|
253 |
+
#: ../content-aware-sidebars.php:1010
|
254 |
+
msgid "Condition group cannot be empty"
|
255 |
+
msgstr "Betingelsesgruppe må ikke være tom"
|
256 |
|
257 |
+
#: ../content-aware-sidebars.php:1024
|
258 |
+
msgid "Condition group saved"
|
259 |
+
msgstr "Betingelsesgruppe gemt"
|
260 |
+
|
261 |
+
#: ../content-aware-sidebars.php:1056
|
262 |
+
msgid "Condition group could not be created"
|
263 |
+
msgstr "Betingelsesgruppe kunne ikke oprettes"
|
264 |
+
|
265 |
+
#: ../content-aware-sidebars.php:1061
|
266 |
+
msgid "Condition group added"
|
267 |
+
msgstr "Betingelsesgruppe tilføjet"
|
268 |
+
|
269 |
+
#: ../content-aware-sidebars.php:1092
|
270 |
+
msgid "Condition group could not be removed"
|
271 |
+
msgstr "Betingelsesgruppe kunne ikke fjernes"
|
272 |
+
|
273 |
+
#: ../content-aware-sidebars.php:1097
|
274 |
+
msgid "Condition group removed"
|
275 |
+
msgstr "Betingelsesgruppe fjernet"
|
276 |
+
|
277 |
+
#: ../content-aware-sidebars.php:1163
|
278 |
+
msgid ""
|
279 |
+
"If you love this plugin, please consider donating to support future "
|
280 |
+
"development."
|
281 |
+
msgstr ""
|
282 |
+
"Hvis du elsker dette plugin, kan du overveje at donere for at støtte den "
|
283 |
+
"fremtidige udvikling."
|
284 |
+
|
285 |
+
#: ../content-aware-sidebars.php:1172
|
286 |
+
msgid "Or you could:"
|
287 |
+
msgstr "Eller du kunne:"
|
288 |
+
|
289 |
+
#: ../content-aware-sidebars.php:1174
|
290 |
+
msgid "Rate the plugin on WordPress.org"
|
291 |
+
msgstr "Bedømme pluginnet på WordPress.org"
|
292 |
+
|
293 |
+
#: ../content-aware-sidebars.php:1175
|
294 |
+
msgid "Link to the plugin page"
|
295 |
+
msgstr "Linke til plugin-siden"
|
296 |
+
|
297 |
+
#: ../content-aware-sidebars.php:1176
|
298 |
+
msgid "Translate the plugin into your language"
|
299 |
+
msgstr "Oversæt dette plugin til dit sprog"
|
300 |
+
|
301 |
+
#: ../content-aware-sidebars.php:1301
|
302 |
+
msgid "Remove this group and its contents permanently?"
|
303 |
+
msgstr "Fjern denne gruppe og dens indhold permanent?"
|
304 |
+
|
305 |
+
#: ../content-aware-sidebars.php:1302
|
306 |
+
msgid "No results found."
|
307 |
+
msgstr "Ingen resultater fundet."
|
308 |
+
|
309 |
+
#: ../content-aware-sidebars.php:1303
|
310 |
+
msgid ""
|
311 |
+
"The current group has unsaved changes. Do you want to continue and discard "
|
312 |
+
"these changes?"
|
313 |
+
msgstr ""
|
314 |
+
"Den nuværende gruppe har ugemte ændringer. Ønsker du at fortsætte og kassere "
|
315 |
+
"disse ændringer?"
|
316 |
+
|
317 |
+
#: ../modules/abstract.php:88
|
318 |
+
#, php-format
|
319 |
+
msgid "Display with All %s"
|
320 |
msgstr "Vis ved alle %s"
|
321 |
|
322 |
+
#: ../modules/abstract.php:98 ../modules/bp_member.php:104
|
323 |
+
#: ../modules/post_type.php:198 ../modules/taxonomy.php:243
|
324 |
msgid "View All"
|
325 |
msgstr "Vis alle"
|
326 |
|
327 |
+
#: ../modules/abstract.php:105 ../modules/abstract.php:108
|
328 |
+
#: ../modules/post_type.php:204 ../modules/post_type.php:207
|
329 |
+
#: ../modules/taxonomy.php:249 ../modules/taxonomy.php:252
|
330 |
+
msgid "Search"
|
331 |
+
msgstr "Søg"
|
332 |
+
|
333 |
+
#: ../modules/abstract.php:116 ../modules/bp_member.php:113
|
334 |
+
#: ../modules/post_type.php:217 ../modules/taxonomy.php:262
|
335 |
+
msgid "Add to Group"
|
336 |
+
msgstr "Tilføj til gruppe"
|
337 |
+
|
338 |
+
#: ../modules/abstract.php:188
|
339 |
+
#, php-format
|
340 |
+
msgid "All %s"
|
341 |
+
msgstr "Alle %s"
|
342 |
+
|
343 |
+
#: ../modules/author.php:22
|
344 |
msgid "Authors"
|
345 |
msgstr "Forfattere"
|
346 |
|
347 |
+
#: ../modules/bbpress.php:23
|
348 |
msgid "bbPress User Profiles"
|
349 |
msgstr "bbPress brugerprofiler"
|
350 |
|
351 |
+
#: ../modules/bp_member.php:21
|
352 |
msgid "BuddyPress Members"
|
353 |
msgstr "BuddyPress medlemmer"
|
354 |
|
355 |
+
#: ../modules/page_template.php:22
|
356 |
msgid "Page Templates"
|
357 |
msgstr "Skabeloner"
|
358 |
|
359 |
+
#: ../modules/polylang.php:21 ../modules/qtranslate.php:21
|
360 |
+
#: ../modules/transposh.php:21 ../modules/wpml.php:21
|
361 |
msgid "Languages"
|
362 |
msgstr "Sprog"
|
363 |
|
364 |
+
#: ../modules/post_type.php:28
|
365 |
msgid "Post Types"
|
366 |
msgstr "Indholdstyper"
|
367 |
|
368 |
+
#: ../modules/post_type.php:105 ../modules/post_type.php:171
|
369 |
+
#: ../modules/taxonomy.php:182 ../modules/taxonomy.php:217
|
370 |
msgid "Automatically select new children of a selected ancestor"
|
371 |
msgstr "Vælg automatisk nye børn af den valgte forælder"
|
372 |
|
373 |
+
#: ../modules/post_type.php:177 ../modules/taxonomy.php:221
|
374 |
+
#, php-format
|
375 |
+
msgid "Display with %s"
|
376 |
+
msgstr "Vis ved %s"
|
377 |
+
|
378 |
+
#: ../modules/post_type.php:182 ../modules/taxonomy.php:225
|
379 |
msgid "No items."
|
380 |
msgstr "Ingen elementer."
|
381 |
|
382 |
+
#: ../modules/post_type.php:193
|
383 |
+
msgid "Most Recent"
|
384 |
+
msgstr "Seneste"
|
385 |
+
|
386 |
+
#: ../modules/static.php:23
|
387 |
msgid "Static Pages"
|
388 |
msgstr "Statiske sider"
|
389 |
|
390 |
+
#: ../modules/static.php:33
|
391 |
msgid "Front Page"
|
392 |
msgstr "Forside"
|
393 |
|
394 |
+
#: ../modules/static.php:34
|
395 |
msgid "Search Results"
|
396 |
msgstr "Søgeresultater"
|
397 |
|
398 |
+
#: ../modules/static.php:35
|
399 |
msgid "404 Page"
|
400 |
msgstr "404-side"
|
401 |
|
402 |
+
#: ../modules/taxonomy.php:34
|
403 |
msgid "Taxonomies"
|
404 |
msgstr "Taksonomier"
|
405 |
|
406 |
+
#: ../modules/taxonomy.php:238
|
|
|
|
|
|
|
|
|
407 |
msgid "Most Used"
|
408 |
msgstr "Mest brugte"
|
409 |
|
410 |
+
#: ../modules/url.php:22
|
411 |
+
msgid "URLs"
|
412 |
+
msgstr "URLs"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
|
414 |
+
#: ../modules/url.php:40
|
415 |
+
msgid "Add"
|
416 |
+
msgstr "Tilføj"
|
417 |
|
418 |
+
#~ msgid "Show with All %s"
|
419 |
+
#~ msgstr "Vis ved alle %s"
|
lang/content-aware-sidebars-de_DE.mo
ADDED
Binary file
|
lang/content-aware-sidebars-de_DE.po
ADDED
@@ -0,0 +1,460 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Content Aware Sidebars v2.0\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: \n"
|
6 |
+
"PO-Revision-Date: 2014-01-02 21:04+0100\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
+
"X-Generator: Poedit 1.5.5\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
16 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
+
"X-Poedit-Basepath: ../\n"
|
18 |
+
"X-Textdomain-Support: yes\n"
|
19 |
+
"Language: de_DE\n"
|
20 |
+
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
|
22 |
+
# @ content-aware-sidebars
|
23 |
+
#. translators: plugin header field 'Name'
|
24 |
+
#: content-aware-sidebars.php:0
|
25 |
+
msgid "Content Aware Sidebars"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
# @ content-aware-sidebars
|
29 |
+
#. translators: plugin header field 'PluginURI'
|
30 |
+
#. translators: plugin header field 'AuthorURI'
|
31 |
+
#: content-aware-sidebars.php:0
|
32 |
+
msgid "http://www.intox.dk/"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
# @ content-aware-sidebars
|
36 |
+
#. translators: plugin header field 'Description'
|
37 |
+
#: content-aware-sidebars.php:0
|
38 |
+
msgid "Manage and show sidebars according to the content being viewed."
|
39 |
+
msgstr "Sidebars abhängig vom dargestellten Inhalt einblenden"
|
40 |
+
|
41 |
+
# @ content-aware-sidebars
|
42 |
+
#. translators: plugin header field 'Author'
|
43 |
+
#: content-aware-sidebars.php:0
|
44 |
+
msgid "Joachim Jensen, Intox Studio"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
# @ content-aware-sidebars
|
48 |
+
#. translators: plugin header field 'Version'
|
49 |
+
#: content-aware-sidebars.php:0
|
50 |
+
msgid "2.0"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
# @ content-aware-sidebars
|
54 |
+
#: content-aware-sidebars.php:233 content-aware-sidebars.php:432
|
55 |
+
msgid "Exposure"
|
56 |
+
msgstr "Darstellung"
|
57 |
+
|
58 |
+
# @ content-aware-sidebars
|
59 |
+
#: content-aware-sidebars.php:239
|
60 |
+
msgid "Singular"
|
61 |
+
msgstr "Beitragsseite"
|
62 |
+
|
63 |
+
# @ content-aware-sidebars
|
64 |
+
#: content-aware-sidebars.php:240
|
65 |
+
msgid "Singular & Archive"
|
66 |
+
msgstr "Beitrags- & Archivseite"
|
67 |
+
|
68 |
+
# @ content-aware-sidebars
|
69 |
+
#: content-aware-sidebars.php:241
|
70 |
+
msgid "Archive"
|
71 |
+
msgstr "Archivseite"
|
72 |
+
|
73 |
+
# @ content-aware-sidebars
|
74 |
+
#: content-aware-sidebars.php:245 content-aware-sidebars.php:433
|
75 |
+
msgctxt "option"
|
76 |
+
msgid "Handle"
|
77 |
+
msgstr "Funktion"
|
78 |
+
|
79 |
+
# @ content-aware-sidebars
|
80 |
+
#: content-aware-sidebars.php:247
|
81 |
+
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
82 |
+
msgstr ""
|
83 |
+
"Ersetze Haupt-Sidebar, mit Haupt-Sidebar verbinden oder manuell hinzufügen."
|
84 |
+
|
85 |
+
# @ content-aware-sidebars
|
86 |
+
#: content-aware-sidebars.php:251
|
87 |
+
msgid "Replace"
|
88 |
+
msgstr "Ersetze"
|
89 |
+
|
90 |
+
# @ content-aware-sidebars
|
91 |
+
#: content-aware-sidebars.php:252
|
92 |
+
msgid "Merge"
|
93 |
+
msgstr "Verbinde"
|
94 |
+
|
95 |
+
# @ content-aware-sidebars
|
96 |
+
#: content-aware-sidebars.php:253
|
97 |
+
msgid "Manual"
|
98 |
+
msgstr "Manuell"
|
99 |
+
|
100 |
+
# @ content-aware-sidebars
|
101 |
+
#: content-aware-sidebars.php:257
|
102 |
+
msgid "Host Sidebar"
|
103 |
+
msgstr "Haupt Sidebar"
|
104 |
+
|
105 |
+
# @ content-aware-sidebars
|
106 |
+
#: content-aware-sidebars.php:265 content-aware-sidebars.php:434
|
107 |
+
msgid "Merge position"
|
108 |
+
msgstr "Position bei verbinden"
|
109 |
+
|
110 |
+
# @ content-aware-sidebars
|
111 |
+
#: content-aware-sidebars.php:267
|
112 |
+
msgid "Place sidebar on top or bottom of host when merging."
|
113 |
+
msgstr ""
|
114 |
+
"Beim Verbinden platziere die Sidebar ober- oder unterhalb der Haupt Sidebar."
|
115 |
+
|
116 |
+
# @ content-aware-sidebars
|
117 |
+
#: content-aware-sidebars.php:271
|
118 |
+
msgid "Top"
|
119 |
+
msgstr "Oberhalb"
|
120 |
+
|
121 |
+
# @ content-aware-sidebars
|
122 |
+
#: content-aware-sidebars.php:272
|
123 |
+
msgid "Bottom"
|
124 |
+
msgstr "Unterhalb"
|
125 |
+
|
126 |
+
# @ content-aware-sidebars
|
127 |
+
#: content-aware-sidebars.php:297
|
128 |
+
msgid "Sidebars"
|
129 |
+
msgstr "Sidebars"
|
130 |
+
|
131 |
+
# @ content-aware-sidebars
|
132 |
+
#: content-aware-sidebars.php:298
|
133 |
+
msgid "Sidebar"
|
134 |
+
msgstr "Sidebar"
|
135 |
+
|
136 |
+
# @ content-aware-sidebars
|
137 |
+
#: content-aware-sidebars.php:299
|
138 |
+
msgctxt "sidebar"
|
139 |
+
msgid "Add New"
|
140 |
+
msgstr "Neu hinzufügen"
|
141 |
+
|
142 |
+
# @ content-aware-sidebars
|
143 |
+
#: content-aware-sidebars.php:300
|
144 |
+
msgid "Add New Sidebar"
|
145 |
+
msgstr "Neue Sidebar erstellen"
|
146 |
+
|
147 |
+
# @ content-aware-sidebars
|
148 |
+
#: content-aware-sidebars.php:301
|
149 |
+
msgid "Edit Sidebar"
|
150 |
+
msgstr "Sidebar bearbeiten"
|
151 |
+
|
152 |
+
# @ content-aware-sidebars
|
153 |
+
#: content-aware-sidebars.php:302
|
154 |
+
msgid "New Sidebar"
|
155 |
+
msgstr "Neue Sidebar"
|
156 |
+
|
157 |
+
# @ content-aware-sidebars
|
158 |
+
#: content-aware-sidebars.php:303
|
159 |
+
msgid "All Sidebars"
|
160 |
+
msgstr "Alle Sidebars"
|
161 |
+
|
162 |
+
# @ content-aware-sidebars
|
163 |
+
#: content-aware-sidebars.php:304
|
164 |
+
msgid "View Sidebar"
|
165 |
+
msgstr "Sidebar ansehen"
|
166 |
+
|
167 |
+
# @ content-aware-sidebars
|
168 |
+
#: content-aware-sidebars.php:305
|
169 |
+
msgid "Search Sidebars"
|
170 |
+
msgstr "Sidebars durchsuchen"
|
171 |
+
|
172 |
+
# @ content-aware-sidebars
|
173 |
+
#: content-aware-sidebars.php:306
|
174 |
+
msgid "No sidebars found"
|
175 |
+
msgstr "Keine Sidebars gefunden"
|
176 |
+
|
177 |
+
# @ content-aware-sidebars
|
178 |
+
#: content-aware-sidebars.php:307
|
179 |
+
msgid "No sidebars found in Trash"
|
180 |
+
msgstr "Keine Sidebars im Papierkorb gefunden"
|
181 |
+
|
182 |
+
# @ content-aware-sidebars
|
183 |
+
#: content-aware-sidebars.php:320 content-aware-sidebars.php:926
|
184 |
+
msgid "Condition Groups"
|
185 |
+
msgstr "Gruppen"
|
186 |
+
|
187 |
+
# @ content-aware-sidebars
|
188 |
+
#: content-aware-sidebars.php:321
|
189 |
+
msgid "Condition Group"
|
190 |
+
msgstr "Gruppe"
|
191 |
+
|
192 |
+
# @ content-aware-sidebars
|
193 |
+
#: content-aware-sidebars.php:322
|
194 |
+
msgctxt "group"
|
195 |
+
msgid "Add New"
|
196 |
+
msgstr "Neu erstellen"
|
197 |
+
|
198 |
+
# @ content-aware-sidebars
|
199 |
+
#: content-aware-sidebars.php:323 content-aware-sidebars.php:926
|
200 |
+
#: content-aware-sidebars.php:951
|
201 |
+
msgid "Add New Group"
|
202 |
+
msgstr "Erstelle neue Gruppe"
|
203 |
+
|
204 |
+
# @ content-aware-sidebars
|
205 |
+
#: content-aware-sidebars.php:324 content-aware-sidebars.php:940
|
206 |
+
#: content-aware-sidebars.php:1294
|
207 |
+
msgctxt "group"
|
208 |
+
msgid "Edit"
|
209 |
+
msgstr "Bearbeiten"
|
210 |
+
|
211 |
+
# @ content-aware-sidebars
|
212 |
+
#: content-aware-sidebars.php:350 content-aware-sidebars.php:353
|
213 |
+
msgid "Sidebar updated."
|
214 |
+
msgstr "Sidebar wurde geändert."
|
215 |
+
|
216 |
+
# @ content-aware-sidebars
|
217 |
+
#: content-aware-sidebars.php:350 content-aware-sidebars.php:355
|
218 |
+
#: content-aware-sidebars.php:357 content-aware-sidebars.php:362
|
219 |
+
msgid "Manage widgets"
|
220 |
+
msgstr "Widgets bearbeiten"
|
221 |
+
|
222 |
+
# @ content-aware-sidebars
|
223 |
+
#: content-aware-sidebars.php:355
|
224 |
+
msgid "Sidebar published."
|
225 |
+
msgstr "Sidebar wurde publiziert."
|
226 |
+
|
227 |
+
# @ content-aware-sidebars
|
228 |
+
#: content-aware-sidebars.php:356
|
229 |
+
msgid "Sidebar saved."
|
230 |
+
msgstr "Sidebar wurde gesichert."
|
231 |
+
|
232 |
+
# @ content-aware-sidebars
|
233 |
+
#: content-aware-sidebars.php:357
|
234 |
+
msgid "Sidebar submitted."
|
235 |
+
msgstr "Sidebar wurde übertragen."
|
236 |
+
|
237 |
+
# @ content-aware-sidebars
|
238 |
+
#: content-aware-sidebars.php:358
|
239 |
+
#, php-format
|
240 |
+
msgid "Sidebar scheduled for: <strong>%1$s</strong>."
|
241 |
+
msgstr "Sidebar wurde eingeplant für: <strong>%1$s</strong>."
|
242 |
+
|
243 |
+
# @ default
|
244 |
+
#: content-aware-sidebars.php:360
|
245 |
+
msgid "M j, Y @ G:i"
|
246 |
+
msgstr ""
|
247 |
+
|
248 |
+
# @ content-aware-sidebars
|
249 |
+
#: content-aware-sidebars.php:363
|
250 |
+
msgid "Sidebar draft updated."
|
251 |
+
msgstr "Sidebar-Entwurf wurde gesichert."
|
252 |
+
|
253 |
+
# @ content-aware-sidebars
|
254 |
+
#: content-aware-sidebars.php:408 content-aware-sidebars.php:489
|
255 |
+
msgid "Please update Host Sidebar"
|
256 |
+
msgstr "Bitte Haupt-Sidebar aktualisieren."
|
257 |
+
|
258 |
+
# @ content-aware-sidebars
|
259 |
+
#: content-aware-sidebars.php:544
|
260 |
+
msgid "Manage Widgets"
|
261 |
+
msgstr "Widgetverwaltung"
|
262 |
+
|
263 |
+
# @ content-aware-sidebars
|
264 |
+
#: content-aware-sidebars.php:850
|
265 |
+
msgid "Support the Author of Content Aware Sidebars"
|
266 |
+
msgstr "Den Autor von Content Aware Sidebars unterstützen"
|
267 |
+
|
268 |
+
# @ content-aware-sidebars
|
269 |
+
#: content-aware-sidebars.php:858
|
270 |
+
msgid "Content"
|
271 |
+
msgstr "Inhalt"
|
272 |
+
|
273 |
+
# @ content-aware-sidebars
|
274 |
+
#: content-aware-sidebars.php:866
|
275 |
+
msgid "Options"
|
276 |
+
msgstr "Optionen"
|
277 |
+
|
278 |
+
# @ content-aware-sidebars
|
279 |
+
#: content-aware-sidebars.php:927
|
280 |
+
msgid ""
|
281 |
+
"Click to edit a group or create a new one. Select content on the left to add "
|
282 |
+
"it. In each group, you can combine different types of associated content."
|
283 |
+
msgstr ""
|
284 |
+
"Klicke \"Bearbeiten\" um eine Gruppe auszuwählen oder lege eine neue Gruppe "
|
285 |
+
"an. Wähle links den Inhalt aus und klicke auf \"Zur Gruppe hinzufügen\" um "
|
286 |
+
"ihn der Gruppe zuzuordnen. In jeder Gruppe können verschiedene Inhaltstypen "
|
287 |
+
"kombiniert werden."
|
288 |
+
|
289 |
+
# @ content-aware-sidebars
|
290 |
+
#: content-aware-sidebars.php:928
|
291 |
+
msgid "Display sidebar with"
|
292 |
+
msgstr "Zeige Sidebar an bei"
|
293 |
+
|
294 |
+
# @ content-aware-sidebars
|
295 |
+
#: content-aware-sidebars.php:937 content-aware-sidebars.php:1292
|
296 |
+
msgid "Save"
|
297 |
+
msgstr "Sichern"
|
298 |
+
|
299 |
+
# @ content-aware-sidebars
|
300 |
+
#: content-aware-sidebars.php:937 content-aware-sidebars.php:1293
|
301 |
+
msgid "Cancel"
|
302 |
+
msgstr "Abbrechen"
|
303 |
+
|
304 |
+
# @ content-aware-sidebars
|
305 |
+
#: content-aware-sidebars.php:940 content-aware-sidebars.php:1295
|
306 |
+
msgid "Remove"
|
307 |
+
msgstr "Löschen"
|
308 |
+
|
309 |
+
# @ content-aware-sidebars
|
310 |
+
#: content-aware-sidebars.php:1159
|
311 |
+
msgid ""
|
312 |
+
"If you love this plugin, please consider donating to support future "
|
313 |
+
"development."
|
314 |
+
msgstr ""
|
315 |
+
"Wenn du dieses Plugin magst, dann würde sich der Autor über eine Spende "
|
316 |
+
"freuen."
|
317 |
+
|
318 |
+
# @ content-aware-sidebars
|
319 |
+
#: content-aware-sidebars.php:1168
|
320 |
+
msgid "Or you could:"
|
321 |
+
msgstr "Weitere Möglichkeiten:"
|
322 |
+
|
323 |
+
# @ content-aware-sidebars
|
324 |
+
#: content-aware-sidebars.php:1170
|
325 |
+
msgid "Rate the plugin on WordPress.org"
|
326 |
+
msgstr "Dieses Plugin bei WordPress.org bewerten"
|
327 |
+
|
328 |
+
# @ content-aware-sidebars
|
329 |
+
#: content-aware-sidebars.php:1171
|
330 |
+
msgid "Link to the plugin page"
|
331 |
+
msgstr "Link zur Plugin-Seite"
|
332 |
+
|
333 |
+
# @ content-aware-sidebars
|
334 |
+
#: content-aware-sidebars.php:1172
|
335 |
+
msgid "Translate the plugin into your language"
|
336 |
+
msgstr "Übersetze das Plugin in deine Sprache"
|
337 |
+
|
338 |
+
# @ content-aware-sidebars
|
339 |
+
#: content-aware-sidebars.php:1296
|
340 |
+
msgid "Remove this group and its contents permanently?"
|
341 |
+
msgstr "Diese Gruppe und seine Inhalte unwiderruflich löschen?"
|
342 |
+
|
343 |
+
# @ content-aware-sidebars
|
344 |
+
#: content-aware-sidebars.php:1297
|
345 |
+
msgid "No results found."
|
346 |
+
msgstr "Keine Ergebnisse gefunden."
|
347 |
+
|
348 |
+
# @ content-aware-sidebars
|
349 |
+
#: modules/abstract.php:108
|
350 |
+
#, php-format
|
351 |
+
msgid "Show with All %s"
|
352 |
+
msgstr "Anzeige bei allen %s"
|
353 |
+
|
354 |
+
# @ default
|
355 |
+
#: modules/abstract.php:118 modules/post_type.php:181 modules/taxonomy.php:235
|
356 |
+
msgid "View All"
|
357 |
+
msgstr ""
|
358 |
+
|
359 |
+
# @ default
|
360 |
+
#: modules/abstract.php:125 modules/abstract.php:128 modules/post_type.php:187
|
361 |
+
#: modules/post_type.php:190 modules/taxonomy.php:241 modules/taxonomy.php:244
|
362 |
+
msgid "Search"
|
363 |
+
msgstr ""
|
364 |
+
|
365 |
+
# @ content-aware-sidebars
|
366 |
+
#: modules/abstract.php:136
|
367 |
+
msgid "Add to Group"
|
368 |
+
msgstr "Zur Gruppe hinzufügen"
|
369 |
+
|
370 |
+
# @ content-aware-sidebars
|
371 |
+
#: modules/author.php:22
|
372 |
+
msgid "Authors"
|
373 |
+
msgstr "Autoren"
|
374 |
+
|
375 |
+
# @ content-aware-sidebars
|
376 |
+
#: modules/bbpress.php:23
|
377 |
+
msgid "bbPress User Profiles"
|
378 |
+
msgstr "bbPress Benutzerprofile"
|
379 |
+
|
380 |
+
# @ content-aware-sidebars
|
381 |
+
#: modules/bp_member.php:21
|
382 |
+
msgid "BuddyPress Members"
|
383 |
+
msgstr "BuddyPress Mitglieder"
|
384 |
+
|
385 |
+
# @ content-aware-sidebars
|
386 |
+
#: modules/page_template.php:22
|
387 |
+
msgid "Page Templates"
|
388 |
+
msgstr "Seitenvorlage"
|
389 |
+
|
390 |
+
# @ content-aware-sidebars
|
391 |
+
#: modules/polylang.php:21 modules/qtranslate.php:21 modules/transposh.php:21
|
392 |
+
#: modules/wpml.php:21
|
393 |
+
msgid "Languages"
|
394 |
+
msgstr "Sprachen"
|
395 |
+
|
396 |
+
# @ content-aware-sidebars
|
397 |
+
#: modules/post_type.php:28
|
398 |
+
msgid "Post Types"
|
399 |
+
msgstr "Post Types"
|
400 |
+
|
401 |
+
# @ content-aware-sidebars
|
402 |
+
#: modules/post_type.php:160 modules/taxonomy.php:217
|
403 |
+
msgid "Automatically select new children of a selected ancestor"
|
404 |
+
msgstr "Neue untergeordnete Einträge automatisch markieren"
|
405 |
+
|
406 |
+
# @ content-aware-sidebars
|
407 |
+
#: modules/post_type.php:166 modules/taxonomy.php:221
|
408 |
+
#, php-format
|
409 |
+
msgid "Display with %s"
|
410 |
+
msgstr "Anzeigen bei %s"
|
411 |
+
|
412 |
+
# @ default
|
413 |
+
#: modules/post_type.php:171 modules/taxonomy.php:225
|
414 |
+
msgid "No items."
|
415 |
+
msgstr ""
|
416 |
+
|
417 |
+
# @ default
|
418 |
+
#: modules/post_type.php:176
|
419 |
+
msgid "Most Recent"
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
# @ content-aware-sidebars
|
423 |
+
#: modules/static.php:23
|
424 |
+
msgid "Static Pages"
|
425 |
+
msgstr "Statische Seiten"
|
426 |
+
|
427 |
+
# @ content-aware-sidebars
|
428 |
+
#: modules/static.php:33
|
429 |
+
msgid "Front Page"
|
430 |
+
msgstr "Titelseite"
|
431 |
+
|
432 |
+
# @ content-aware-sidebars
|
433 |
+
#: modules/static.php:34
|
434 |
+
msgid "Search Results"
|
435 |
+
msgstr "Suchergebnisse"
|
436 |
+
|
437 |
+
# @ content-aware-sidebars
|
438 |
+
#: modules/static.php:35
|
439 |
+
msgid "404 Page"
|
440 |
+
msgstr "404 Seite"
|
441 |
+
|
442 |
+
# @ content-aware-sidebars
|
443 |
+
#: modules/taxonomy.php:34
|
444 |
+
msgid "Taxonomies"
|
445 |
+
msgstr "Taxonomien"
|
446 |
+
|
447 |
+
# @ default
|
448 |
+
#: modules/taxonomy.php:230
|
449 |
+
msgid "Most Used"
|
450 |
+
msgstr ""
|
451 |
+
|
452 |
+
# @ content-aware-sidebars
|
453 |
+
#: modules/url.php:22
|
454 |
+
msgid "URLs"
|
455 |
+
msgstr "URLs"
|
456 |
+
|
457 |
+
# @ content-aware-sidebars
|
458 |
+
#: modules/url.php:40
|
459 |
+
msgid "Add"
|
460 |
+
msgstr "Hinzufügen"
|
lang/content-aware-sidebars-es_ES.mo
ADDED
Binary file
|
lang/content-aware-sidebars-es_ES.po
ADDED
@@ -0,0 +1,459 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2012 Content Aware Sidebars
|
2 |
+
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Content Aware Sidebars 1.3.5\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
+
"POT-Creation-Date: 2014-05-01 12:57+0100\n"
|
8 |
+
"PO-Revision-Date: 2014-05-05 14:12+0100\n"
|
9 |
+
"Last-Translator: \n"
|
10 |
+
"Language-Team: Analia Jensen <analiajensen@gmail.com>\n"
|
11 |
+
"Language: es_ES\n"
|
12 |
+
"MIME-Version: 1.0\n"
|
13 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
+
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.5.5\n"
|
16 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
17 |
+
|
18 |
+
#: ../content-aware-sidebars.php:111
|
19 |
+
msgid "Manage and show sidebars according to the content being viewed."
|
20 |
+
msgstr ""
|
21 |
+
"Administrar y mostrar las barras laterales, en función del contenido que se "
|
22 |
+
"está viendo"
|
23 |
+
|
24 |
+
#: ../content-aware-sidebars.php:112
|
25 |
+
msgid "Content Aware Sidebars"
|
26 |
+
msgstr "Content Aware Sidebars (Barras Laterales)"
|
27 |
+
|
28 |
+
#: ../content-aware-sidebars.php:232 ../content-aware-sidebars.php:432
|
29 |
+
msgid "Exposure"
|
30 |
+
msgstr "Exposición"
|
31 |
+
|
32 |
+
#: ../content-aware-sidebars.php:238
|
33 |
+
msgid "Singular"
|
34 |
+
msgstr "Singular"
|
35 |
+
|
36 |
+
#: ../content-aware-sidebars.php:239
|
37 |
+
msgid "Singular & Archive"
|
38 |
+
msgstr "Singular y Archivo"
|
39 |
+
|
40 |
+
#: ../content-aware-sidebars.php:240
|
41 |
+
msgid "Archive"
|
42 |
+
msgstr "Archivo"
|
43 |
+
|
44 |
+
#: ../content-aware-sidebars.php:244 ../content-aware-sidebars.php:433
|
45 |
+
msgctxt "option"
|
46 |
+
msgid "Handle"
|
47 |
+
msgstr "Acciones"
|
48 |
+
|
49 |
+
#: ../content-aware-sidebars.php:246
|
50 |
+
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
51 |
+
msgstr ""
|
52 |
+
"Reemplazar la barra lateral huésped, fusionar con la misma, o añadir una "
|
53 |
+
"barra lateral manualmente."
|
54 |
+
|
55 |
+
#: ../content-aware-sidebars.php:250
|
56 |
+
msgid "Replace"
|
57 |
+
msgstr "Reemplazar"
|
58 |
+
|
59 |
+
#: ../content-aware-sidebars.php:251
|
60 |
+
msgid "Merge"
|
61 |
+
msgstr "Fusionar"
|
62 |
+
|
63 |
+
#: ../content-aware-sidebars.php:252
|
64 |
+
msgid "Manual"
|
65 |
+
msgstr "Manualmente"
|
66 |
+
|
67 |
+
#: ../content-aware-sidebars.php:256
|
68 |
+
msgid "Host Sidebar"
|
69 |
+
msgstr "Barra lateral huésped"
|
70 |
+
|
71 |
+
#: ../content-aware-sidebars.php:264 ../content-aware-sidebars.php:434
|
72 |
+
msgid "Merge position"
|
73 |
+
msgstr "Fusionar en posición"
|
74 |
+
|
75 |
+
#: ../content-aware-sidebars.php:266
|
76 |
+
msgid "Place sidebar on top or bottom of host when merging."
|
77 |
+
msgstr ""
|
78 |
+
"Coloque esta barra lateral en la parte de arriba o abajo del huésped, al "
|
79 |
+
"fusionar."
|
80 |
+
|
81 |
+
#: ../content-aware-sidebars.php:270
|
82 |
+
msgid "Top"
|
83 |
+
msgstr "Arriba"
|
84 |
+
|
85 |
+
#: ../content-aware-sidebars.php:271
|
86 |
+
msgid "Bottom"
|
87 |
+
msgstr "Abajo"
|
88 |
+
|
89 |
+
#: ../content-aware-sidebars.php:296
|
90 |
+
msgid "Sidebars"
|
91 |
+
msgstr "Barras laterales"
|
92 |
+
|
93 |
+
#: ../content-aware-sidebars.php:297
|
94 |
+
msgid "Sidebar"
|
95 |
+
msgstr "Barra lateral"
|
96 |
+
|
97 |
+
#: ../content-aware-sidebars.php:298
|
98 |
+
msgctxt "sidebar"
|
99 |
+
msgid "Add New"
|
100 |
+
msgstr "Añadir nuevo"
|
101 |
+
|
102 |
+
#: ../content-aware-sidebars.php:299
|
103 |
+
msgid "Add New Sidebar"
|
104 |
+
msgstr "Añadir nueva barra lateral"
|
105 |
+
|
106 |
+
#: ../content-aware-sidebars.php:300
|
107 |
+
msgid "Edit Sidebar"
|
108 |
+
msgstr "Editar barra lateral"
|
109 |
+
|
110 |
+
#: ../content-aware-sidebars.php:301
|
111 |
+
msgid "New Sidebar"
|
112 |
+
msgstr "Nueva barra lateral"
|
113 |
+
|
114 |
+
#: ../content-aware-sidebars.php:302
|
115 |
+
msgid "All Sidebars"
|
116 |
+
msgstr "Todas las barras laterales"
|
117 |
+
|
118 |
+
#: ../content-aware-sidebars.php:303
|
119 |
+
msgid "View Sidebar"
|
120 |
+
msgstr "Ver barra lateral"
|
121 |
+
|
122 |
+
#: ../content-aware-sidebars.php:304
|
123 |
+
msgid "Search Sidebars"
|
124 |
+
msgstr "Buscar barras laterales"
|
125 |
+
|
126 |
+
#: ../content-aware-sidebars.php:305
|
127 |
+
msgid "No sidebars found"
|
128 |
+
msgstr "No se encontraron barras laterales"
|
129 |
+
|
130 |
+
#: ../content-aware-sidebars.php:306
|
131 |
+
msgid "No sidebars found in Trash"
|
132 |
+
msgstr "Ninguna barra lateral encontradada en la papelera"
|
133 |
+
|
134 |
+
#: ../content-aware-sidebars.php:321 ../content-aware-sidebars.php:892
|
135 |
+
msgid "Condition Groups"
|
136 |
+
msgstr "Grupos de condiciones"
|
137 |
+
|
138 |
+
#: ../content-aware-sidebars.php:322
|
139 |
+
msgid "Condition Group"
|
140 |
+
msgstr "Grupo de condiciones"
|
141 |
+
|
142 |
+
#: ../content-aware-sidebars.php:323
|
143 |
+
msgctxt "group"
|
144 |
+
msgid "Add New"
|
145 |
+
msgstr "Añadir nuevo"
|
146 |
+
|
147 |
+
#: ../content-aware-sidebars.php:324 ../content-aware-sidebars.php:892
|
148 |
+
#: ../content-aware-sidebars.php:922
|
149 |
+
msgid "Add New Group"
|
150 |
+
msgstr "Añadir nuevo"
|
151 |
+
|
152 |
+
#: ../content-aware-sidebars.php:325 ../content-aware-sidebars.php:907
|
153 |
+
#: ../content-aware-sidebars.php:1299
|
154 |
+
msgctxt "group"
|
155 |
+
msgid "Edit"
|
156 |
+
msgstr "Editar"
|
157 |
+
|
158 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:354
|
159 |
+
msgid "Sidebar updated."
|
160 |
+
msgstr "Barra lateral actualizada"
|
161 |
+
|
162 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:356
|
163 |
+
#: ../content-aware-sidebars.php:358 ../content-aware-sidebars.php:363
|
164 |
+
msgid "Manage widgets"
|
165 |
+
msgstr "Administrar los widgets"
|
166 |
+
|
167 |
+
#: ../content-aware-sidebars.php:356
|
168 |
+
msgid "Sidebar published."
|
169 |
+
msgstr "Barra lateral publicada."
|
170 |
+
|
171 |
+
#: ../content-aware-sidebars.php:357
|
172 |
+
msgid "Sidebar saved."
|
173 |
+
msgstr "Barra lateral guardada."
|
174 |
+
|
175 |
+
#: ../content-aware-sidebars.php:358
|
176 |
+
msgid "Sidebar submitted."
|
177 |
+
msgstr "Barra lateral actualizada."
|
178 |
+
|
179 |
+
#: ../content-aware-sidebars.php:359
|
180 |
+
#, php-format
|
181 |
+
msgid "Sidebar scheduled for: <strong>%1$s</strong>."
|
182 |
+
msgstr "Barra lateral programada el: <strong>%1$s</strong>."
|
183 |
+
|
184 |
+
#: ../content-aware-sidebars.php:361
|
185 |
+
msgid "M j, Y @ G:i"
|
186 |
+
msgstr "j M, Y @ G:i"
|
187 |
+
|
188 |
+
#: ../content-aware-sidebars.php:364
|
189 |
+
msgid "Sidebar draft updated."
|
190 |
+
msgstr "Borrador de la barra lateral actualizado"
|
191 |
+
|
192 |
+
#: ../content-aware-sidebars.php:408 ../content-aware-sidebars.php:493
|
193 |
+
msgid "Please update Host Sidebar"
|
194 |
+
msgstr "Por favor, actualice la barra lateral huésped"
|
195 |
+
|
196 |
+
#: ../content-aware-sidebars.php:568
|
197 |
+
msgid "Manage Widgets"
|
198 |
+
msgstr "Administrar los widgets"
|
199 |
+
|
200 |
+
#: ../content-aware-sidebars.php:821
|
201 |
+
msgid "Support the Author of Content Aware Sidebars"
|
202 |
+
msgstr "Ayuda al Autor de Content Aware Sidebars"
|
203 |
+
|
204 |
+
#: ../content-aware-sidebars.php:829
|
205 |
+
msgid "Content"
|
206 |
+
msgstr "Contenido"
|
207 |
+
|
208 |
+
#: ../content-aware-sidebars.php:837
|
209 |
+
msgid "Options"
|
210 |
+
msgstr "Opciónes"
|
211 |
+
|
212 |
+
#: ../content-aware-sidebars.php:893
|
213 |
+
msgid ""
|
214 |
+
"Click to edit a group or create a new one. Select content on the left to add "
|
215 |
+
"it. In each group, you can combine different types of associated content."
|
216 |
+
msgstr ""
|
217 |
+
"Haga clic para editar un grupo o crear uno nuevo. Seleccione el contenido de "
|
218 |
+
"la izquierda para añadirlo. En cada grupo, se pueden combinar diferentes "
|
219 |
+
"tipos de contenido asociado."
|
220 |
+
|
221 |
+
#: ../content-aware-sidebars.php:894
|
222 |
+
msgid "Display sidebar with"
|
223 |
+
msgstr "Mostrar la barra lateral con"
|
224 |
+
|
225 |
+
#: ../content-aware-sidebars.php:899
|
226 |
+
msgid ""
|
227 |
+
"No content. Please add at least one condition group to make the sidebar "
|
228 |
+
"content aware."
|
229 |
+
msgstr ""
|
230 |
+
|
231 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1297
|
232 |
+
msgid "Save"
|
233 |
+
msgstr "Guardar"
|
234 |
+
|
235 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1298
|
236 |
+
msgid "Cancel"
|
237 |
+
msgstr "Cancelar"
|
238 |
+
|
239 |
+
#: ../content-aware-sidebars.php:907 ../content-aware-sidebars.php:1300
|
240 |
+
msgid "Remove"
|
241 |
+
msgstr "Eliminar"
|
242 |
+
|
243 |
+
#: ../content-aware-sidebars.php:997 ../content-aware-sidebars.php:1002
|
244 |
+
#: ../content-aware-sidebars.php:1044 ../content-aware-sidebars.php:1049
|
245 |
+
#: ../content-aware-sidebars.php:1082 ../content-aware-sidebars.php:1087
|
246 |
+
msgid "Unauthorized request"
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#: ../content-aware-sidebars.php:1010
|
250 |
+
#, fuzzy
|
251 |
+
msgid "Condition group cannot be empty"
|
252 |
+
msgstr "Grupos de condiciones"
|
253 |
+
|
254 |
+
#: ../content-aware-sidebars.php:1024
|
255 |
+
#, fuzzy
|
256 |
+
msgid "Condition group saved"
|
257 |
+
msgstr "Grupos de condiciones"
|
258 |
+
|
259 |
+
#: ../content-aware-sidebars.php:1056
|
260 |
+
msgid "Condition group could not be created"
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: ../content-aware-sidebars.php:1061
|
264 |
+
#, fuzzy
|
265 |
+
msgid "Condition group added"
|
266 |
+
msgstr "Grupo de condiciones"
|
267 |
+
|
268 |
+
#: ../content-aware-sidebars.php:1092
|
269 |
+
msgid "Condition group could not be removed"
|
270 |
+
msgstr ""
|
271 |
+
|
272 |
+
#: ../content-aware-sidebars.php:1097
|
273 |
+
#, fuzzy
|
274 |
+
msgid "Condition group removed"
|
275 |
+
msgstr "Grupo de condiciones"
|
276 |
+
|
277 |
+
#: ../content-aware-sidebars.php:1163
|
278 |
+
msgid ""
|
279 |
+
"If you love this plugin, please consider donating to support future "
|
280 |
+
"development."
|
281 |
+
msgstr ""
|
282 |
+
"Si usted ama este plugin, por favor considere hacer una donación para apoyar "
|
283 |
+
"el futuro desarrollo."
|
284 |
+
|
285 |
+
#: ../content-aware-sidebars.php:1172
|
286 |
+
msgid "Or you could:"
|
287 |
+
msgstr "O usted podría:"
|
288 |
+
|
289 |
+
#: ../content-aware-sidebars.php:1174
|
290 |
+
msgid "Rate the plugin on WordPress.org"
|
291 |
+
msgstr "Calificar el plugin en WordPress.org"
|
292 |
+
|
293 |
+
#: ../content-aware-sidebars.php:1175
|
294 |
+
msgid "Link to the plugin page"
|
295 |
+
msgstr "Crear un enlace web refiriendo al plugin"
|
296 |
+
|
297 |
+
#: ../content-aware-sidebars.php:1176
|
298 |
+
msgid "Translate the plugin into your language"
|
299 |
+
msgstr "Traducir el plugin a su idioma"
|
300 |
+
|
301 |
+
#: ../content-aware-sidebars.php:1301
|
302 |
+
msgid "Remove this group and its contents permanently?"
|
303 |
+
msgstr "Eliminar este grupo y sus contenidos de forma permanente?"
|
304 |
+
|
305 |
+
#: ../content-aware-sidebars.php:1302
|
306 |
+
msgid "No results found."
|
307 |
+
msgstr "No se han encontrado resultados."
|
308 |
+
|
309 |
+
#: ../content-aware-sidebars.php:1303
|
310 |
+
msgid ""
|
311 |
+
"The current group has unsaved changes. Do you want to continue and discard "
|
312 |
+
"these changes?"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#: ../modules/abstract.php:88
|
316 |
+
#, fuzzy, php-format
|
317 |
+
msgid "Display with All %s"
|
318 |
+
msgstr "Mostrar con %s"
|
319 |
+
|
320 |
+
#: ../modules/abstract.php:98 ../modules/bp_member.php:104
|
321 |
+
#: ../modules/post_type.php:198 ../modules/taxonomy.php:243
|
322 |
+
msgid "View All"
|
323 |
+
msgstr "Vis alle"
|
324 |
+
|
325 |
+
#: ../modules/abstract.php:105 ../modules/abstract.php:108
|
326 |
+
#: ../modules/post_type.php:204 ../modules/post_type.php:207
|
327 |
+
#: ../modules/taxonomy.php:249 ../modules/taxonomy.php:252
|
328 |
+
msgid "Search"
|
329 |
+
msgstr "Buscar"
|
330 |
+
|
331 |
+
#: ../modules/abstract.php:116 ../modules/bp_member.php:113
|
332 |
+
#: ../modules/post_type.php:217 ../modules/taxonomy.php:262
|
333 |
+
msgid "Add to Group"
|
334 |
+
msgstr "Añadir al grupo"
|
335 |
+
|
336 |
+
#: ../modules/abstract.php:188
|
337 |
+
#, php-format
|
338 |
+
msgid "All %s"
|
339 |
+
msgstr ""
|
340 |
+
|
341 |
+
#: ../modules/author.php:22
|
342 |
+
msgid "Authors"
|
343 |
+
msgstr "Autores"
|
344 |
+
|
345 |
+
#: ../modules/bbpress.php:23
|
346 |
+
msgid "bbPress User Profiles"
|
347 |
+
msgstr "Perfiles de usuario de bbPress"
|
348 |
+
|
349 |
+
#: ../modules/bp_member.php:21
|
350 |
+
msgid "BuddyPress Members"
|
351 |
+
msgstr "Miembros de BuddyPress"
|
352 |
+
|
353 |
+
#: ../modules/page_template.php:22
|
354 |
+
msgid "Page Templates"
|
355 |
+
msgstr "Plantillas"
|
356 |
+
|
357 |
+
#: ../modules/polylang.php:21 ../modules/qtranslate.php:21
|
358 |
+
#: ../modules/transposh.php:21 ../modules/wpml.php:21
|
359 |
+
msgid "Languages"
|
360 |
+
msgstr "Idiomas"
|
361 |
+
|
362 |
+
#: ../modules/post_type.php:28
|
363 |
+
msgid "Post Types"
|
364 |
+
msgstr "Tipos de contenido"
|
365 |
+
|
366 |
+
#: ../modules/post_type.php:105 ../modules/post_type.php:171
|
367 |
+
#: ../modules/taxonomy.php:182 ../modules/taxonomy.php:217
|
368 |
+
msgid "Automatically select new children of a selected ancestor"
|
369 |
+
msgstr ""
|
370 |
+
"Seleccionar automáticamente nuevos inferiores de los superiores seleccionados"
|
371 |
+
|
372 |
+
#: ../modules/post_type.php:177 ../modules/taxonomy.php:221
|
373 |
+
#, php-format
|
374 |
+
msgid "Display with %s"
|
375 |
+
msgstr "Mostrar con %s"
|
376 |
+
|
377 |
+
#: ../modules/post_type.php:182 ../modules/taxonomy.php:225
|
378 |
+
msgid "No items."
|
379 |
+
msgstr "Ningun elemento."
|
380 |
+
|
381 |
+
#: ../modules/post_type.php:193
|
382 |
+
msgid "Most Recent"
|
383 |
+
msgstr "Más reciente"
|
384 |
+
|
385 |
+
#: ../modules/static.php:23
|
386 |
+
msgid "Static Pages"
|
387 |
+
msgstr "Páginas estáticas"
|
388 |
+
|
389 |
+
#: ../modules/static.php:33
|
390 |
+
msgid "Front Page"
|
391 |
+
msgstr "Página delantera"
|
392 |
+
|
393 |
+
#: ../modules/static.php:34
|
394 |
+
msgid "Search Results"
|
395 |
+
msgstr "Resultados de la búsqueda"
|
396 |
+
|
397 |
+
#: ../modules/static.php:35
|
398 |
+
msgid "404 Page"
|
399 |
+
msgstr "Página 404"
|
400 |
+
|
401 |
+
#: ../modules/taxonomy.php:34
|
402 |
+
msgid "Taxonomies"
|
403 |
+
msgstr "Taxonomias"
|
404 |
+
|
405 |
+
#: ../modules/taxonomy.php:238
|
406 |
+
msgid "Most Used"
|
407 |
+
msgstr "Mest brugte"
|
408 |
+
|
409 |
+
#: ../modules/url.php:22
|
410 |
+
msgid "URLs"
|
411 |
+
msgstr "URLs"
|
412 |
+
|
413 |
+
#: ../modules/url.php:40
|
414 |
+
msgid "Add"
|
415 |
+
msgstr "Añadir"
|
416 |
+
|
417 |
+
#~ msgid "Show with All %s"
|
418 |
+
#~ msgstr "Mostrar con todos %s"
|
419 |
+
|
420 |
+
#~ msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
|
421 |
+
#~ msgstr ""
|
422 |
+
#~ "Barra lateral actualizada. <a href=\"%s\">Administrar los widgets</a>"
|
423 |
+
|
424 |
+
#~ msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
|
425 |
+
#~ msgstr "Barra lateral publicada. <a href=\"%s\">Administrar los widgets</a>"
|
426 |
+
|
427 |
+
#~ msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
|
428 |
+
#~ msgstr "Barra lateral enviada. <a href=\"%s\">Administrar los widgets</a>"
|
429 |
+
|
430 |
+
#~ msgid "Spread the Word"
|
431 |
+
#~ msgstr "Ayudar al autor del plugin"
|
432 |
+
|
433 |
+
#~ msgid "Show with %s"
|
434 |
+
#~ msgstr "Mostrar con %s"
|
435 |
+
|
436 |
+
#~ msgid "http://www.intox.dk/"
|
437 |
+
#~ msgstr "http://www.intox.dk/"
|
438 |
+
|
439 |
+
#~ msgid "Joachim Jensen, Intox Studio"
|
440 |
+
#~ msgstr "Joachim Jensen, Intox Studio"
|
441 |
+
|
442 |
+
#~ msgid "Words from the author"
|
443 |
+
#~ msgstr "Et par ord fra forfatteren"
|
444 |
+
|
445 |
+
#~ msgid ""
|
446 |
+
#~ "Remember to <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> "
|
447 |
+
#~ "and <a class=\"button\" href=\"%2$s\" target=\"_blank\">share</a> it too!"
|
448 |
+
#~ msgstr ""
|
449 |
+
#~ "Glem ikke at <a class=\"button\" href=\"%1$s\" target=\"_blank\">vurdere</"
|
450 |
+
#~ "a> og <a class=\"button\" href=\"%2$s\" target=\"_blank\">dele</a> det!"
|
451 |
+
|
452 |
+
#~ msgid "Check out Content Aware Sidebars for %23WordPress! :)"
|
453 |
+
#~ msgstr "Jeg bruger Content Aware Sidebars til %23WordPress! :)"
|
454 |
+
|
455 |
+
#~ msgid "bbPress"
|
456 |
+
#~ msgstr "bbPress"
|
457 |
+
|
458 |
+
#~ msgid "Sidebar draft updated. <a href=\"%s\">Manage widgets</a>"
|
459 |
+
#~ msgstr "Sidebar-udkast opdateret. <a href=\"%s\">Håndter widgets</a>"
|
lang/content-aware-sidebars-hu_HU.mo
ADDED
Binary file
|
lang/content-aware-sidebars-hu_HU.po
ADDED
@@ -0,0 +1,417 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2012 Content Aware Sidebars
|
2 |
+
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Content Aware Sidebars 2.1\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
+
"POT-Creation-Date: 2014-05-01 12:57+0100\n"
|
8 |
+
"PO-Revision-Date: 2014-05-02 14:13+0100\n"
|
9 |
+
"Last-Translator: \n"
|
10 |
+
"Language-Team: Kis Lukács <kislukacs@gmail.com>\n"
|
11 |
+
"Language: hu_HU\n"
|
12 |
+
"MIME-Version: 1.0\n"
|
13 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
+
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.5.5\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
17 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
|
18 |
+
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
19 |
+
"X-Poedit-Basepath: .\n"
|
20 |
+
"X-Textdomain-Support: yes\n"
|
21 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
22 |
+
"X-Poedit-SearchPath-0: .\n"
|
23 |
+
"X-Poedit-SearchPath-1: ..\n"
|
24 |
+
|
25 |
+
#: ../content-aware-sidebars.php:111
|
26 |
+
msgid "Manage and show sidebars according to the content being viewed."
|
27 |
+
msgstr "Az oldalsávok kezelése és megjelenítése a tartalomnak megfelelően."
|
28 |
+
|
29 |
+
#: ../content-aware-sidebars.php:112
|
30 |
+
msgid "Content Aware Sidebars"
|
31 |
+
msgstr "Tartalomfüggő oldalsáv"
|
32 |
+
|
33 |
+
#: ../content-aware-sidebars.php:232 ../content-aware-sidebars.php:432
|
34 |
+
msgid "Exposure"
|
35 |
+
msgstr "Expozíció"
|
36 |
+
|
37 |
+
#: ../content-aware-sidebars.php:238
|
38 |
+
msgid "Singular"
|
39 |
+
msgstr "Egyes szám"
|
40 |
+
|
41 |
+
#: ../content-aware-sidebars.php:239
|
42 |
+
msgid "Singular & Archive"
|
43 |
+
msgstr "Egyes szám & archívum"
|
44 |
+
|
45 |
+
#: ../content-aware-sidebars.php:240
|
46 |
+
msgid "Archive"
|
47 |
+
msgstr "Archívum"
|
48 |
+
|
49 |
+
#: ../content-aware-sidebars.php:244 ../content-aware-sidebars.php:433
|
50 |
+
msgctxt "option"
|
51 |
+
msgid "Handle"
|
52 |
+
msgstr "Művelet"
|
53 |
+
|
54 |
+
#: ../content-aware-sidebars.php:246
|
55 |
+
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
56 |
+
msgstr ""
|
57 |
+
"Eredeti oldalsáv helyettesítése, egyesítés vele vagy oldalsáv hozzáadása "
|
58 |
+
"manuálisan."
|
59 |
+
|
60 |
+
#: ../content-aware-sidebars.php:250
|
61 |
+
msgid "Replace"
|
62 |
+
msgstr "Helyettesítés"
|
63 |
+
|
64 |
+
#: ../content-aware-sidebars.php:251
|
65 |
+
msgid "Merge"
|
66 |
+
msgstr "Egyesítés"
|
67 |
+
|
68 |
+
#: ../content-aware-sidebars.php:252
|
69 |
+
msgid "Manual"
|
70 |
+
msgstr "Manuális"
|
71 |
+
|
72 |
+
#: ../content-aware-sidebars.php:256
|
73 |
+
msgid "Host Sidebar"
|
74 |
+
msgstr "Eredeti oldalsáv"
|
75 |
+
|
76 |
+
#: ../content-aware-sidebars.php:264 ../content-aware-sidebars.php:434
|
77 |
+
msgid "Merge position"
|
78 |
+
msgstr "Egyesítés helye"
|
79 |
+
|
80 |
+
#: ../content-aware-sidebars.php:266
|
81 |
+
msgid "Place sidebar on top or bottom of host when merging."
|
82 |
+
msgstr ""
|
83 |
+
"Az oldalsáv elhelyezése a eredeti oldalsáv fölött vagy alatt egyesítéskor."
|
84 |
+
|
85 |
+
#: ../content-aware-sidebars.php:270
|
86 |
+
msgid "Top"
|
87 |
+
msgstr "Fent"
|
88 |
+
|
89 |
+
#: ../content-aware-sidebars.php:271
|
90 |
+
msgid "Bottom"
|
91 |
+
msgstr "Lent"
|
92 |
+
|
93 |
+
#: ../content-aware-sidebars.php:296
|
94 |
+
msgid "Sidebars"
|
95 |
+
msgstr "Oldalsávok"
|
96 |
+
|
97 |
+
#: ../content-aware-sidebars.php:297
|
98 |
+
msgid "Sidebar"
|
99 |
+
msgstr "Oldalsáv"
|
100 |
+
|
101 |
+
#: ../content-aware-sidebars.php:298
|
102 |
+
msgctxt "sidebar"
|
103 |
+
msgid "Add New"
|
104 |
+
msgstr "Új hozzáadása"
|
105 |
+
|
106 |
+
#: ../content-aware-sidebars.php:299
|
107 |
+
msgid "Add New Sidebar"
|
108 |
+
msgstr "Új oldalsáv hozzáadása"
|
109 |
+
|
110 |
+
#: ../content-aware-sidebars.php:300
|
111 |
+
msgid "Edit Sidebar"
|
112 |
+
msgstr "Oldalsáv szerkesztése"
|
113 |
+
|
114 |
+
#: ../content-aware-sidebars.php:301
|
115 |
+
msgid "New Sidebar"
|
116 |
+
msgstr "Új oldalsáv"
|
117 |
+
|
118 |
+
#: ../content-aware-sidebars.php:302
|
119 |
+
msgid "All Sidebars"
|
120 |
+
msgstr "Összes oldalsáv"
|
121 |
+
|
122 |
+
#: ../content-aware-sidebars.php:303
|
123 |
+
msgid "View Sidebar"
|
124 |
+
msgstr "Oldalsáv megtekintése"
|
125 |
+
|
126 |
+
#: ../content-aware-sidebars.php:304
|
127 |
+
msgid "Search Sidebars"
|
128 |
+
msgstr "Oldalsáv keresése"
|
129 |
+
|
130 |
+
#: ../content-aware-sidebars.php:305
|
131 |
+
msgid "No sidebars found"
|
132 |
+
msgstr "Oldalsáv nem található"
|
133 |
+
|
134 |
+
#: ../content-aware-sidebars.php:306
|
135 |
+
msgid "No sidebars found in Trash"
|
136 |
+
msgstr "Oldalsáv nem található a kukában"
|
137 |
+
|
138 |
+
#: ../content-aware-sidebars.php:321 ../content-aware-sidebars.php:892
|
139 |
+
msgid "Condition Groups"
|
140 |
+
msgstr "Feltétel csoportok"
|
141 |
+
|
142 |
+
#: ../content-aware-sidebars.php:322
|
143 |
+
msgid "Condition Group"
|
144 |
+
msgstr "Feltétel csoport"
|
145 |
+
|
146 |
+
#: ../content-aware-sidebars.php:323
|
147 |
+
msgctxt "group"
|
148 |
+
msgid "Add New"
|
149 |
+
msgstr "Új hozzáadása"
|
150 |
+
|
151 |
+
#: ../content-aware-sidebars.php:324 ../content-aware-sidebars.php:892
|
152 |
+
#: ../content-aware-sidebars.php:922
|
153 |
+
msgid "Add New Group"
|
154 |
+
msgstr "Új csoport hozzáadása"
|
155 |
+
|
156 |
+
#: ../content-aware-sidebars.php:325 ../content-aware-sidebars.php:907
|
157 |
+
#: ../content-aware-sidebars.php:1299
|
158 |
+
msgctxt "group"
|
159 |
+
msgid "Edit"
|
160 |
+
msgstr "Szerkesztés"
|
161 |
+
|
162 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:354
|
163 |
+
msgid "Sidebar updated."
|
164 |
+
msgstr "Oldalsáv frissítve."
|
165 |
+
|
166 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:356
|
167 |
+
#: ../content-aware-sidebars.php:358 ../content-aware-sidebars.php:363
|
168 |
+
msgid "Manage widgets"
|
169 |
+
msgstr "Widgetek kezelése"
|
170 |
+
|
171 |
+
#: ../content-aware-sidebars.php:356
|
172 |
+
msgid "Sidebar published."
|
173 |
+
msgstr "Oldalsáv közzétéve."
|
174 |
+
|
175 |
+
#: ../content-aware-sidebars.php:357
|
176 |
+
msgid "Sidebar saved."
|
177 |
+
msgstr "Oldalsáv mentve."
|
178 |
+
|
179 |
+
#: ../content-aware-sidebars.php:358
|
180 |
+
msgid "Sidebar submitted."
|
181 |
+
msgstr "Oldalsáv létrehozva."
|
182 |
+
|
183 |
+
#: ../content-aware-sidebars.php:359
|
184 |
+
#, php-format
|
185 |
+
msgid "Sidebar scheduled for: <strong>%1$s</strong>."
|
186 |
+
msgstr "Oldalsáv időzítve: <strong>%1$s</strong>."
|
187 |
+
|
188 |
+
#: ../content-aware-sidebars.php:361
|
189 |
+
msgid "M j, Y @ G:i"
|
190 |
+
msgstr "M j, Y @ G:i"
|
191 |
+
|
192 |
+
#: ../content-aware-sidebars.php:364
|
193 |
+
msgid "Sidebar draft updated."
|
194 |
+
msgstr "Oldalsáv vázlat frissítve."
|
195 |
+
|
196 |
+
#: ../content-aware-sidebars.php:408 ../content-aware-sidebars.php:493
|
197 |
+
msgid "Please update Host Sidebar"
|
198 |
+
msgstr "Kérjük, frissítse az eredeti oldalsávot"
|
199 |
+
|
200 |
+
#: ../content-aware-sidebars.php:568
|
201 |
+
msgid "Manage Widgets"
|
202 |
+
msgstr "Widgetek kezelése"
|
203 |
+
|
204 |
+
#: ../content-aware-sidebars.php:821
|
205 |
+
msgid "Support the Author of Content Aware Sidebars"
|
206 |
+
msgstr "A szerző támogatása"
|
207 |
+
|
208 |
+
#: ../content-aware-sidebars.php:829
|
209 |
+
msgid "Content"
|
210 |
+
msgstr "Tartalom"
|
211 |
+
|
212 |
+
#: ../content-aware-sidebars.php:837
|
213 |
+
msgid "Options"
|
214 |
+
msgstr "Beállítások"
|
215 |
+
|
216 |
+
#: ../content-aware-sidebars.php:893
|
217 |
+
msgid ""
|
218 |
+
"Click to edit a group or create a new one. Select content on the left to add "
|
219 |
+
"it. In each group, you can combine different types of associated content."
|
220 |
+
msgstr ""
|
221 |
+
"Kattintson ide a csoportok szerkesztéséhez, vagy új létrehozásához. A "
|
222 |
+
"tartalmat válassza ki a bal oldalon. Minden csoportban külön tudja kezelni a "
|
223 |
+
"tartalomhoz megfelelő típusokat."
|
224 |
+
|
225 |
+
#: ../content-aware-sidebars.php:894
|
226 |
+
msgid "Display sidebar with"
|
227 |
+
msgstr "Oldalsáv megjelenítése ezzel"
|
228 |
+
|
229 |
+
#: ../content-aware-sidebars.php:899
|
230 |
+
msgid ""
|
231 |
+
"No content. Please add at least one condition group to make the sidebar "
|
232 |
+
"content aware."
|
233 |
+
msgstr ""
|
234 |
+
"Nincs tartalom. Kérjük, adjon hozzá legalább egy feltétel csoportot, hogy az "
|
235 |
+
"oldalsáv tartalomfüggő legyen. "
|
236 |
+
|
237 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1297
|
238 |
+
msgid "Save"
|
239 |
+
msgstr "Mentés"
|
240 |
+
|
241 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1298
|
242 |
+
msgid "Cancel"
|
243 |
+
msgstr "Mégse"
|
244 |
+
|
245 |
+
#: ../content-aware-sidebars.php:907 ../content-aware-sidebars.php:1300
|
246 |
+
msgid "Remove"
|
247 |
+
msgstr "Eltávolítás"
|
248 |
+
|
249 |
+
#: ../content-aware-sidebars.php:997 ../content-aware-sidebars.php:1002
|
250 |
+
#: ../content-aware-sidebars.php:1044 ../content-aware-sidebars.php:1049
|
251 |
+
#: ../content-aware-sidebars.php:1082 ../content-aware-sidebars.php:1087
|
252 |
+
msgid "Unauthorized request"
|
253 |
+
msgstr "Jogosulatlan kérés"
|
254 |
+
|
255 |
+
#: ../content-aware-sidebars.php:1010
|
256 |
+
msgid "Condition group cannot be empty"
|
257 |
+
msgstr "Feltétel csoportot nem leht létrehozni"
|
258 |
+
|
259 |
+
#: ../content-aware-sidebars.php:1024
|
260 |
+
msgid "Condition group saved"
|
261 |
+
msgstr "Feltétel csoport mentve"
|
262 |
+
|
263 |
+
#: ../content-aware-sidebars.php:1056
|
264 |
+
msgid "Condition group could not be created"
|
265 |
+
msgstr "Feltétel csoportot nem leht létrehozni"
|
266 |
+
|
267 |
+
#: ../content-aware-sidebars.php:1061
|
268 |
+
msgid "Condition group added"
|
269 |
+
msgstr "Feltétel csoport hozzáadva"
|
270 |
+
|
271 |
+
#: ../content-aware-sidebars.php:1092
|
272 |
+
msgid "Condition group could not be removed"
|
273 |
+
msgstr "Feltétel csoportot nem lehet törölni"
|
274 |
+
|
275 |
+
#: ../content-aware-sidebars.php:1097
|
276 |
+
msgid "Condition group removed"
|
277 |
+
msgstr "Feltétel csoport törölve"
|
278 |
+
|
279 |
+
#: ../content-aware-sidebars.php:1163
|
280 |
+
msgid ""
|
281 |
+
"If you love this plugin, please consider donating to support future "
|
282 |
+
"development."
|
283 |
+
msgstr ""
|
284 |
+
"Ha tetszik ez a plugin, kérjük támogassa, hogy folytathassuk a fejlesztését."
|
285 |
+
|
286 |
+
#: ../content-aware-sidebars.php:1172
|
287 |
+
msgid "Or you could:"
|
288 |
+
msgstr "Vagy esetleg:"
|
289 |
+
|
290 |
+
#: ../content-aware-sidebars.php:1174
|
291 |
+
msgid "Rate the plugin on WordPress.org"
|
292 |
+
msgstr "Értékelje a plugint a WordPress.org címen"
|
293 |
+
|
294 |
+
#: ../content-aware-sidebars.php:1175
|
295 |
+
msgid "Link to the plugin page"
|
296 |
+
msgstr "Link a plugin oldalra"
|
297 |
+
|
298 |
+
#: ../content-aware-sidebars.php:1176
|
299 |
+
msgid "Translate the plugin into your language"
|
300 |
+
msgstr "Plugin lefordítása a saját nyelvre"
|
301 |
+
|
302 |
+
#: ../content-aware-sidebars.php:1301
|
303 |
+
msgid "Remove this group and its contents permanently?"
|
304 |
+
msgstr "Csoport és tartalmának eltávolítása véglegesen?"
|
305 |
+
|
306 |
+
#: ../content-aware-sidebars.php:1302
|
307 |
+
msgid "No results found."
|
308 |
+
msgstr "Nincs találat."
|
309 |
+
|
310 |
+
#: ../content-aware-sidebars.php:1303
|
311 |
+
msgid ""
|
312 |
+
"The current group has unsaved changes. Do you want to continue and discard "
|
313 |
+
"these changes?"
|
314 |
+
msgstr ""
|
315 |
+
"A csoportban vannak nem mentett módosítások. Valóban szeretné elvetni a "
|
316 |
+
"módosításokat és szeretne továbblépni?"
|
317 |
+
|
318 |
+
#: ../modules/abstract.php:88
|
319 |
+
#, php-format
|
320 |
+
msgid "Display with All %s"
|
321 |
+
msgstr "Megjelenítés az összes %s-val/vel"
|
322 |
+
|
323 |
+
#: ../modules/abstract.php:98 ../modules/bp_member.php:104
|
324 |
+
#: ../modules/post_type.php:198 ../modules/taxonomy.php:243
|
325 |
+
msgid "View All"
|
326 |
+
msgstr "Összes megtekintése"
|
327 |
+
|
328 |
+
#: ../modules/abstract.php:105 ../modules/abstract.php:108
|
329 |
+
#: ../modules/post_type.php:204 ../modules/post_type.php:207
|
330 |
+
#: ../modules/taxonomy.php:249 ../modules/taxonomy.php:252
|
331 |
+
msgid "Search"
|
332 |
+
msgstr "Keresés"
|
333 |
+
|
334 |
+
#: ../modules/abstract.php:116 ../modules/bp_member.php:113
|
335 |
+
#: ../modules/post_type.php:217 ../modules/taxonomy.php:262
|
336 |
+
msgid "Add to Group"
|
337 |
+
msgstr "Hozzáadás a csoporthoz"
|
338 |
+
|
339 |
+
#: ../modules/abstract.php:188
|
340 |
+
#, php-format
|
341 |
+
msgid "All %s"
|
342 |
+
msgstr "Összes %s"
|
343 |
+
|
344 |
+
#: ../modules/author.php:22
|
345 |
+
msgid "Authors"
|
346 |
+
msgstr "Szerzők"
|
347 |
+
|
348 |
+
#: ../modules/bbpress.php:23
|
349 |
+
msgid "bbPress User Profiles"
|
350 |
+
msgstr "bbPress felhasználói fiókok"
|
351 |
+
|
352 |
+
#: ../modules/bp_member.php:21
|
353 |
+
msgid "BuddyPress Members"
|
354 |
+
msgstr "BuddyPress felhasználók"
|
355 |
+
|
356 |
+
#: ../modules/page_template.php:22
|
357 |
+
msgid "Page Templates"
|
358 |
+
msgstr "Oldal sablonok"
|
359 |
+
|
360 |
+
#: ../modules/polylang.php:21 ../modules/qtranslate.php:21
|
361 |
+
#: ../modules/transposh.php:21 ../modules/wpml.php:21
|
362 |
+
msgid "Languages"
|
363 |
+
msgstr "Nyelvek"
|
364 |
+
|
365 |
+
#: ../modules/post_type.php:28
|
366 |
+
msgid "Post Types"
|
367 |
+
msgstr "Bejegyzés típusok"
|
368 |
+
|
369 |
+
#: ../modules/post_type.php:105 ../modules/post_type.php:171
|
370 |
+
#: ../modules/taxonomy.php:182 ../modules/taxonomy.php:217
|
371 |
+
msgid "Automatically select new children of a selected ancestor"
|
372 |
+
msgstr "Automatikus utód kiválasztása az ős alapján."
|
373 |
+
|
374 |
+
#: ../modules/post_type.php:177 ../modules/taxonomy.php:221
|
375 |
+
#, php-format
|
376 |
+
msgid "Display with %s"
|
377 |
+
msgstr "Megjelenítés %s-val/vel."
|
378 |
+
|
379 |
+
#: ../modules/post_type.php:182 ../modules/taxonomy.php:225
|
380 |
+
msgid "No items."
|
381 |
+
msgstr "Nincs elem."
|
382 |
+
|
383 |
+
#: ../modules/post_type.php:193
|
384 |
+
msgid "Most Recent"
|
385 |
+
msgstr "Legújabb"
|
386 |
+
|
387 |
+
#: ../modules/static.php:23
|
388 |
+
msgid "Static Pages"
|
389 |
+
msgstr "Statikus oldal"
|
390 |
+
|
391 |
+
#: ../modules/static.php:33
|
392 |
+
msgid "Front Page"
|
393 |
+
msgstr "Kezdőlap"
|
394 |
+
|
395 |
+
#: ../modules/static.php:34
|
396 |
+
msgid "Search Results"
|
397 |
+
msgstr "Keresési találatok"
|
398 |
+
|
399 |
+
#: ../modules/static.php:35
|
400 |
+
msgid "404 Page"
|
401 |
+
msgstr "404-es oldal"
|
402 |
+
|
403 |
+
#: ../modules/taxonomy.php:34
|
404 |
+
msgid "Taxonomies"
|
405 |
+
msgstr "Taxonómiák"
|
406 |
+
|
407 |
+
#: ../modules/taxonomy.php:238
|
408 |
+
msgid "Most Used"
|
409 |
+
msgstr "Leggyakrabban használt"
|
410 |
+
|
411 |
+
#: ../modules/url.php:22
|
412 |
+
msgid "URLs"
|
413 |
+
msgstr "URL-ek"
|
414 |
+
|
415 |
+
#: ../modules/url.php:40
|
416 |
+
msgid "Add"
|
417 |
+
msgstr "Hozzáadás"
|
lang/content-aware-sidebars-it_IT.mo
CHANGED
Binary file
|
lang/content-aware-sidebars-it_IT.po
CHANGED
@@ -4,284 +4,490 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Content Aware Sidebars\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
-
"PO-Revision-Date:
|
9 |
-
"Last-Translator:
|
10 |
"Language-Team: MyWeb2 <info@myweb2.it>\n"
|
11 |
"Language: it_IT\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Generator: Poedit 1.5.
|
17 |
|
18 |
-
#: content-aware-sidebars.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
msgid "Exposure"
|
20 |
msgstr "Tipologia"
|
21 |
|
22 |
-
#: content-aware-sidebars.php:
|
23 |
msgid "Singular"
|
24 |
msgstr "Singola"
|
25 |
|
26 |
-
#: content-aware-sidebars.php:
|
27 |
msgid "Singular & Archive"
|
28 |
msgstr "Singola e archivio"
|
29 |
|
30 |
-
#: content-aware-sidebars.php:
|
31 |
msgid "Archive"
|
32 |
msgstr "Archivio"
|
33 |
|
34 |
-
#: content-aware-sidebars.php:
|
35 |
msgctxt "option"
|
36 |
msgid "Handle"
|
37 |
msgstr "Comportamento"
|
38 |
|
39 |
-
#: content-aware-sidebars.php:
|
40 |
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
41 |
msgstr ""
|
42 |
"Sostituisce sidebar, si fonde con essa o aggiunge la sidebar manualmente."
|
43 |
|
44 |
-
#: content-aware-sidebars.php:
|
45 |
msgid "Replace"
|
46 |
msgstr "Sostituzione"
|
47 |
|
48 |
-
#: content-aware-sidebars.php:
|
49 |
msgid "Merge"
|
50 |
msgstr "Unione"
|
51 |
|
52 |
-
#: content-aware-sidebars.php:
|
53 |
msgid "Manual"
|
54 |
msgstr "Manuale"
|
55 |
|
56 |
-
#: content-aware-sidebars.php:
|
57 |
msgid "Host Sidebar"
|
58 |
msgstr "Sidebar"
|
59 |
|
60 |
-
#: content-aware-sidebars.php:
|
61 |
msgid "Merge position"
|
62 |
msgstr "Posizione"
|
63 |
|
64 |
-
#: content-aware-sidebars.php:
|
65 |
msgid "Place sidebar on top or bottom of host when merging."
|
66 |
msgstr "Posizione sidebar in alto o in basso dell'host durante la fusione."
|
67 |
|
68 |
-
#: content-aware-sidebars.php:
|
69 |
msgid "Top"
|
70 |
msgstr "Alto"
|
71 |
|
72 |
-
#: content-aware-sidebars.php:
|
73 |
msgid "Bottom"
|
74 |
msgstr "Basso"
|
75 |
|
76 |
-
#: content-aware-sidebars.php:
|
77 |
msgid "Sidebars"
|
78 |
msgstr "Sidebars"
|
79 |
|
80 |
-
#: content-aware-sidebars.php:
|
81 |
msgid "Sidebar"
|
82 |
msgstr "Sidebar"
|
83 |
|
84 |
-
#: content-aware-sidebars.php:
|
85 |
msgctxt "sidebar"
|
86 |
msgid "Add New"
|
87 |
msgstr "Aggiungi"
|
88 |
|
89 |
-
#: content-aware-sidebars.php:
|
90 |
msgid "Add New Sidebar"
|
91 |
msgstr "Aggiungi Nuova Sidebar"
|
92 |
|
93 |
-
#: content-aware-sidebars.php:
|
94 |
msgid "Edit Sidebar"
|
95 |
msgstr "Modifica Sidebar"
|
96 |
|
97 |
-
#: content-aware-sidebars.php:
|
98 |
msgid "New Sidebar"
|
99 |
msgstr "Nuova Sidebar"
|
100 |
|
101 |
-
#: content-aware-sidebars.php:
|
102 |
msgid "All Sidebars"
|
103 |
msgstr "Tutte le Sidebars"
|
104 |
|
105 |
-
#: content-aware-sidebars.php:
|
106 |
msgid "View Sidebar"
|
107 |
msgstr "Vedi Sidebar"
|
108 |
|
109 |
-
#: content-aware-sidebars.php:
|
110 |
msgid "Search Sidebars"
|
111 |
msgstr "Cerca Sidebars"
|
112 |
|
113 |
-
#: content-aware-sidebars.php:
|
114 |
msgid "No sidebars found"
|
115 |
msgstr "Nessuna sidebar trovata"
|
116 |
|
117 |
-
#: content-aware-sidebars.php:
|
118 |
msgid "No sidebars found in Trash"
|
119 |
msgstr "nessuna sidebar cancellata"
|
120 |
|
121 |
-
#: content-aware-sidebars.php:
|
122 |
-
msgid "
|
123 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
|
125 |
-
#: content-aware-sidebars.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
msgid "Sidebar updated."
|
127 |
msgstr "Sidebar aggiornata."
|
128 |
|
129 |
-
#: content-aware-sidebars.php:
|
130 |
-
|
131 |
-
|
|
|
|
|
|
|
|
|
|
|
132 |
|
133 |
-
#: content-aware-sidebars.php:
|
134 |
msgid "Sidebar saved."
|
135 |
msgstr "Sidebar salvata."
|
136 |
|
137 |
-
#: content-aware-sidebars.php:
|
138 |
-
msgid "Sidebar submitted.
|
139 |
-
msgstr "Sidebar
|
140 |
|
141 |
-
#: content-aware-sidebars.php:
|
142 |
-
|
143 |
-
"Sidebar scheduled for: <strong>%1$s</strong>.
|
144 |
-
"
|
145 |
-
msgstr ""
|
146 |
-
"Sidebar posticipata per: <strong>%1$s</strong>. <a href=\"%2$s\">Gestione "
|
147 |
-
"widgets</a>"
|
148 |
|
149 |
-
|
150 |
-
#: content-aware-sidebars.php:263
|
151 |
msgid "M j, Y @ G:i"
|
152 |
msgstr "M j, Y @ G:i"
|
153 |
|
154 |
-
#: content-aware-sidebars.php:
|
155 |
msgid "Sidebar draft updated."
|
156 |
msgstr "Bozza sidebar aggiornata. "
|
157 |
|
158 |
-
#: content-aware-sidebars.php:
|
159 |
msgid "Please update Host Sidebar"
|
160 |
msgstr "Aggiorna Sidebar"
|
161 |
|
162 |
-
#: content-aware-sidebars.php:
|
163 |
msgid "Manage Widgets"
|
164 |
msgstr "Gestione Widgets"
|
165 |
|
166 |
-
#: content-aware-sidebars.php:
|
167 |
-
msgid "
|
168 |
-
msgstr "
|
169 |
|
170 |
-
#: content-aware-sidebars.php:
|
171 |
msgid "Content"
|
172 |
msgstr "Contenuto"
|
173 |
|
174 |
-
#: content-aware-sidebars.php:
|
175 |
msgid "Options"
|
176 |
msgstr "Opzioni"
|
177 |
|
178 |
-
#: content-aware-sidebars.php:
|
179 |
-
msgid "
|
180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
-
#: content-aware-sidebars.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
msgid ""
|
184 |
-
"
|
185 |
-
"
|
186 |
msgstr ""
|
187 |
-
"
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
|
190 |
-
#: content-aware-sidebars.php:
|
191 |
-
msgid "
|
192 |
-
msgstr "
|
193 |
|
194 |
-
#: content-aware-sidebars.php:
|
195 |
-
msgid "
|
196 |
-
msgstr "
|
197 |
|
198 |
-
#:
|
199 |
-
msgid "
|
200 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
|
202 |
-
#: modules/abstract.php:
|
|
|
203 |
msgid "View All"
|
204 |
msgstr "Vedi tutti"
|
205 |
|
206 |
-
#: modules/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
msgid "Authors"
|
208 |
msgstr "Autori"
|
209 |
|
210 |
-
#: modules/bbpress.php:
|
211 |
msgid "bbPress User Profiles"
|
212 |
msgstr "Profilo utente bbPress"
|
213 |
|
214 |
-
#: modules/bp_member.php:
|
215 |
msgid "BuddyPress Members"
|
216 |
msgstr "Utenti BuddyPress"
|
217 |
|
218 |
-
#: modules/page_template.php:
|
219 |
msgid "Page Templates"
|
220 |
-
msgstr "Template
|
221 |
|
222 |
-
#: modules/polylang.php:
|
223 |
-
#: modules/wpml.php:
|
224 |
msgid "Languages"
|
225 |
msgstr "Lingue"
|
226 |
|
227 |
-
#: modules/post_type.php:
|
228 |
msgid "Post Types"
|
229 |
msgstr "Tipi di messaggi"
|
230 |
|
231 |
-
#: modules/post_type.php:
|
|
|
232 |
msgid "Automatically select new children of a selected ancestor"
|
233 |
msgstr "Seleziona automaticamente nuovi figli di un percorso selezionato"
|
234 |
|
235 |
-
#: modules/post_type.php:
|
|
|
|
|
|
|
|
|
|
|
236 |
msgid "No items."
|
237 |
msgstr "Nessun oggetto."
|
238 |
|
239 |
-
#: modules/
|
|
|
|
|
|
|
|
|
240 |
msgid "Static Pages"
|
241 |
msgstr "Pagine statiche"
|
242 |
|
243 |
-
#: modules/static.php:
|
244 |
msgid "Front Page"
|
245 |
msgstr "Pagina principale"
|
246 |
|
247 |
-
#: modules/static.php:
|
248 |
msgid "Search Results"
|
249 |
msgstr "Risultati di ricerca"
|
250 |
|
251 |
-
#: modules/static.php:
|
252 |
msgid "404 Page"
|
253 |
msgstr "Pagina 404"
|
254 |
|
255 |
-
#: modules/taxonomy.php:
|
256 |
msgid "Taxonomies"
|
257 |
msgstr "Tassonomie"
|
258 |
|
259 |
-
#: modules/taxonomy.php:
|
260 |
-
msgid "Show with %s"
|
261 |
-
msgstr "Mostra %s"
|
262 |
-
|
263 |
-
#: modules/taxonomy.php:120
|
264 |
msgid "Most Used"
|
265 |
msgstr "Più usati"
|
266 |
|
267 |
-
|
268 |
-
msgid "
|
269 |
-
msgstr "
|
270 |
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
#. Author URI of the plugin/theme
|
275 |
-
msgid "http://www.intox.dk/"
|
276 |
-
msgstr "http://www.intox.dk/"
|
277 |
|
278 |
-
|
279 |
-
|
280 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
-
|
283 |
-
msgid "
|
284 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
|
286 |
#~ msgid "bbPress"
|
287 |
#~ msgstr "bbPress"
|
|
|
|
|
|
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Content Aware Sidebars\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
+
"POT-Creation-Date: 2014-05-01 12:57+0100\n"
|
8 |
+
"PO-Revision-Date: 2014-05-01 13:19+0100\n"
|
9 |
+
"Last-Translator: \n"
|
10 |
"Language-Team: MyWeb2 <info@myweb2.it>\n"
|
11 |
"Language: it_IT\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Generator: Poedit 1.5.5\n"
|
17 |
|
18 |
+
#: ../content-aware-sidebars.php:111
|
19 |
+
msgid "Manage and show sidebars according to the content being viewed."
|
20 |
+
msgstr "Gestisce e mostra sidebars a seconda del contenuto visualizzato."
|
21 |
+
|
22 |
+
#: ../content-aware-sidebars.php:112
|
23 |
+
msgid "Content Aware Sidebars"
|
24 |
+
msgstr "Content Aware Sidebars"
|
25 |
+
|
26 |
+
#: ../content-aware-sidebars.php:232 ../content-aware-sidebars.php:432
|
27 |
msgid "Exposure"
|
28 |
msgstr "Tipologia"
|
29 |
|
30 |
+
#: ../content-aware-sidebars.php:238
|
31 |
msgid "Singular"
|
32 |
msgstr "Singola"
|
33 |
|
34 |
+
#: ../content-aware-sidebars.php:239
|
35 |
msgid "Singular & Archive"
|
36 |
msgstr "Singola e archivio"
|
37 |
|
38 |
+
#: ../content-aware-sidebars.php:240
|
39 |
msgid "Archive"
|
40 |
msgstr "Archivio"
|
41 |
|
42 |
+
#: ../content-aware-sidebars.php:244 ../content-aware-sidebars.php:433
|
43 |
msgctxt "option"
|
44 |
msgid "Handle"
|
45 |
msgstr "Comportamento"
|
46 |
|
47 |
+
#: ../content-aware-sidebars.php:246
|
48 |
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
49 |
msgstr ""
|
50 |
"Sostituisce sidebar, si fonde con essa o aggiunge la sidebar manualmente."
|
51 |
|
52 |
+
#: ../content-aware-sidebars.php:250
|
53 |
msgid "Replace"
|
54 |
msgstr "Sostituzione"
|
55 |
|
56 |
+
#: ../content-aware-sidebars.php:251
|
57 |
msgid "Merge"
|
58 |
msgstr "Unione"
|
59 |
|
60 |
+
#: ../content-aware-sidebars.php:252
|
61 |
msgid "Manual"
|
62 |
msgstr "Manuale"
|
63 |
|
64 |
+
#: ../content-aware-sidebars.php:256
|
65 |
msgid "Host Sidebar"
|
66 |
msgstr "Sidebar"
|
67 |
|
68 |
+
#: ../content-aware-sidebars.php:264 ../content-aware-sidebars.php:434
|
69 |
msgid "Merge position"
|
70 |
msgstr "Posizione"
|
71 |
|
72 |
+
#: ../content-aware-sidebars.php:266
|
73 |
msgid "Place sidebar on top or bottom of host when merging."
|
74 |
msgstr "Posizione sidebar in alto o in basso dell'host durante la fusione."
|
75 |
|
76 |
+
#: ../content-aware-sidebars.php:270
|
77 |
msgid "Top"
|
78 |
msgstr "Alto"
|
79 |
|
80 |
+
#: ../content-aware-sidebars.php:271
|
81 |
msgid "Bottom"
|
82 |
msgstr "Basso"
|
83 |
|
84 |
+
#: ../content-aware-sidebars.php:296
|
85 |
msgid "Sidebars"
|
86 |
msgstr "Sidebars"
|
87 |
|
88 |
+
#: ../content-aware-sidebars.php:297
|
89 |
msgid "Sidebar"
|
90 |
msgstr "Sidebar"
|
91 |
|
92 |
+
#: ../content-aware-sidebars.php:298
|
93 |
msgctxt "sidebar"
|
94 |
msgid "Add New"
|
95 |
msgstr "Aggiungi"
|
96 |
|
97 |
+
#: ../content-aware-sidebars.php:299
|
98 |
msgid "Add New Sidebar"
|
99 |
msgstr "Aggiungi Nuova Sidebar"
|
100 |
|
101 |
+
#: ../content-aware-sidebars.php:300
|
102 |
msgid "Edit Sidebar"
|
103 |
msgstr "Modifica Sidebar"
|
104 |
|
105 |
+
#: ../content-aware-sidebars.php:301
|
106 |
msgid "New Sidebar"
|
107 |
msgstr "Nuova Sidebar"
|
108 |
|
109 |
+
#: ../content-aware-sidebars.php:302
|
110 |
msgid "All Sidebars"
|
111 |
msgstr "Tutte le Sidebars"
|
112 |
|
113 |
+
#: ../content-aware-sidebars.php:303
|
114 |
msgid "View Sidebar"
|
115 |
msgstr "Vedi Sidebar"
|
116 |
|
117 |
+
#: ../content-aware-sidebars.php:304
|
118 |
msgid "Search Sidebars"
|
119 |
msgstr "Cerca Sidebars"
|
120 |
|
121 |
+
#: ../content-aware-sidebars.php:305
|
122 |
msgid "No sidebars found"
|
123 |
msgstr "Nessuna sidebar trovata"
|
124 |
|
125 |
+
#: ../content-aware-sidebars.php:306
|
126 |
msgid "No sidebars found in Trash"
|
127 |
msgstr "nessuna sidebar cancellata"
|
128 |
|
129 |
+
#: ../content-aware-sidebars.php:321 ../content-aware-sidebars.php:892
|
130 |
+
msgid "Condition Groups"
|
131 |
+
msgstr "Condizione gruppi "
|
132 |
+
|
133 |
+
#: ../content-aware-sidebars.php:322
|
134 |
+
msgid "Condition Group"
|
135 |
+
msgstr "Condizione gruppo "
|
136 |
+
|
137 |
+
#: ../content-aware-sidebars.php:323
|
138 |
+
msgctxt "group"
|
139 |
+
msgid "Add New"
|
140 |
+
msgstr "Aggiungi"
|
141 |
|
142 |
+
#: ../content-aware-sidebars.php:324 ../content-aware-sidebars.php:892
|
143 |
+
#: ../content-aware-sidebars.php:922
|
144 |
+
msgid "Add New Group"
|
145 |
+
msgstr "Aggiungi"
|
146 |
+
|
147 |
+
#: ../content-aware-sidebars.php:325 ../content-aware-sidebars.php:907
|
148 |
+
#: ../content-aware-sidebars.php:1299
|
149 |
+
msgctxt "group"
|
150 |
+
msgid "Edit"
|
151 |
+
msgstr "Modifica"
|
152 |
+
|
153 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:354
|
154 |
msgid "Sidebar updated."
|
155 |
msgstr "Sidebar aggiornata."
|
156 |
|
157 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:356
|
158 |
+
#: ../content-aware-sidebars.php:358 ../content-aware-sidebars.php:363
|
159 |
+
msgid "Manage widgets"
|
160 |
+
msgstr "Gestione Widgets"
|
161 |
+
|
162 |
+
#: ../content-aware-sidebars.php:356
|
163 |
+
msgid "Sidebar published."
|
164 |
+
msgstr "Sidebar pubblicata."
|
165 |
|
166 |
+
#: ../content-aware-sidebars.php:357
|
167 |
msgid "Sidebar saved."
|
168 |
msgstr "Sidebar salvata."
|
169 |
|
170 |
+
#: ../content-aware-sidebars.php:358
|
171 |
+
msgid "Sidebar submitted."
|
172 |
+
msgstr "Sidebar aggiornata."
|
173 |
|
174 |
+
#: ../content-aware-sidebars.php:359
|
175 |
+
#, php-format
|
176 |
+
msgid "Sidebar scheduled for: <strong>%1$s</strong>."
|
177 |
+
msgstr "Sidebar posticipata per: <strong>%1$s</strong>."
|
|
|
|
|
|
|
178 |
|
179 |
+
#: ../content-aware-sidebars.php:361
|
|
|
180 |
msgid "M j, Y @ G:i"
|
181 |
msgstr "M j, Y @ G:i"
|
182 |
|
183 |
+
#: ../content-aware-sidebars.php:364
|
184 |
msgid "Sidebar draft updated."
|
185 |
msgstr "Bozza sidebar aggiornata. "
|
186 |
|
187 |
+
#: ../content-aware-sidebars.php:408 ../content-aware-sidebars.php:493
|
188 |
msgid "Please update Host Sidebar"
|
189 |
msgstr "Aggiorna Sidebar"
|
190 |
|
191 |
+
#: ../content-aware-sidebars.php:568
|
192 |
msgid "Manage Widgets"
|
193 |
msgstr "Gestione Widgets"
|
194 |
|
195 |
+
#: ../content-aware-sidebars.php:821
|
196 |
+
msgid "Support the Author of Content Aware Sidebars"
|
197 |
+
msgstr "Supporta l'autore di Content Aware Sidebars"
|
198 |
|
199 |
+
#: ../content-aware-sidebars.php:829
|
200 |
msgid "Content"
|
201 |
msgstr "Contenuto"
|
202 |
|
203 |
+
#: ../content-aware-sidebars.php:837
|
204 |
msgid "Options"
|
205 |
msgstr "Opzioni"
|
206 |
|
207 |
+
#: ../content-aware-sidebars.php:893
|
208 |
+
msgid ""
|
209 |
+
"Click to edit a group or create a new one. Select content on the left to add "
|
210 |
+
"it. In each group, you can combine different types of associated content."
|
211 |
+
msgstr ""
|
212 |
+
"Clicca per modificare un gruppo o crearne uno nuovo. Seleziona il contenuto "
|
213 |
+
"a sinistra per aggiungerlo. In ogni gruppo, è possibile combinare diversi "
|
214 |
+
"tipi di contenuti associati."
|
215 |
+
|
216 |
+
#: ../content-aware-sidebars.php:894
|
217 |
+
msgid "Display sidebar with"
|
218 |
+
msgstr "Visualizza larghezza sidebar"
|
219 |
+
|
220 |
+
#: ../content-aware-sidebars.php:899
|
221 |
+
msgid ""
|
222 |
+
"No content. Please add at least one condition group to make the sidebar "
|
223 |
+
"content aware."
|
224 |
+
msgstr ""
|
225 |
+
"Nessun contenuto. Si prega di aggiungere almeno una condizione di gruppo per "
|
226 |
+
"impostare il il contenuto della sidebar"
|
227 |
+
|
228 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1297
|
229 |
+
msgid "Save"
|
230 |
+
msgstr "Salva"
|
231 |
+
|
232 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1298
|
233 |
+
msgid "Cancel"
|
234 |
+
msgstr "Annulla"
|
235 |
+
|
236 |
+
#: ../content-aware-sidebars.php:907 ../content-aware-sidebars.php:1300
|
237 |
+
msgid "Remove"
|
238 |
+
msgstr "Elimina"
|
239 |
+
|
240 |
+
#: ../content-aware-sidebars.php:997 ../content-aware-sidebars.php:1002
|
241 |
+
#: ../content-aware-sidebars.php:1044 ../content-aware-sidebars.php:1049
|
242 |
+
#: ../content-aware-sidebars.php:1082 ../content-aware-sidebars.php:1087
|
243 |
+
msgid "Unauthorized request"
|
244 |
+
msgstr "Richiesta non autorizzata"
|
245 |
|
246 |
+
#: ../content-aware-sidebars.php:1010
|
247 |
+
msgid "Condition group cannot be empty"
|
248 |
+
msgstr "Impossibile creare condizioni di gruppo"
|
249 |
+
|
250 |
+
#: ../content-aware-sidebars.php:1024
|
251 |
+
msgid "Condition group saved"
|
252 |
+
msgstr "Condizioni di gruppo salvate"
|
253 |
+
|
254 |
+
#: ../content-aware-sidebars.php:1056
|
255 |
+
msgid "Condition group could not be created"
|
256 |
+
msgstr "Impossibile creare condizioni di gruppo"
|
257 |
+
|
258 |
+
#: ../content-aware-sidebars.php:1061
|
259 |
+
msgid "Condition group added"
|
260 |
+
msgstr "Aggiunta condizione di gruppo"
|
261 |
+
|
262 |
+
#: ../content-aware-sidebars.php:1092
|
263 |
+
msgid "Condition group could not be removed"
|
264 |
+
msgstr "Le condizioni di gruppo non possono essere eliminate"
|
265 |
+
|
266 |
+
#: ../content-aware-sidebars.php:1097
|
267 |
+
msgid "Condition group removed"
|
268 |
+
msgstr "Condizione di gruppo eliminata "
|
269 |
+
|
270 |
+
#: ../content-aware-sidebars.php:1163
|
271 |
msgid ""
|
272 |
+
"If you love this plugin, please consider donating to support future "
|
273 |
+
"development."
|
274 |
msgstr ""
|
275 |
+
"Se ti piace questo plugin, considera l'eventualità di fare una donazione."
|
276 |
+
|
277 |
+
#: ../content-aware-sidebars.php:1172
|
278 |
+
msgid "Or you could:"
|
279 |
+
msgstr "Ti potrebbe anche interessare:"
|
280 |
+
|
281 |
+
#: ../content-aware-sidebars.php:1174
|
282 |
+
msgid "Rate the plugin on WordPress.org"
|
283 |
+
msgstr "Valutare il plugin su WordPress.org"
|
284 |
+
|
285 |
+
#: ../content-aware-sidebars.php:1175
|
286 |
+
msgid "Link to the plugin page"
|
287 |
+
msgstr "Collegarti alla pagina WordPress del plugin"
|
288 |
|
289 |
+
#: ../content-aware-sidebars.php:1176
|
290 |
+
msgid "Translate the plugin into your language"
|
291 |
+
msgstr "Tradurre questo plugin nella tua lingua"
|
292 |
|
293 |
+
#: ../content-aware-sidebars.php:1301
|
294 |
+
msgid "Remove this group and its contents permanently?"
|
295 |
+
msgstr "Vuoi eliminare questo gruppo e il suo contenuto in modo permanente?"
|
296 |
|
297 |
+
#: ../content-aware-sidebars.php:1302
|
298 |
+
msgid "No results found."
|
299 |
+
msgstr "Nessuna sidebar trovata"
|
300 |
+
|
301 |
+
#: ../content-aware-sidebars.php:1303
|
302 |
+
msgid ""
|
303 |
+
"The current group has unsaved changes. Do you want to continue and discard "
|
304 |
+
"these changes?"
|
305 |
+
msgstr ""
|
306 |
+
"Il gruppo attuale contiene modifiche non salvate. Vuoi proseguire e "
|
307 |
+
"eliminare questi cambiamenti?"
|
308 |
+
|
309 |
+
#: ../modules/abstract.php:88
|
310 |
+
#, php-format
|
311 |
+
msgid "Display with All %s"
|
312 |
+
msgstr "Visualizza tutte le %s"
|
313 |
|
314 |
+
#: ../modules/abstract.php:98 ../modules/bp_member.php:104
|
315 |
+
#: ../modules/post_type.php:198 ../modules/taxonomy.php:243
|
316 |
msgid "View All"
|
317 |
msgstr "Vedi tutti"
|
318 |
|
319 |
+
#: ../modules/abstract.php:105 ../modules/abstract.php:108
|
320 |
+
#: ../modules/post_type.php:204 ../modules/post_type.php:207
|
321 |
+
#: ../modules/taxonomy.php:249 ../modules/taxonomy.php:252
|
322 |
+
msgid "Search"
|
323 |
+
msgstr "Cerca"
|
324 |
+
|
325 |
+
#: ../modules/abstract.php:116 ../modules/bp_member.php:113
|
326 |
+
#: ../modules/post_type.php:217 ../modules/taxonomy.php:262
|
327 |
+
msgid "Add to Group"
|
328 |
+
msgstr "Aggiungi gruppo"
|
329 |
+
|
330 |
+
#: ../modules/abstract.php:188
|
331 |
+
#, php-format
|
332 |
+
msgid "All %s"
|
333 |
+
msgstr "Tutte le %s"
|
334 |
+
|
335 |
+
#: ../modules/author.php:22
|
336 |
msgid "Authors"
|
337 |
msgstr "Autori"
|
338 |
|
339 |
+
#: ../modules/bbpress.php:23
|
340 |
msgid "bbPress User Profiles"
|
341 |
msgstr "Profilo utente bbPress"
|
342 |
|
343 |
+
#: ../modules/bp_member.php:21
|
344 |
msgid "BuddyPress Members"
|
345 |
msgstr "Utenti BuddyPress"
|
346 |
|
347 |
+
#: ../modules/page_template.php:22
|
348 |
msgid "Page Templates"
|
349 |
+
msgstr "Template pagine"
|
350 |
|
351 |
+
#: ../modules/polylang.php:21 ../modules/qtranslate.php:21
|
352 |
+
#: ../modules/transposh.php:21 ../modules/wpml.php:21
|
353 |
msgid "Languages"
|
354 |
msgstr "Lingue"
|
355 |
|
356 |
+
#: ../modules/post_type.php:28
|
357 |
msgid "Post Types"
|
358 |
msgstr "Tipi di messaggi"
|
359 |
|
360 |
+
#: ../modules/post_type.php:105 ../modules/post_type.php:171
|
361 |
+
#: ../modules/taxonomy.php:182 ../modules/taxonomy.php:217
|
362 |
msgid "Automatically select new children of a selected ancestor"
|
363 |
msgstr "Seleziona automaticamente nuovi figli di un percorso selezionato"
|
364 |
|
365 |
+
#: ../modules/post_type.php:177 ../modules/taxonomy.php:221
|
366 |
+
#, php-format
|
367 |
+
msgid "Display with %s"
|
368 |
+
msgstr "Larghezza %s"
|
369 |
+
|
370 |
+
#: ../modules/post_type.php:182 ../modules/taxonomy.php:225
|
371 |
msgid "No items."
|
372 |
msgstr "Nessun oggetto."
|
373 |
|
374 |
+
#: ../modules/post_type.php:193
|
375 |
+
msgid "Most Recent"
|
376 |
+
msgstr "Più usati"
|
377 |
+
|
378 |
+
#: ../modules/static.php:23
|
379 |
msgid "Static Pages"
|
380 |
msgstr "Pagine statiche"
|
381 |
|
382 |
+
#: ../modules/static.php:33
|
383 |
msgid "Front Page"
|
384 |
msgstr "Pagina principale"
|
385 |
|
386 |
+
#: ../modules/static.php:34
|
387 |
msgid "Search Results"
|
388 |
msgstr "Risultati di ricerca"
|
389 |
|
390 |
+
#: ../modules/static.php:35
|
391 |
msgid "404 Page"
|
392 |
msgstr "Pagina 404"
|
393 |
|
394 |
+
#: ../modules/taxonomy.php:34
|
395 |
msgid "Taxonomies"
|
396 |
msgstr "Tassonomie"
|
397 |
|
398 |
+
#: ../modules/taxonomy.php:238
|
|
|
|
|
|
|
|
|
399 |
msgid "Most Used"
|
400 |
msgstr "Più usati"
|
401 |
|
402 |
+
#: ../modules/url.php:22
|
403 |
+
msgid "URLs"
|
404 |
+
msgstr "URL"
|
405 |
|
406 |
+
#: ../modules/url.php:40
|
407 |
+
msgid "Add"
|
408 |
+
msgstr "Aggiungi"
|
|
|
|
|
|
|
409 |
|
410 |
+
#~ msgid "Show with All %s"
|
411 |
+
#~ msgstr "Seleziona tutto: %s"
|
412 |
+
|
413 |
+
#, fuzzy
|
414 |
+
#~ msgid "New Sidebar Group"
|
415 |
+
#~ msgstr "Nuova Sidebar"
|
416 |
+
|
417 |
+
#, fuzzy
|
418 |
+
#~ msgid "Sidebar Groups"
|
419 |
+
#~ msgstr "Sidebars"
|
420 |
|
421 |
+
#, fuzzy
|
422 |
+
#~ msgid "Sidebar Group"
|
423 |
+
#~ msgstr "Sidebar"
|
424 |
+
|
425 |
+
#, fuzzy
|
426 |
+
#~ msgid "Add New Sidebar Group"
|
427 |
+
#~ msgstr "Aggiungi Nuova Sidebar"
|
428 |
+
|
429 |
+
#, fuzzy
|
430 |
+
#~ msgid "Edit Sidebar Group"
|
431 |
+
#~ msgstr "Modifica Sidebar"
|
432 |
+
|
433 |
+
#, fuzzy
|
434 |
+
#~ msgid "All Sidebar Groups"
|
435 |
+
#~ msgstr "Tutte le Sidebars"
|
436 |
+
|
437 |
+
#, fuzzy
|
438 |
+
#~ msgid "View Sidebar Group"
|
439 |
+
#~ msgstr "Vedi Sidebar"
|
440 |
+
|
441 |
+
#, fuzzy
|
442 |
+
#~ msgid "Search Sidebar Groups"
|
443 |
+
#~ msgstr "Cerca Sidebars"
|
444 |
+
|
445 |
+
#, fuzzy
|
446 |
+
#~ msgid "No sidebar groups found"
|
447 |
+
#~ msgstr "Nessuna sidebar trovata"
|
448 |
+
|
449 |
+
#, fuzzy
|
450 |
+
#~ msgid "No sidebar groups found in Trash"
|
451 |
+
#~ msgstr "nessuna sidebar cancellata"
|
452 |
+
|
453 |
+
#~ msgid "http://www.intox.dk/"
|
454 |
+
#~ msgstr "http://www.intox.dk/"
|
455 |
+
|
456 |
+
#~ msgid "Joachim Jensen, Intox Studio"
|
457 |
+
#~ msgstr "Joachim Jensen, Intox Studio"
|
458 |
+
|
459 |
+
#~ msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
|
460 |
+
#~ msgstr "Sidebar aggiornata. <a href=\"%s\">Gestione widgets</a>"
|
461 |
+
|
462 |
+
#~ msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
|
463 |
+
#~ msgstr "Sidebar publicata. <a href=\"%s\">Gestione widgets</a>"
|
464 |
+
|
465 |
+
#~ msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
|
466 |
+
#~ msgstr "Sidebar inviata. <a href=\"%s\">Gestione widgets</a>"
|
467 |
+
|
468 |
+
#~ msgid "Spread the Word"
|
469 |
+
#~ msgstr "Spargi la voce"
|
470 |
+
|
471 |
+
#~ msgid "Show with %s"
|
472 |
+
#~ msgstr "Mostra %s"
|
473 |
+
|
474 |
+
#~ msgid "Words from the author"
|
475 |
+
#~ msgstr "Parole dell'autore"
|
476 |
+
|
477 |
+
#~ msgid ""
|
478 |
+
#~ "Remember to <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> "
|
479 |
+
#~ "and <a class=\"button\" href=\"%2$s\" target=\"_blank\">share</a> it too!"
|
480 |
+
#~ msgstr ""
|
481 |
+
#~ "Ricorda di <a class=\"button\" href=\"%1$s\" target=\"_blank"
|
482 |
+
#~ "\">valutarlo</a> e <a class=\"button\" href=\"%2$s\" target=\"_blank"
|
483 |
+
#~ "\">condiverlo</a>!"
|
484 |
+
|
485 |
+
#~ msgid "Check out Content Aware Sidebars for %23WordPress! :)"
|
486 |
+
#~ msgstr "Verifica Content Aware Sidebars per %23WordPress! :)"
|
487 |
|
488 |
#~ msgid "bbPress"
|
489 |
#~ msgstr "bbPress"
|
490 |
+
|
491 |
+
#, fuzzy
|
492 |
+
#~ msgid "Sidebar draft updated. <a href=\"%s\">Manage widgets</a>"
|
493 |
+
#~ msgstr "Sidebar aggiornata. <a href=\"%s\">Gestione widgets</a>"
|
lang/content-aware-sidebars-lt_LT.mo
CHANGED
Binary file
|
lang/content-aware-sidebars-lt_LT.po
CHANGED
@@ -1,252 +1,299 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Content Aware Sidebars
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
-
"POT-Creation-Date:
|
|
|
|
|
|
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"
|
12 |
-
"Last-Translator: \n"
|
13 |
-
"Language-Team: \n"
|
14 |
-
"X-Poedit-Language: Lithuanian\n"
|
15 |
-
"X-Poedit-Country: Lithuania\n"
|
16 |
|
17 |
-
#: content-aware-sidebars.php:
|
18 |
-
msgid "Post Types"
|
19 |
-
msgstr "Įrašų tipai"
|
20 |
-
|
21 |
-
#: content-aware-sidebars.php:111
|
22 |
-
msgid "Taxonomies"
|
23 |
-
msgstr "Taksonomijos"
|
24 |
-
|
25 |
-
#: content-aware-sidebars.php:119
|
26 |
-
msgid "Authors"
|
27 |
-
msgstr "Autoriai"
|
28 |
-
|
29 |
-
#: content-aware-sidebars.php:127
|
30 |
-
msgid "Page Templates"
|
31 |
-
msgstr "Puslapio Šablonai"
|
32 |
-
|
33 |
-
#: content-aware-sidebars.php:135
|
34 |
-
msgid "Static Pages"
|
35 |
-
msgstr "Statiniai Puslapiai"
|
36 |
-
|
37 |
-
#: content-aware-sidebars.php:141
|
38 |
-
msgid "Front Page"
|
39 |
-
msgstr "Namų Puslapis"
|
40 |
-
|
41 |
-
#: content-aware-sidebars.php:142
|
42 |
-
msgid "Search Results"
|
43 |
-
msgstr "Paieškos Rezultatai"
|
44 |
-
|
45 |
-
#: content-aware-sidebars.php:143
|
46 |
-
msgid "404 Page"
|
47 |
-
msgstr "404 Puslapis"
|
48 |
-
|
49 |
-
#: content-aware-sidebars.php:147
|
50 |
-
#: content-aware-sidebars.php:312
|
51 |
msgid "Exposure"
|
52 |
-
msgstr "
|
53 |
|
54 |
-
#: content-aware-sidebars.php:
|
55 |
msgid "Singular"
|
56 |
-
msgstr "
|
57 |
|
58 |
-
#: content-aware-sidebars.php:
|
59 |
msgid "Singular & Archive"
|
60 |
-
msgstr "
|
61 |
|
62 |
-
#: content-aware-sidebars.php:
|
63 |
msgid "Archive"
|
64 |
-
msgstr "
|
65 |
|
66 |
-
#: content-aware-sidebars.php:
|
67 |
-
#: content-aware-sidebars.php:313
|
68 |
msgctxt "option"
|
69 |
msgid "Handle"
|
70 |
-
msgstr "
|
71 |
|
72 |
-
#: content-aware-sidebars.php:
|
73 |
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
74 |
-
msgstr "
|
|
|
|
|
75 |
|
76 |
-
#: content-aware-sidebars.php:
|
77 |
msgid "Replace"
|
78 |
msgstr "Pakeisti"
|
79 |
|
80 |
-
#: content-aware-sidebars.php:
|
81 |
msgid "Merge"
|
82 |
msgstr "Sulieti"
|
83 |
|
84 |
-
#: content-aware-sidebars.php:
|
85 |
msgid "Manual"
|
86 |
-
msgstr "
|
87 |
|
88 |
-
#: content-aware-sidebars.php:
|
89 |
msgid "Host Sidebar"
|
90 |
msgstr "Serverio šoninė juosta"
|
91 |
|
92 |
-
#: content-aware-sidebars.php:
|
93 |
-
#: content-aware-sidebars.php:314
|
94 |
msgid "Merge position"
|
95 |
-
msgstr "
|
96 |
|
97 |
-
#: content-aware-sidebars.php:
|
98 |
msgid "Place sidebar on top or bottom of host when merging."
|
99 |
-
msgstr "
|
|
|
100 |
|
101 |
-
#: content-aware-sidebars.php:
|
102 |
msgid "Top"
|
103 |
msgstr "Viršus"
|
104 |
|
105 |
-
#: content-aware-sidebars.php:
|
106 |
msgid "Bottom"
|
107 |
msgstr "Apačia"
|
108 |
|
109 |
-
#: content-aware-sidebars.php:
|
110 |
msgid "Sidebars"
|
111 |
msgstr "Šoninės juostos"
|
112 |
|
113 |
-
#: content-aware-sidebars.php:
|
114 |
msgid "Sidebar"
|
115 |
msgstr "Šoninė juosta"
|
116 |
|
117 |
-
#: content-aware-sidebars.php:
|
118 |
msgctxt "sidebar"
|
119 |
msgid "Add New"
|
120 |
-
msgstr "Pridėti Naują"
|
121 |
|
122 |
-
#: content-aware-sidebars.php:
|
123 |
msgid "Add New Sidebar"
|
124 |
-
msgstr "Pridėti Naują
|
125 |
|
126 |
-
#: content-aware-sidebars.php:
|
127 |
msgid "Edit Sidebar"
|
128 |
-
msgstr "Redaguoti
|
129 |
|
130 |
-
#: content-aware-sidebars.php:
|
131 |
msgid "New Sidebar"
|
132 |
-
msgstr "Nauja Šoninė
|
133 |
|
134 |
-
#: content-aware-sidebars.php:
|
135 |
msgid "All Sidebars"
|
136 |
-
msgstr "Visos
|
137 |
|
138 |
-
#: content-aware-sidebars.php:
|
139 |
msgid "View Sidebar"
|
140 |
-
msgstr "Peržiūrėti
|
141 |
|
142 |
-
#: content-aware-sidebars.php:
|
143 |
msgid "Search Sidebars"
|
144 |
-
msgstr "Ieškoti Šoninių
|
145 |
|
146 |
-
#: content-aware-sidebars.php:
|
147 |
msgid "No sidebars found"
|
148 |
-
msgstr "
|
149 |
|
150 |
-
#: content-aware-sidebars.php:
|
151 |
msgid "No sidebars found in Trash"
|
152 |
msgstr "Šiukšlėse nerasta jokių šoninių juostų"
|
153 |
|
154 |
-
#: content-aware-sidebars.php:
|
155 |
msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
|
156 |
-
msgstr "Šoninė juosta atnaujinta. <a href=\"%s\">
|
157 |
|
158 |
-
#: content-aware-sidebars.php:
|
159 |
msgid "Sidebar updated."
|
160 |
msgstr "Šoninė juosta atnaujinta."
|
161 |
|
162 |
-
#: content-aware-sidebars.php:
|
163 |
msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
|
164 |
-
msgstr "Šoninė juosta
|
165 |
|
166 |
-
#: content-aware-sidebars.php:
|
167 |
msgid "Sidebar saved."
|
168 |
msgstr "Šoninė juosta įrašyta."
|
169 |
|
170 |
-
#: content-aware-sidebars.php:
|
171 |
msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
|
172 |
-
msgstr "Šoninė juosta
|
173 |
|
174 |
-
#: content-aware-sidebars.php:
|
175 |
-
msgid "
|
176 |
-
|
|
|
|
|
|
|
|
|
177 |
|
178 |
#. translators: Publish box date format, see http:php.net/date
|
179 |
-
#: content-aware-sidebars.php:
|
180 |
msgid "M j, Y @ G:i"
|
181 |
msgstr "M j, Y @ G:i"
|
182 |
|
183 |
-
#: content-aware-sidebars.php:
|
184 |
-
msgid "Sidebar draft updated.
|
185 |
-
msgstr "Šoninės
|
186 |
|
187 |
-
#: content-aware-sidebars.php:
|
|
|
|
|
|
|
|
|
188 |
msgid "Manage Widgets"
|
189 |
-
msgstr "
|
190 |
|
191 |
-
#: content-aware-sidebars.php:
|
192 |
-
msgid "
|
193 |
-
msgstr "
|
194 |
|
195 |
-
#: content-aware-sidebars.php:
|
196 |
msgid "Options"
|
197 |
msgstr "Parinktys"
|
198 |
|
199 |
-
#: content-aware-sidebars.php:
|
200 |
-
msgid "
|
201 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
|
203 |
-
#:
|
204 |
-
msgid "
|
205 |
-
msgstr "
|
206 |
|
207 |
-
#:
|
208 |
-
msgid "
|
209 |
-
msgstr "
|
210 |
|
211 |
-
#:
|
212 |
-
#: content-aware-sidebars.php:852
|
213 |
msgid "No items."
|
214 |
-
msgstr "Jokių elementų."
|
215 |
|
216 |
-
#:
|
217 |
-
msgid "
|
218 |
-
msgstr "
|
219 |
|
220 |
-
#:
|
221 |
-
|
222 |
-
|
223 |
-
msgid "View All"
|
224 |
-
msgstr "Peržiūrėti Viską"
|
225 |
|
226 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
msgid "Show with %s"
|
228 |
-
msgstr "Rodyti
|
229 |
|
230 |
-
#:
|
231 |
-
msgid "
|
232 |
-
msgstr "
|
233 |
|
234 |
#. Plugin Name of the plugin/theme
|
235 |
msgid "Content Aware Sidebars"
|
236 |
msgstr "Content Aware Sidebars"
|
237 |
|
238 |
-
#. #-#-#-#-# plugin.pot (Content Aware Sidebars
|
239 |
#. Plugin URI of the plugin/theme
|
240 |
-
#. #-#-#-#-# plugin.pot (Content Aware Sidebars
|
241 |
#. Author URI of the plugin/theme
|
242 |
msgid "http://www.intox.dk/"
|
243 |
msgstr "http://www.intox.dk/"
|
244 |
|
245 |
#. Description of the plugin/theme
|
246 |
msgid "Manage and show sidebars according to the content being viewed."
|
247 |
-
msgstr "
|
|
|
|
|
248 |
|
249 |
#. Author of the plugin/theme
|
250 |
-
msgid "Joachim Jensen"
|
251 |
-
msgstr "Joachim Jensen"
|
|
|
|
|
|
|
252 |
|
|
|
|
1 |
+
# Copyright (C) 2013 Content Aware Sidebars
|
2 |
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Content Aware Sidebars 1.3\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
+
"POT-Creation-Date: 2013-05-14 13:07:12+00:00\n"
|
8 |
+
"PO-Revision-Date: 2013-05-14 15:11+0100\n"
|
9 |
+
"Last-Translator: Joachim Jensen <jv@intox.dk>\n"
|
10 |
+
"Language-Team: Host1Free.com <info@host1free.com>\n"
|
11 |
+
"Language: Lithuanian\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.5.5\n"
|
|
|
|
|
|
|
|
|
16 |
|
17 |
+
#: content-aware-sidebars.php:178 content-aware-sidebars.php:345
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
msgid "Exposure"
|
19 |
+
msgstr "Atidengimas"
|
20 |
|
21 |
+
#: content-aware-sidebars.php:184
|
22 |
msgid "Singular"
|
23 |
+
msgstr "Išskirti"
|
24 |
|
25 |
+
#: content-aware-sidebars.php:185
|
26 |
msgid "Singular & Archive"
|
27 |
+
msgstr "Išskirti ir Archyvuoti"
|
28 |
|
29 |
+
#: content-aware-sidebars.php:186
|
30 |
msgid "Archive"
|
31 |
+
msgstr "Archyvuoti"
|
32 |
|
33 |
+
#: content-aware-sidebars.php:190 content-aware-sidebars.php:346
|
|
|
34 |
msgctxt "option"
|
35 |
msgid "Handle"
|
36 |
+
msgstr "Apdoroti [ parinktis ]"
|
37 |
|
38 |
+
#: content-aware-sidebars.php:192
|
39 |
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
40 |
+
msgstr ""
|
41 |
+
"Pakeisti serverio šoninę juostą, sulieti ją ar pridėti šoninę juostą "
|
42 |
+
"rankiniu būdu"
|
43 |
|
44 |
+
#: content-aware-sidebars.php:196
|
45 |
msgid "Replace"
|
46 |
msgstr "Pakeisti"
|
47 |
|
48 |
+
#: content-aware-sidebars.php:197
|
49 |
msgid "Merge"
|
50 |
msgstr "Sulieti"
|
51 |
|
52 |
+
#: content-aware-sidebars.php:198
|
53 |
msgid "Manual"
|
54 |
+
msgstr "Rankinis"
|
55 |
|
56 |
+
#: content-aware-sidebars.php:202
|
57 |
msgid "Host Sidebar"
|
58 |
msgstr "Serverio šoninė juosta"
|
59 |
|
60 |
+
#: content-aware-sidebars.php:210 content-aware-sidebars.php:347
|
|
|
61 |
msgid "Merge position"
|
62 |
+
msgstr "Sulieti poziciją"
|
63 |
|
64 |
+
#: content-aware-sidebars.php:212
|
65 |
msgid "Place sidebar on top or bottom of host when merging."
|
66 |
+
msgstr ""
|
67 |
+
"Patalpinti šoninę serverio juostą viršuje arba apačioje kuomet suliejama."
|
68 |
|
69 |
+
#: content-aware-sidebars.php:216
|
70 |
msgid "Top"
|
71 |
msgstr "Viršus"
|
72 |
|
73 |
+
#: content-aware-sidebars.php:217
|
74 |
msgid "Bottom"
|
75 |
msgstr "Apačia"
|
76 |
|
77 |
+
#: content-aware-sidebars.php:232
|
78 |
msgid "Sidebars"
|
79 |
msgstr "Šoninės juostos"
|
80 |
|
81 |
+
#: content-aware-sidebars.php:233
|
82 |
msgid "Sidebar"
|
83 |
msgstr "Šoninė juosta"
|
84 |
|
85 |
+
#: content-aware-sidebars.php:234
|
86 |
msgctxt "sidebar"
|
87 |
msgid "Add New"
|
88 |
+
msgstr "Pridėti Naują [ šoninę juostą ]"
|
89 |
|
90 |
+
#: content-aware-sidebars.php:235
|
91 |
msgid "Add New Sidebar"
|
92 |
+
msgstr "Pridėti Naują Šoninę Juostą"
|
93 |
|
94 |
+
#: content-aware-sidebars.php:236
|
95 |
msgid "Edit Sidebar"
|
96 |
+
msgstr "Redaguoti Šoninę Juostą"
|
97 |
|
98 |
+
#: content-aware-sidebars.php:237
|
99 |
msgid "New Sidebar"
|
100 |
+
msgstr "Nauja Šoninė Juosta"
|
101 |
|
102 |
+
#: content-aware-sidebars.php:238
|
103 |
msgid "All Sidebars"
|
104 |
+
msgstr "Visos Šoninės Juostos"
|
105 |
|
106 |
+
#: content-aware-sidebars.php:239
|
107 |
msgid "View Sidebar"
|
108 |
+
msgstr "Peržiūrėti Šoninę Juostą"
|
109 |
|
110 |
+
#: content-aware-sidebars.php:240
|
111 |
msgid "Search Sidebars"
|
112 |
+
msgstr "Ieškoti Šoninių Juostų"
|
113 |
|
114 |
+
#: content-aware-sidebars.php:241
|
115 |
msgid "No sidebars found"
|
116 |
+
msgstr "Šoninių juostų nerasta"
|
117 |
|
118 |
+
#: content-aware-sidebars.php:242
|
119 |
msgid "No sidebars found in Trash"
|
120 |
msgstr "Šiukšlėse nerasta jokių šoninių juostų"
|
121 |
|
122 |
+
#: content-aware-sidebars.php:273
|
123 |
msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
|
124 |
+
msgstr "Šoninė juosta atnaujinta. <a href=\"%s\">Tvarkyti Valdiklius</a>"
|
125 |
|
126 |
+
#: content-aware-sidebars.php:276
|
127 |
msgid "Sidebar updated."
|
128 |
msgstr "Šoninė juosta atnaujinta."
|
129 |
|
130 |
+
#: content-aware-sidebars.php:278
|
131 |
msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
|
132 |
+
msgstr "Šoninė juosta publikuota. <a href=\"%s\">Manage widgets</a>"
|
133 |
|
134 |
+
#: content-aware-sidebars.php:279
|
135 |
msgid "Sidebar saved."
|
136 |
msgstr "Šoninė juosta įrašyta."
|
137 |
|
138 |
+
#: content-aware-sidebars.php:280
|
139 |
msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
|
140 |
+
msgstr "Šoninė juosta išsiųsta. <a href=\"%s\">Manage widgets</a>"
|
141 |
|
142 |
+
#: content-aware-sidebars.php:281
|
143 |
+
msgid ""
|
144 |
+
"Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage "
|
145 |
+
"widgets</a>"
|
146 |
+
msgstr ""
|
147 |
+
"Šoninė juosta suplanuota už: <strong>%1$s</strong>. <a href=\"%s\">Manage "
|
148 |
+
"widgets</a>"
|
149 |
|
150 |
#. translators: Publish box date format, see http:php.net/date
|
151 |
+
#: content-aware-sidebars.php:283
|
152 |
msgid "M j, Y @ G:i"
|
153 |
msgstr "M j, Y @ G:i"
|
154 |
|
155 |
+
#: content-aware-sidebars.php:284
|
156 |
+
msgid "Sidebar draft updated."
|
157 |
+
msgstr "Šoninės juostos juodraštis atnaujintas."
|
158 |
|
159 |
+
#: content-aware-sidebars.php:321 content-aware-sidebars.php:402
|
160 |
+
msgid "Please update Host Sidebar"
|
161 |
+
msgstr "Prašome atnaujinti Serverio Šoninę Juostą"
|
162 |
+
|
163 |
+
#: content-aware-sidebars.php:457
|
164 |
msgid "Manage Widgets"
|
165 |
+
msgstr "Tvarkyti Valdiklius"
|
166 |
|
167 |
+
#: content-aware-sidebars.php:689
|
168 |
+
msgid "Content"
|
169 |
+
msgstr "Turinys"
|
170 |
|
171 |
+
#: content-aware-sidebars.php:699
|
172 |
msgid "Options"
|
173 |
msgstr "Parinktys"
|
174 |
|
175 |
+
#: content-aware-sidebars.php:708
|
176 |
+
msgid "Spread the Word"
|
177 |
+
msgstr "Paskleiskite Žinią"
|
178 |
+
|
179 |
+
#: content-aware-sidebars.php:798
|
180 |
+
msgid ""
|
181 |
+
"If you love this plugin, please consider donating to support future "
|
182 |
+
"development."
|
183 |
+
msgstr ""
|
184 |
+
"Jeigu Jums patiko šis papildinys, prašome paaukoti. Taip prisidėsi prie "
|
185 |
+
"tolesnio papildinio plėtojimo."
|
186 |
+
|
187 |
+
#: content-aware-sidebars.php:803
|
188 |
+
msgid "Or you could:"
|
189 |
+
msgstr "Arba galite:"
|
190 |
+
|
191 |
+
#: content-aware-sidebars.php:805
|
192 |
+
msgid "Rate the plugin on WordPress.org"
|
193 |
+
msgstr "Įvertinti papildinį WordPress.org svetainėje"
|
194 |
+
|
195 |
+
#: content-aware-sidebars.php:806
|
196 |
+
msgid "Link to the plugin page"
|
197 |
+
msgstr "Nukreipti į papildinio puslapį"
|
198 |
+
|
199 |
+
#: modules/abstract.php:57 modules/post_type.php:110
|
200 |
+
msgid "Show with All %s"
|
201 |
+
msgstr "Rodyti su Visais %s"
|
202 |
+
|
203 |
+
#: modules/abstract.php:61 modules/post_type.php:134 modules/taxonomy.php:175
|
204 |
+
msgctxt "verb"
|
205 |
+
msgid "Search"
|
206 |
+
msgstr "Ieškoti"
|
207 |
+
|
208 |
+
#: modules/abstract.php:61 modules/post_type.php:134 modules/taxonomy.php:175
|
209 |
+
#: modules/url.php:42
|
210 |
+
msgid "Add"
|
211 |
+
msgstr "Pridėti"
|
212 |
+
|
213 |
+
#: modules/author.php:24
|
214 |
+
msgid "Authors"
|
215 |
+
msgstr "Autorius"
|
216 |
+
|
217 |
+
#: modules/bbpress.php:23
|
218 |
+
msgid "bbPress User Profiles"
|
219 |
+
msgstr "bbPress Vartotojų Profilius"
|
220 |
+
|
221 |
+
#: modules/bp_member.php:23
|
222 |
+
msgid "BuddyPress Members"
|
223 |
+
msgstr "BuddyPress Narius"
|
224 |
+
|
225 |
+
#: modules/page_template.php:24
|
226 |
+
msgid "Page Templates"
|
227 |
+
msgstr "Puslapių Ruošinius"
|
228 |
+
|
229 |
+
#: modules/polylang.php:23 modules/qtranslate.php:23 modules/transposh.php:23
|
230 |
+
#: modules/wpml.php:23
|
231 |
+
msgid "Languages"
|
232 |
+
msgstr "Kalbas"
|
233 |
|
234 |
+
#: modules/post_type.php:30
|
235 |
+
msgid "Post Types"
|
236 |
+
msgstr "Įrašų Tipus"
|
237 |
|
238 |
+
#: modules/post_type.php:104 modules/taxonomy.php:151
|
239 |
+
msgid "Automatically select new children of a selected ancestor"
|
240 |
+
msgstr "Automatiškai pasirinkti naujus pažymėtų savininkų \"vaikus\"."
|
241 |
|
242 |
+
#: modules/post_type.php:114 modules/taxonomy.php:159
|
|
|
243 |
msgid "No items."
|
244 |
+
msgstr "Jokių elementų. "
|
245 |
|
246 |
+
#: modules/static.php:25
|
247 |
+
msgid "Static Pages"
|
248 |
+
msgstr "Statiniai Puslapiai"
|
249 |
|
250 |
+
#: modules/static.php:34
|
251 |
+
msgid "Front Page"
|
252 |
+
msgstr "Titulinis Puslapis"
|
|
|
|
|
253 |
|
254 |
+
#: modules/static.php:35
|
255 |
+
msgid "Search Results"
|
256 |
+
msgstr "Paieškos Rezultatai"
|
257 |
+
|
258 |
+
#: modules/static.php:36
|
259 |
+
msgid "404 Page"
|
260 |
+
msgstr "404 Puslapis"
|
261 |
+
|
262 |
+
#: modules/taxonomy.php:36
|
263 |
+
msgid "Taxonomies"
|
264 |
+
msgstr "Taksonomijos"
|
265 |
+
|
266 |
+
#: modules/taxonomy.php:155
|
267 |
msgid "Show with %s"
|
268 |
+
msgstr "Rodyti su %s"
|
269 |
|
270 |
+
#: modules/url.php:24
|
271 |
+
msgid "URLs"
|
272 |
+
msgstr "Universalieji Adresai"
|
273 |
|
274 |
#. Plugin Name of the plugin/theme
|
275 |
msgid "Content Aware Sidebars"
|
276 |
msgstr "Content Aware Sidebars"
|
277 |
|
278 |
+
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.3.1) #-#-#-#-#
|
279 |
#. Plugin URI of the plugin/theme
|
280 |
+
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.3.1) #-#-#-#-#
|
281 |
#. Author URI of the plugin/theme
|
282 |
msgid "http://www.intox.dk/"
|
283 |
msgstr "http://www.intox.dk/"
|
284 |
|
285 |
#. Description of the plugin/theme
|
286 |
msgid "Manage and show sidebars according to the content being viewed."
|
287 |
+
msgstr ""
|
288 |
+
"Pagal šiuo metu peržiūrimą turinį valdykite ir rodykite tinkamas šonines "
|
289 |
+
"juostas."
|
290 |
|
291 |
#. Author of the plugin/theme
|
292 |
+
msgid "Joachim Jensen, Intox Studio"
|
293 |
+
msgstr "Joachim Jensen, Intox Studio"
|
294 |
+
|
295 |
+
#~ msgid "View All"
|
296 |
+
#~ msgstr "Peržiūrėti Visus"
|
297 |
|
298 |
+
#~ msgid "Most Used"
|
299 |
+
#~ msgstr "Dažniausiai naudoti(os)"
|
lang/content-aware-sidebars-lv_LV.mo
ADDED
Binary file
|
lang/content-aware-sidebars-lv_LV.po
ADDED
@@ -0,0 +1,299 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2013 Content Aware Sidebars
|
2 |
+
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Content Aware Sidebars 1.3\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
+
"POT-Creation-Date: 2013-05-14 13:07:12+00:00\n"
|
8 |
+
"PO-Revision-Date: 2013-11-29 15:23+0200\n"
|
9 |
+
"Last-Translator: HG <firebirdclub@firebirdclublatvia.lv>\n"
|
10 |
+
"Language-Team: Host1Free.com <info@host1free.com>\n"
|
11 |
+
"Language: Lithuanian\n"
|
12 |
+
"MIME-Version: 1.0\n"
|
13 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
+
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.5.5\n"
|
16 |
+
|
17 |
+
#: content-aware-sidebars.php:178
|
18 |
+
#: content-aware-sidebars.php:345
|
19 |
+
msgid "Exposure"
|
20 |
+
msgstr "Ekspozīcija"
|
21 |
+
|
22 |
+
#: content-aware-sidebars.php:184
|
23 |
+
msgid "Singular"
|
24 |
+
msgstr "Atsevišķs"
|
25 |
+
|
26 |
+
#: content-aware-sidebars.php:185
|
27 |
+
msgid "Singular & Archive"
|
28 |
+
msgstr "Atsevišķs un Arhīvs"
|
29 |
+
|
30 |
+
#: content-aware-sidebars.php:186
|
31 |
+
msgid "Archive"
|
32 |
+
msgstr "Arhīvs"
|
33 |
+
|
34 |
+
#: content-aware-sidebars.php:190
|
35 |
+
#: content-aware-sidebars.php:346
|
36 |
+
msgctxt "option"
|
37 |
+
msgid "Handle"
|
38 |
+
msgstr "Pārvaldīt [iespējas]"
|
39 |
+
|
40 |
+
#: content-aware-sidebars.php:192
|
41 |
+
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
42 |
+
msgstr "Aizvietot galveno sānjoslu, sapludināt ar to vai pievienot sānjoslu manuāli."
|
43 |
+
|
44 |
+
#: content-aware-sidebars.php:196
|
45 |
+
msgid "Replace"
|
46 |
+
msgstr "Aizvietot"
|
47 |
+
|
48 |
+
#: content-aware-sidebars.php:197
|
49 |
+
msgid "Merge"
|
50 |
+
msgstr "Sapludināt"
|
51 |
+
|
52 |
+
#: content-aware-sidebars.php:198
|
53 |
+
msgid "Manual"
|
54 |
+
msgstr "Manuāli"
|
55 |
+
|
56 |
+
#: content-aware-sidebars.php:202
|
57 |
+
msgid "Host Sidebar"
|
58 |
+
msgstr "Galvenā sānjosla"
|
59 |
+
|
60 |
+
#: content-aware-sidebars.php:210
|
61 |
+
#: content-aware-sidebars.php:347
|
62 |
+
msgid "Merge position"
|
63 |
+
msgstr "Sapludināšanas pozīcija"
|
64 |
+
|
65 |
+
#: content-aware-sidebars.php:212
|
66 |
+
msgid "Place sidebar on top or bottom of host when merging."
|
67 |
+
msgstr "Novietot sānjoslu augšā vai apakšā galvenajai joslai, kad sapludina."
|
68 |
+
|
69 |
+
#: content-aware-sidebars.php:216
|
70 |
+
msgid "Top"
|
71 |
+
msgstr "Augšā"
|
72 |
+
|
73 |
+
#: content-aware-sidebars.php:217
|
74 |
+
msgid "Bottom"
|
75 |
+
msgstr "Apakšā"
|
76 |
+
|
77 |
+
#: content-aware-sidebars.php:232
|
78 |
+
msgid "Sidebars"
|
79 |
+
msgstr "Sānjoslas"
|
80 |
+
|
81 |
+
#: content-aware-sidebars.php:233
|
82 |
+
msgid "Sidebar"
|
83 |
+
msgstr "Sānjosla"
|
84 |
+
|
85 |
+
#: content-aware-sidebars.php:234
|
86 |
+
msgctxt "sidebar"
|
87 |
+
msgid "Add New"
|
88 |
+
msgstr "Pievienot jaunu"
|
89 |
+
|
90 |
+
#: content-aware-sidebars.php:235
|
91 |
+
msgid "Add New Sidebar"
|
92 |
+
msgstr "Pievienot jaunu sānjoslu"
|
93 |
+
|
94 |
+
#: content-aware-sidebars.php:236
|
95 |
+
msgid "Edit Sidebar"
|
96 |
+
msgstr "Rediģēt sānjoslu"
|
97 |
+
|
98 |
+
#: content-aware-sidebars.php:237
|
99 |
+
msgid "New Sidebar"
|
100 |
+
msgstr "Jauna sānjosla"
|
101 |
+
|
102 |
+
#: content-aware-sidebars.php:238
|
103 |
+
msgid "All Sidebars"
|
104 |
+
msgstr "Visas sānjoslas"
|
105 |
+
|
106 |
+
#: content-aware-sidebars.php:239
|
107 |
+
msgid "View Sidebar"
|
108 |
+
msgstr "Aplūkot sānjoslu"
|
109 |
+
|
110 |
+
#: content-aware-sidebars.php:240
|
111 |
+
msgid "Search Sidebars"
|
112 |
+
msgstr "Meklēt sānjoslas"
|
113 |
+
|
114 |
+
#: content-aware-sidebars.php:241
|
115 |
+
msgid "No sidebars found"
|
116 |
+
msgstr "Nav atrasta neviena sānjosla"
|
117 |
+
|
118 |
+
#: content-aware-sidebars.php:242
|
119 |
+
msgid "No sidebars found in Trash"
|
120 |
+
msgstr "Atkritnē nav atrasta neviena sānjosla"
|
121 |
+
|
122 |
+
#: content-aware-sidebars.php:273
|
123 |
+
msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
|
124 |
+
msgstr "Sānjosla atjaunota. <a href=\"%s\">Pārvaldīt logrīkus</a>"
|
125 |
+
|
126 |
+
#: content-aware-sidebars.php:276
|
127 |
+
msgid "Sidebar updated."
|
128 |
+
msgstr "Sānjosla atjaunota."
|
129 |
+
|
130 |
+
#: content-aware-sidebars.php:278
|
131 |
+
msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
|
132 |
+
msgstr "Sānjosla publicēta. <a href=\"%s\">Pārvaldīt logrīkus</a>"
|
133 |
+
|
134 |
+
#: content-aware-sidebars.php:279
|
135 |
+
msgid "Sidebar saved."
|
136 |
+
msgstr "Sānjosla saglabāta."
|
137 |
+
|
138 |
+
#: content-aware-sidebars.php:280
|
139 |
+
msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
|
140 |
+
msgstr "Sānjosla iesniegta. <a href=\"%s\">Pārvaldīt logrīkus</a>"
|
141 |
+
|
142 |
+
#: content-aware-sidebars.php:281
|
143 |
+
msgid "Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage widgets</a>"
|
144 |
+
msgstr "Sānjosla ieplānota uz: <strong>%1$s</strong>. <a href=\"%s\">Pārvaldīt logrīkus</a>"
|
145 |
+
|
146 |
+
#. translators: Publish box date format, see http:php.net/date
|
147 |
+
#: content-aware-sidebars.php:283
|
148 |
+
msgid "M j, Y @ G:i"
|
149 |
+
msgstr "M j, Y @ G:i"
|
150 |
+
|
151 |
+
#: content-aware-sidebars.php:284
|
152 |
+
msgid "Sidebar draft updated."
|
153 |
+
msgstr "Sānjoslas melnraksts atjaunināts."
|
154 |
+
|
155 |
+
#: content-aware-sidebars.php:321
|
156 |
+
#: content-aware-sidebars.php:402
|
157 |
+
msgid "Please update Host Sidebar"
|
158 |
+
msgstr "Lūdzu atjauniniet galveno sānjoslu"
|
159 |
+
|
160 |
+
#: content-aware-sidebars.php:457
|
161 |
+
msgid "Manage Widgets"
|
162 |
+
msgstr "Pārvaldīt logrīkus"
|
163 |
+
|
164 |
+
#: content-aware-sidebars.php:689
|
165 |
+
msgid "Content"
|
166 |
+
msgstr "Saturs"
|
167 |
+
|
168 |
+
#: content-aware-sidebars.php:699
|
169 |
+
msgid "Options"
|
170 |
+
msgstr "Iespējas"
|
171 |
+
|
172 |
+
#: content-aware-sidebars.php:708
|
173 |
+
msgid "Spread the Word"
|
174 |
+
msgstr "Izplatiet Vārdu"
|
175 |
+
|
176 |
+
#: content-aware-sidebars.php:798
|
177 |
+
msgid "If you love this plugin, please consider donating to support future development."
|
178 |
+
msgstr "Ja Jums patīk šis spraudnis, apsveriet iespēju noziedot tā turpmākai attīstībai."
|
179 |
+
|
180 |
+
#: content-aware-sidebars.php:803
|
181 |
+
msgid "Or you could:"
|
182 |
+
msgstr "Vai arī Jūs variet:"
|
183 |
+
|
184 |
+
#: content-aware-sidebars.php:805
|
185 |
+
msgid "Rate the plugin on WordPress.org"
|
186 |
+
msgstr "Novērtēt spraudni WordPress.org"
|
187 |
+
|
188 |
+
#: content-aware-sidebars.php:806
|
189 |
+
msgid "Link to the plugin page"
|
190 |
+
msgstr "Saite uz spraudni"
|
191 |
+
|
192 |
+
#: modules/abstract.php:57
|
193 |
+
#: modules/post_type.php:110
|
194 |
+
msgid "Show with All %s"
|
195 |
+
msgstr "Parādīt ar visiem %s"
|
196 |
+
|
197 |
+
#: modules/abstract.php:61
|
198 |
+
#: modules/post_type.php:134
|
199 |
+
#: modules/taxonomy.php:175
|
200 |
+
msgctxt "verb"
|
201 |
+
msgid "Search"
|
202 |
+
msgstr "Meklēt"
|
203 |
+
|
204 |
+
#: modules/abstract.php:61
|
205 |
+
#: modules/post_type.php:134
|
206 |
+
#: modules/taxonomy.php:175
|
207 |
+
#: modules/url.php:42
|
208 |
+
msgid "Add"
|
209 |
+
msgstr "Pievienot"
|
210 |
+
|
211 |
+
#: modules/author.php:24
|
212 |
+
msgid "Authors"
|
213 |
+
msgstr "Autori"
|
214 |
+
|
215 |
+
#: modules/bbpress.php:23
|
216 |
+
msgid "bbPress User Profiles"
|
217 |
+
msgstr "bbPress Lietotāja profili"
|
218 |
+
|
219 |
+
#: modules/bp_member.php:23
|
220 |
+
msgid "BuddyPress Members"
|
221 |
+
msgstr "BuddyPress Lietotāji"
|
222 |
+
|
223 |
+
#: modules/page_template.php:24
|
224 |
+
msgid "Page Templates"
|
225 |
+
msgstr "Lapu veidnes"
|
226 |
+
|
227 |
+
#: modules/polylang.php:23
|
228 |
+
#: modules/qtranslate.php:23
|
229 |
+
#: modules/transposh.php:23
|
230 |
+
#: modules/wpml.php:23
|
231 |
+
msgid "Languages"
|
232 |
+
msgstr "Valodas"
|
233 |
+
|
234 |
+
#: modules/post_type.php:30
|
235 |
+
msgid "Post Types"
|
236 |
+
msgstr "Rakstu tipi"
|
237 |
+
|
238 |
+
#: modules/post_type.php:104
|
239 |
+
#: modules/taxonomy.php:151
|
240 |
+
msgid "Automatically select new children of a selected ancestor"
|
241 |
+
msgstr "Automātiski izvēlēties jaunus bērnu ierakstus izvēlētajam ierakstam"
|
242 |
+
|
243 |
+
#: modules/post_type.php:114
|
244 |
+
#: modules/taxonomy.php:159
|
245 |
+
msgid "No items."
|
246 |
+
msgstr "Nav priekšmetu."
|
247 |
+
|
248 |
+
#: modules/static.php:25
|
249 |
+
msgid "Static Pages"
|
250 |
+
msgstr "Statiskās lapas"
|
251 |
+
|
252 |
+
#: modules/static.php:34
|
253 |
+
msgid "Front Page"
|
254 |
+
msgstr "Glavenā lapa"
|
255 |
+
|
256 |
+
#: modules/static.php:35
|
257 |
+
msgid "Search Results"
|
258 |
+
msgstr "Meklēšanas rezultāti"
|
259 |
+
|
260 |
+
#: modules/static.php:36
|
261 |
+
msgid "404 Page"
|
262 |
+
msgstr "404 lapa"
|
263 |
+
|
264 |
+
#: modules/taxonomy.php:36
|
265 |
+
msgid "Taxonomies"
|
266 |
+
msgstr "Taksonomijas"
|
267 |
+
|
268 |
+
#: modules/taxonomy.php:155
|
269 |
+
msgid "Show with %s"
|
270 |
+
msgstr "Parādīt ar %s"
|
271 |
+
|
272 |
+
#: modules/url.php:24
|
273 |
+
msgid "URLs"
|
274 |
+
msgstr "URLi"
|
275 |
+
|
276 |
+
#. Plugin Name of the plugin/theme
|
277 |
+
msgid "Content Aware Sidebars"
|
278 |
+
msgstr "Content Aware Sidebars"
|
279 |
+
|
280 |
+
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.3.1) #-#-#-#-#
|
281 |
+
#. Plugin URI of the plugin/theme
|
282 |
+
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.3.1) #-#-#-#-#
|
283 |
+
#. Author URI of the plugin/theme
|
284 |
+
msgid "http://www.intox.dk/"
|
285 |
+
msgstr "http://www.intox.dk/"
|
286 |
+
|
287 |
+
#. Description of the plugin/theme
|
288 |
+
msgid "Manage and show sidebars according to the content being viewed."
|
289 |
+
msgstr "Pārvaldīt un rādīt sānsjolas atbilstoši aplūkojamajam saturam."
|
290 |
+
|
291 |
+
#. Author of the plugin/theme
|
292 |
+
msgid "Joachim Jensen, Intox Studio"
|
293 |
+
msgstr "Joachim Jensen, Intox Studio"
|
294 |
+
|
295 |
+
#~ msgid "View All"
|
296 |
+
#~ msgstr "Peržiūrėti Visus"
|
297 |
+
#~ msgid "Most Used"
|
298 |
+
#~ msgstr "Dažniausiai naudoti(os)"
|
299 |
+
|
lang/content-aware-sidebars-sk_SK.mo
ADDED
Binary file
|
lang/content-aware-sidebars-sk_SK.po
ADDED
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: \n"
|
4 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
5 |
+
"POT-Creation-Date: 2013-05-14 13:07:12+00:00\n"
|
6 |
+
"PO-Revision-Date: \n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=iso-8859-1\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.5\n"
|
13 |
+
|
14 |
+
# Copyright (C) 2013 Content Aware Sidebars
|
15 |
+
# This file is distributed under the same license as the Content Aware Sidebars package.
|
16 |
+
#: content-aware-sidebars.php:178 content-aware-sidebars.php:345
|
17 |
+
msgid "Exposure"
|
18 |
+
msgstr "Expozicie"
|
19 |
+
|
20 |
+
#: content-aware-sidebars.php:184
|
21 |
+
msgid "Singular"
|
22 |
+
msgstr "Singularni"
|
23 |
+
|
24 |
+
#: content-aware-sidebars.php:185
|
25 |
+
msgid "Singular & Archive"
|
26 |
+
msgstr "Singularni & Archiv"
|
27 |
+
|
28 |
+
#: content-aware-sidebars.php:186
|
29 |
+
msgid "Archive"
|
30 |
+
msgstr "Archiv"
|
31 |
+
|
32 |
+
#: content-aware-sidebars.php:190 content-aware-sidebars.php:346
|
33 |
+
msgctxt "option"
|
34 |
+
msgid "Handle"
|
35 |
+
msgstr "Rukovat"
|
36 |
+
|
37 |
+
#: content-aware-sidebars.php:192
|
38 |
+
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
39 |
+
msgstr ""
|
40 |
+
"Nahradit hostitela sidebar, zlucit s nim alebo manualne pridat sidebar."
|
41 |
+
|
42 |
+
#: content-aware-sidebars.php:196
|
43 |
+
msgid "Replace"
|
44 |
+
msgstr "Nahradit"
|
45 |
+
|
46 |
+
#: content-aware-sidebars.php:197
|
47 |
+
msgid "Merge"
|
48 |
+
msgstr "Zlucit"
|
49 |
+
|
50 |
+
#: content-aware-sidebars.php:198
|
51 |
+
msgid "Manual"
|
52 |
+
msgstr "Manual"
|
53 |
+
|
54 |
+
#: content-aware-sidebars.php:202
|
55 |
+
msgid "Host Sidebar"
|
56 |
+
msgstr "Hostitel Sidebar"
|
57 |
+
|
58 |
+
#: content-aware-sidebars.php:210 content-aware-sidebars.php:347
|
59 |
+
msgid "Merge position"
|
60 |
+
msgstr "Zlucit pozicie"
|
61 |
+
|
62 |
+
#: content-aware-sidebars.php:212
|
63 |
+
msgid "Place sidebar on top or bottom of host when merging."
|
64 |
+
msgstr "Miesto sidebar na hornej alebo dolnej casti hostitela pri zlucovani."
|
65 |
+
|
66 |
+
#: content-aware-sidebars.php:216
|
67 |
+
msgid "Top"
|
68 |
+
msgstr "Top"
|
69 |
+
|
70 |
+
#: content-aware-sidebars.php:217
|
71 |
+
msgid "Bottom"
|
72 |
+
msgstr "Dno"
|
73 |
+
|
74 |
+
#: content-aware-sidebars.php:232
|
75 |
+
msgid "Sidebars"
|
76 |
+
msgstr "Bocne panely"
|
77 |
+
|
78 |
+
#: content-aware-sidebars.php:233
|
79 |
+
msgid "Sidebar"
|
80 |
+
msgstr "Bocny panel"
|
81 |
+
|
82 |
+
#: content-aware-sidebars.php:234
|
83 |
+
msgctxt "sidebar"
|
84 |
+
msgid "Add New"
|
85 |
+
msgstr "Pridat nove"
|
86 |
+
|
87 |
+
#: content-aware-sidebars.php:235
|
88 |
+
msgid "Add New Sidebar"
|
89 |
+
msgstr "Pridat novy bocny panel"
|
90 |
+
|
91 |
+
#: content-aware-sidebars.php:236
|
92 |
+
msgid "Edit Sidebar"
|
93 |
+
msgstr "Upravit Sidebar"
|
94 |
+
|
95 |
+
#: content-aware-sidebars.php:237
|
96 |
+
msgid "New Sidebar"
|
97 |
+
msgstr "Novy bocny panel"
|
98 |
+
|
99 |
+
#: content-aware-sidebars.php:238
|
100 |
+
msgid "All Sidebars"
|
101 |
+
msgstr "Vsetci postranne"
|
102 |
+
|
103 |
+
#: content-aware-sidebars.php:239
|
104 |
+
msgid "View Sidebar"
|
105 |
+
msgstr "Zobrazit bocny panel"
|
106 |
+
|
107 |
+
#: content-aware-sidebars.php:240
|
108 |
+
msgid "Search Sidebars"
|
109 |
+
msgstr "Hladat Sidebars"
|
110 |
+
|
111 |
+
#: content-aware-sidebars.php:241
|
112 |
+
msgid "No sidebars found"
|
113 |
+
msgstr "C sidebars nasiel"
|
114 |
+
|
115 |
+
#: content-aware-sidebars.php:242
|
116 |
+
msgid "No sidebars found in Trash"
|
117 |
+
msgstr "Ziadne sidebars, nachadza v kosi"
|
118 |
+
|
119 |
+
#: content-aware-sidebars.php:273
|
120 |
+
msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
|
121 |
+
msgstr "Sidebar aktualizovane. <a href=\"%s\">Spravovat widgety</a>"
|
122 |
+
|
123 |
+
#: content-aware-sidebars.php:276
|
124 |
+
msgid "Sidebar updated."
|
125 |
+
msgstr "Sidebar aktualizovane."
|
126 |
+
|
127 |
+
#: content-aware-sidebars.php:278
|
128 |
+
msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
|
129 |
+
msgstr "Bocny panel publikoval. <a href=\"%s\">Spravovat widgety</a>"
|
130 |
+
|
131 |
+
#: content-aware-sidebars.php:279
|
132 |
+
msgid "Sidebar saved."
|
133 |
+
msgstr "Sidebar ulozene."
|
134 |
+
|
135 |
+
#: content-aware-sidebars.php:280
|
136 |
+
msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
|
137 |
+
msgstr "Bocnom paneli posielaju. <a href=\"%s\">Spravovat widgety</a>"
|
138 |
+
|
139 |
+
#: content-aware-sidebars.php:281
|
140 |
+
msgid ""
|
141 |
+
"Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage "
|
142 |
+
"widgets</a>"
|
143 |
+
msgstr ""
|
144 |
+
"Sidebar naplanovane na: <strong>%1$s</strong>. <a href=\"%2$s\">Spravovat "
|
145 |
+
"widgety</a>"
|
146 |
+
|
147 |
+
#. translators: Publish box date format, see http:php.net/date
|
148 |
+
#: content-aware-sidebars.php:283
|
149 |
+
msgid "M j, Y @ G:i"
|
150 |
+
msgstr "M j, Y @ G:i"
|
151 |
+
|
152 |
+
#: content-aware-sidebars.php:284
|
153 |
+
msgid "Sidebar draft updated."
|
154 |
+
msgstr "Sidebar navrh aktualizovane."
|
155 |
+
|
156 |
+
#: content-aware-sidebars.php:321 content-aware-sidebars.php:402
|
157 |
+
msgid "Please update Host Sidebar"
|
158 |
+
msgstr "Prosim aktualizujte hostitela Sidebar"
|
159 |
+
|
160 |
+
#: content-aware-sidebars.php:457
|
161 |
+
msgid "Manage Widgets"
|
162 |
+
msgstr "Spravovat widgety"
|
163 |
+
|
164 |
+
#: content-aware-sidebars.php:689
|
165 |
+
msgid "Content"
|
166 |
+
msgstr "Obsah"
|
167 |
+
|
168 |
+
#: content-aware-sidebars.php:699
|
169 |
+
msgid "Options"
|
170 |
+
msgstr "Moznosti"
|
171 |
+
|
172 |
+
#: content-aware-sidebars.php:708
|
173 |
+
msgid "Spread the Word"
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#: content-aware-sidebars.php:798
|
177 |
+
#, fuzzy
|
178 |
+
msgid ""
|
179 |
+
"If you love this plugin, please consider donating to support future "
|
180 |
+
"development."
|
181 |
+
msgstr "Ak mate radi tento plugin, prosim zvazte darovanie."
|
182 |
+
|
183 |
+
#: content-aware-sidebars.php:803
|
184 |
+
msgid "Or you could:"
|
185 |
+
msgstr ""
|
186 |
+
|
187 |
+
#: content-aware-sidebars.php:805
|
188 |
+
msgid "Rate the plugin on WordPress.org"
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: content-aware-sidebars.php:806
|
192 |
+
msgid "Link to the plugin page"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: modules/abstract.php:57 modules/post_type.php:110
|
196 |
+
msgid "Show with All %s"
|
197 |
+
msgstr "Zobrazit s vsetky %s"
|
198 |
+
|
199 |
+
#: modules/abstract.php:61 modules/post_type.php:134 modules/taxonomy.php:175
|
200 |
+
msgctxt "verb"
|
201 |
+
msgid "Search"
|
202 |
+
msgstr "Hladat"
|
203 |
+
|
204 |
+
#: modules/abstract.php:61 modules/post_type.php:134 modules/taxonomy.php:175
|
205 |
+
#: modules/url.php:42
|
206 |
+
msgid "Add"
|
207 |
+
msgstr ""
|
208 |
+
|
209 |
+
#: modules/author.php:24
|
210 |
+
msgid "Authors"
|
211 |
+
msgstr "Autori"
|
212 |
+
|
213 |
+
#: modules/bbpress.php:23
|
214 |
+
msgid "bbPress User Profiles"
|
215 |
+
msgstr "bbPress pouzivatelske profily"
|
216 |
+
|
217 |
+
#: modules/bp_member.php:23
|
218 |
+
msgid "BuddyPress Members"
|
219 |
+
msgstr "BuddyPress clenov"
|
220 |
+
|
221 |
+
#: modules/page_template.php:24
|
222 |
+
msgid "Page Templates"
|
223 |
+
msgstr "Stranky sablony"
|
224 |
+
|
225 |
+
#: modules/polylang.php:23 modules/qtranslate.php:23 modules/transposh.php:23
|
226 |
+
#: modules/wpml.php:23
|
227 |
+
msgid "Languages"
|
228 |
+
msgstr "Jazyky"
|
229 |
+
|
230 |
+
#: modules/post_type.php:30
|
231 |
+
msgid "Post Types"
|
232 |
+
msgstr "Prispevok typy"
|
233 |
+
|
234 |
+
#: modules/post_type.php:104 modules/taxonomy.php:151
|
235 |
+
msgid "Automatically select new children of a selected ancestor"
|
236 |
+
msgstr "Automaticky vybrat nove deti z vybranych predok"
|
237 |
+
|
238 |
+
#: modules/post_type.php:114 modules/taxonomy.php:159
|
239 |
+
msgid "No items."
|
240 |
+
msgstr "Ziadne polozky."
|
241 |
+
|
242 |
+
#: modules/static.php:25
|
243 |
+
msgid "Static Pages"
|
244 |
+
msgstr "Staticke stranky"
|
245 |
+
|
246 |
+
#: modules/static.php:34
|
247 |
+
msgid "Front Page"
|
248 |
+
msgstr "Predna strana"
|
249 |
+
|
250 |
+
#: modules/static.php:35
|
251 |
+
msgid "Search Results"
|
252 |
+
msgstr "Vysledky hladania"
|
253 |
+
|
254 |
+
#: modules/static.php:36
|
255 |
+
msgid "404 Page"
|
256 |
+
msgstr "404 Stranka"
|
257 |
+
|
258 |
+
#: modules/taxonomy.php:36
|
259 |
+
msgid "Taxonomies"
|
260 |
+
msgstr "Taxonomie"
|
261 |
+
|
262 |
+
#: modules/taxonomy.php:155
|
263 |
+
msgid "Show with %s"
|
264 |
+
msgstr "Zobrazit s %s"
|
265 |
+
|
266 |
+
#: modules/url.php:24
|
267 |
+
msgid "URLs"
|
268 |
+
msgstr ""
|
269 |
+
|
270 |
+
#. Plugin Name of the plugin/theme
|
271 |
+
msgid "Content Aware Sidebars"
|
272 |
+
msgstr "Obsah vedomi Sidebars"
|
273 |
+
|
274 |
+
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.3.1) #-#-#-#-#
|
275 |
+
#. Plugin URI of the plugin/theme
|
276 |
+
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.3.1) #-#-#-#-#
|
277 |
+
#. Author URI of the plugin/theme
|
278 |
+
msgid "http://www.intox.dk/"
|
279 |
+
msgstr "http://www.Intox.dk/"
|
280 |
+
|
281 |
+
#. Description of the plugin/theme
|
282 |
+
msgid "Manage and show sidebars according to the content being viewed."
|
283 |
+
msgstr "Spravovat a Zobrazit sidebars podla obsahu je prezerana."
|
284 |
+
|
285 |
+
#. Author of the plugin/theme
|
286 |
+
msgid "Joachim Jensen, Intox Studio"
|
287 |
+
msgstr "Joachim Jensen, Intox Studio"
|
288 |
+
|
289 |
+
#~ msgid "Words from the author"
|
290 |
+
#~ msgstr "Slov od autora"
|
291 |
+
|
292 |
+
#~ msgid ""
|
293 |
+
#~ "this-is-translatedRemember to <a class=\"button\" href=\"%1$s\" target="
|
294 |
+
#~ "\"_blank\">rate</a> and <a class=\"button\" href=\"%2$s\" target=\"_blank"
|
295 |
+
#~ "\">share</a> it too!"
|
296 |
+
#~ msgstr ""
|
297 |
+
#~ "Nezabudnite <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> "
|
298 |
+
#~ "and <a class=\"button\" href=\"%2$s\" target=\"_blank\">zdielat</a> to "
|
299 |
+
#~ "taky!"
|
300 |
+
|
301 |
+
#~ msgid "Check out Content Aware Sidebars for %23WordPress! :)"
|
302 |
+
#~ msgstr "Pozrite sa na obsah vedomi postrehov pre % 23WordPress! :)"
|
303 |
+
|
304 |
+
#~ msgid "Check out Content Aware Sidebars :)"
|
305 |
+
#~ msgstr "Pozrite sa na obsah vedomi Sidebars:)"
|
306 |
+
|
307 |
+
#~ msgid "View All"
|
308 |
+
#~ msgstr "Zobrazit vsetky"
|
309 |
+
|
310 |
+
#~ msgid "Most Used"
|
311 |
+
#~ msgstr "Najpouzivanejsie"
|
lang/content-aware-sidebars-zh_CN.mo
ADDED
Binary file
|
lang/content-aware-sidebars-zh_CN.po
ADDED
@@ -0,0 +1,409 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2012 Content Aware Sidebars
|
2 |
+
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Content Aware Sidebars 2.1\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
+
"POT-Creation-Date: 2014-05-01 12:57+0100\n"
|
8 |
+
"PO-Revision-Date: 2014-05-01 13:12+0100\n"
|
9 |
+
"Last-Translator: \n"
|
10 |
+
"Language-Team: \n"
|
11 |
+
"Language: zh_CN\n"
|
12 |
+
"MIME-Version: 1.0\n"
|
13 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
+
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 1.5.5\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
17 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
|
18 |
+
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
19 |
+
"X-Poedit-Basepath: .\n"
|
20 |
+
"X-Textdomain-Support: yes\n"
|
21 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
22 |
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
23 |
+
"X-Poedit-SearchPath-0: .\n"
|
24 |
+
"X-Poedit-SearchPath-1: ..\n"
|
25 |
+
|
26 |
+
#: ../content-aware-sidebars.php:111
|
27 |
+
msgid "Manage and show sidebars according to the content being viewed."
|
28 |
+
msgstr "根据页面内容管理和显示边栏"
|
29 |
+
|
30 |
+
#: ../content-aware-sidebars.php:112
|
31 |
+
msgid "Content Aware Sidebars"
|
32 |
+
msgstr "自由定制边栏"
|
33 |
+
|
34 |
+
#: ../content-aware-sidebars.php:232 ../content-aware-sidebars.php:432
|
35 |
+
msgid "Exposure"
|
36 |
+
msgstr "显示于"
|
37 |
+
|
38 |
+
#: ../content-aware-sidebars.php:238
|
39 |
+
msgid "Singular"
|
40 |
+
msgstr "文章页"
|
41 |
+
|
42 |
+
#: ../content-aware-sidebars.php:239
|
43 |
+
msgid "Singular & Archive"
|
44 |
+
msgstr "文章页和列表页"
|
45 |
+
|
46 |
+
#: ../content-aware-sidebars.php:240
|
47 |
+
msgid "Archive"
|
48 |
+
msgstr "列表页"
|
49 |
+
|
50 |
+
#: ../content-aware-sidebars.php:244 ../content-aware-sidebars.php:433
|
51 |
+
msgctxt "option"
|
52 |
+
msgid "Handle"
|
53 |
+
msgstr "处理方式"
|
54 |
+
|
55 |
+
#: ../content-aware-sidebars.php:246
|
56 |
+
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
57 |
+
msgstr "替换主边栏, 合并或者手动添加边栏"
|
58 |
+
|
59 |
+
#: ../content-aware-sidebars.php:250
|
60 |
+
msgid "Replace"
|
61 |
+
msgstr "替换"
|
62 |
+
|
63 |
+
#: ../content-aware-sidebars.php:251
|
64 |
+
msgid "Merge"
|
65 |
+
msgstr "合并"
|
66 |
+
|
67 |
+
#: ../content-aware-sidebars.php:252
|
68 |
+
msgid "Manual"
|
69 |
+
msgstr "手动"
|
70 |
+
|
71 |
+
#: ../content-aware-sidebars.php:256
|
72 |
+
msgid "Host Sidebar"
|
73 |
+
msgstr "主边栏"
|
74 |
+
|
75 |
+
#: ../content-aware-sidebars.php:264 ../content-aware-sidebars.php:434
|
76 |
+
msgid "Merge position"
|
77 |
+
msgstr "合并位置"
|
78 |
+
|
79 |
+
#: ../content-aware-sidebars.php:266
|
80 |
+
msgid "Place sidebar on top or bottom of host when merging."
|
81 |
+
msgstr "合并时将边栏放置在主边栏的顶部或底部"
|
82 |
+
|
83 |
+
#: ../content-aware-sidebars.php:270
|
84 |
+
msgid "Top"
|
85 |
+
msgstr "顶部"
|
86 |
+
|
87 |
+
#: ../content-aware-sidebars.php:271
|
88 |
+
msgid "Bottom"
|
89 |
+
msgstr "底部"
|
90 |
+
|
91 |
+
#: ../content-aware-sidebars.php:296
|
92 |
+
msgid "Sidebars"
|
93 |
+
msgstr "边栏"
|
94 |
+
|
95 |
+
#: ../content-aware-sidebars.php:297
|
96 |
+
msgid "Sidebar"
|
97 |
+
msgstr "边栏"
|
98 |
+
|
99 |
+
#: ../content-aware-sidebars.php:298
|
100 |
+
msgctxt "sidebar"
|
101 |
+
msgid "Add New"
|
102 |
+
msgstr "新建"
|
103 |
+
|
104 |
+
#: ../content-aware-sidebars.php:299
|
105 |
+
msgid "Add New Sidebar"
|
106 |
+
msgstr "添加边栏"
|
107 |
+
|
108 |
+
#: ../content-aware-sidebars.php:300
|
109 |
+
msgid "Edit Sidebar"
|
110 |
+
msgstr "编辑边栏"
|
111 |
+
|
112 |
+
#: ../content-aware-sidebars.php:301
|
113 |
+
msgid "New Sidebar"
|
114 |
+
msgstr "新建边栏"
|
115 |
+
|
116 |
+
#: ../content-aware-sidebars.php:302
|
117 |
+
msgid "All Sidebars"
|
118 |
+
msgstr "全部边栏"
|
119 |
+
|
120 |
+
#: ../content-aware-sidebars.php:303
|
121 |
+
msgid "View Sidebar"
|
122 |
+
msgstr "查看边栏"
|
123 |
+
|
124 |
+
#: ../content-aware-sidebars.php:304
|
125 |
+
msgid "Search Sidebars"
|
126 |
+
msgstr "搜索边栏"
|
127 |
+
|
128 |
+
#: ../content-aware-sidebars.php:305
|
129 |
+
msgid "No sidebars found"
|
130 |
+
msgstr "未找到边栏"
|
131 |
+
|
132 |
+
#: ../content-aware-sidebars.php:306
|
133 |
+
msgid "No sidebars found in Trash"
|
134 |
+
msgstr "回收站中未找到边栏"
|
135 |
+
|
136 |
+
#: ../content-aware-sidebars.php:321 ../content-aware-sidebars.php:892
|
137 |
+
msgid "Condition Groups"
|
138 |
+
msgstr "显示条件组"
|
139 |
+
|
140 |
+
#: ../content-aware-sidebars.php:322
|
141 |
+
msgid "Condition Group"
|
142 |
+
msgstr "显示条件组"
|
143 |
+
|
144 |
+
#: ../content-aware-sidebars.php:323
|
145 |
+
msgctxt "group"
|
146 |
+
msgid "Add New"
|
147 |
+
msgstr "新建"
|
148 |
+
|
149 |
+
#: ../content-aware-sidebars.php:324 ../content-aware-sidebars.php:892
|
150 |
+
#: ../content-aware-sidebars.php:922
|
151 |
+
msgid "Add New Group"
|
152 |
+
msgstr "新建组"
|
153 |
+
|
154 |
+
#: ../content-aware-sidebars.php:325 ../content-aware-sidebars.php:907
|
155 |
+
#: ../content-aware-sidebars.php:1299
|
156 |
+
msgctxt "group"
|
157 |
+
msgid "Edit"
|
158 |
+
msgstr "编辑"
|
159 |
+
|
160 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:354
|
161 |
+
msgid "Sidebar updated."
|
162 |
+
msgstr "边栏已更新."
|
163 |
+
|
164 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:356
|
165 |
+
#: ../content-aware-sidebars.php:358 ../content-aware-sidebars.php:363
|
166 |
+
msgid "Manage widgets"
|
167 |
+
msgstr "管理小工具"
|
168 |
+
|
169 |
+
#: ../content-aware-sidebars.php:356
|
170 |
+
msgid "Sidebar published."
|
171 |
+
msgstr "已发布边栏"
|
172 |
+
|
173 |
+
#: ../content-aware-sidebars.php:357
|
174 |
+
msgid "Sidebar saved."
|
175 |
+
msgstr "边栏已保存."
|
176 |
+
|
177 |
+
#: ../content-aware-sidebars.php:358
|
178 |
+
msgid "Sidebar submitted."
|
179 |
+
msgstr "已提交边栏"
|
180 |
+
|
181 |
+
#: ../content-aware-sidebars.php:359
|
182 |
+
#, php-format
|
183 |
+
msgid "Sidebar scheduled for: <strong>%1$s</strong>."
|
184 |
+
msgstr "已为 <strong>%1$s</strong> 设置了边栏计划"
|
185 |
+
|
186 |
+
#: ../content-aware-sidebars.php:361
|
187 |
+
msgid "M j, Y @ G:i"
|
188 |
+
msgstr "M j, Y @ G:i"
|
189 |
+
|
190 |
+
#: ../content-aware-sidebars.php:364
|
191 |
+
msgid "Sidebar draft updated."
|
192 |
+
msgstr "边栏草稿已更新."
|
193 |
+
|
194 |
+
#: ../content-aware-sidebars.php:408 ../content-aware-sidebars.php:493
|
195 |
+
msgid "Please update Host Sidebar"
|
196 |
+
msgstr "请更新主边栏"
|
197 |
+
|
198 |
+
#: ../content-aware-sidebars.php:568
|
199 |
+
msgid "Manage Widgets"
|
200 |
+
msgstr "管理小工具"
|
201 |
+
|
202 |
+
#: ../content-aware-sidebars.php:821
|
203 |
+
msgid "Support the Author of Content Aware Sidebars"
|
204 |
+
msgstr "支持Content Aware Sidebars"
|
205 |
+
|
206 |
+
#: ../content-aware-sidebars.php:829
|
207 |
+
msgid "Content"
|
208 |
+
msgstr "内容"
|
209 |
+
|
210 |
+
#: ../content-aware-sidebars.php:837
|
211 |
+
msgid "Options"
|
212 |
+
msgstr "选项"
|
213 |
+
|
214 |
+
#: ../content-aware-sidebars.php:893
|
215 |
+
msgid ""
|
216 |
+
"Click to edit a group or create a new one. Select content on the left to add "
|
217 |
+
"it. In each group, you can combine different types of associated content."
|
218 |
+
msgstr ""
|
219 |
+
"点击修改或新建组。选择左侧内容添加到组中。在每组中,你可以组合不同的有关内"
|
220 |
+
"容。"
|
221 |
+
|
222 |
+
#: ../content-aware-sidebars.php:894
|
223 |
+
msgid "Display sidebar with"
|
224 |
+
msgstr "边栏显示在"
|
225 |
+
|
226 |
+
#: ../content-aware-sidebars.php:899
|
227 |
+
msgid ""
|
228 |
+
"No content. Please add at least one condition group to make the sidebar "
|
229 |
+
"content aware."
|
230 |
+
msgstr "没有内容。请至少选择一项内容组以定制边栏"
|
231 |
+
|
232 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1297
|
233 |
+
msgid "Save"
|
234 |
+
msgstr "保存"
|
235 |
+
|
236 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1298
|
237 |
+
msgid "Cancel"
|
238 |
+
msgstr "取消"
|
239 |
+
|
240 |
+
#: ../content-aware-sidebars.php:907 ../content-aware-sidebars.php:1300
|
241 |
+
msgid "Remove"
|
242 |
+
msgstr "删除"
|
243 |
+
|
244 |
+
#: ../content-aware-sidebars.php:997 ../content-aware-sidebars.php:1002
|
245 |
+
#: ../content-aware-sidebars.php:1044 ../content-aware-sidebars.php:1049
|
246 |
+
#: ../content-aware-sidebars.php:1082 ../content-aware-sidebars.php:1087
|
247 |
+
msgid "Unauthorized request"
|
248 |
+
msgstr "未授权请求"
|
249 |
+
|
250 |
+
#: ../content-aware-sidebars.php:1010
|
251 |
+
msgid "Condition group cannot be empty"
|
252 |
+
msgstr "未能创建条件组"
|
253 |
+
|
254 |
+
#: ../content-aware-sidebars.php:1024
|
255 |
+
msgid "Condition group saved"
|
256 |
+
msgstr "已保存条件组"
|
257 |
+
|
258 |
+
#: ../content-aware-sidebars.php:1056
|
259 |
+
msgid "Condition group could not be created"
|
260 |
+
msgstr "未能创建条件组"
|
261 |
+
|
262 |
+
#: ../content-aware-sidebars.php:1061
|
263 |
+
msgid "Condition group added"
|
264 |
+
msgstr "已添加条件组"
|
265 |
+
|
266 |
+
#: ../content-aware-sidebars.php:1092
|
267 |
+
msgid "Condition group could not be removed"
|
268 |
+
msgstr "未能删除条件组"
|
269 |
+
|
270 |
+
#: ../content-aware-sidebars.php:1097
|
271 |
+
msgid "Condition group removed"
|
272 |
+
msgstr "已删除条件组"
|
273 |
+
|
274 |
+
#: ../content-aware-sidebars.php:1163
|
275 |
+
msgid ""
|
276 |
+
"If you love this plugin, please consider donating to support future "
|
277 |
+
"development."
|
278 |
+
msgstr "如果你喜欢这个插件, 请考虑捐赠."
|
279 |
+
|
280 |
+
#: ../content-aware-sidebars.php:1172
|
281 |
+
msgid "Or you could:"
|
282 |
+
msgstr "或者你可以:"
|
283 |
+
|
284 |
+
#: ../content-aware-sidebars.php:1174
|
285 |
+
msgid "Rate the plugin on WordPress.org"
|
286 |
+
msgstr "在WordPress.org为此插件评分"
|
287 |
+
|
288 |
+
#: ../content-aware-sidebars.php:1175
|
289 |
+
msgid "Link to the plugin page"
|
290 |
+
msgstr "链接到插件页面"
|
291 |
+
|
292 |
+
#: ../content-aware-sidebars.php:1176
|
293 |
+
msgid "Translate the plugin into your language"
|
294 |
+
msgstr "翻译此插件"
|
295 |
+
|
296 |
+
#: ../content-aware-sidebars.php:1301
|
297 |
+
msgid "Remove this group and its contents permanently?"
|
298 |
+
msgstr "永久删除此组和它的内容?"
|
299 |
+
|
300 |
+
#: ../content-aware-sidebars.php:1302
|
301 |
+
msgid "No results found."
|
302 |
+
msgstr "未找到结果"
|
303 |
+
|
304 |
+
#: ../content-aware-sidebars.php:1303
|
305 |
+
msgid ""
|
306 |
+
"The current group has unsaved changes. Do you want to continue and discard "
|
307 |
+
"these changes?"
|
308 |
+
msgstr "当前修改未保存,放弃修改吗?"
|
309 |
+
|
310 |
+
#: ../modules/abstract.php:88
|
311 |
+
#, php-format
|
312 |
+
msgid "Display with All %s"
|
313 |
+
msgstr "在所有%s显示"
|
314 |
+
|
315 |
+
#: ../modules/abstract.php:98 ../modules/bp_member.php:104
|
316 |
+
#: ../modules/post_type.php:198 ../modules/taxonomy.php:243
|
317 |
+
msgid "View All"
|
318 |
+
msgstr "查看全部"
|
319 |
+
|
320 |
+
#: ../modules/abstract.php:105 ../modules/abstract.php:108
|
321 |
+
#: ../modules/post_type.php:204 ../modules/post_type.php:207
|
322 |
+
#: ../modules/taxonomy.php:249 ../modules/taxonomy.php:252
|
323 |
+
msgid "Search"
|
324 |
+
msgstr "搜索"
|
325 |
+
|
326 |
+
#: ../modules/abstract.php:116 ../modules/bp_member.php:113
|
327 |
+
#: ../modules/post_type.php:217 ../modules/taxonomy.php:262
|
328 |
+
msgid "Add to Group"
|
329 |
+
msgstr "添加到组"
|
330 |
+
|
331 |
+
#: ../modules/abstract.php:188
|
332 |
+
#, php-format
|
333 |
+
msgid "All %s"
|
334 |
+
msgstr "全部%s"
|
335 |
+
|
336 |
+
#: ../modules/author.php:22
|
337 |
+
msgid "Authors"
|
338 |
+
msgstr "作者"
|
339 |
+
|
340 |
+
#: ../modules/bbpress.php:23
|
341 |
+
msgid "bbPress User Profiles"
|
342 |
+
msgstr "bbPress用户资料"
|
343 |
+
|
344 |
+
#: ../modules/bp_member.php:21
|
345 |
+
msgid "BuddyPress Members"
|
346 |
+
msgstr "BuddyPress用户"
|
347 |
+
|
348 |
+
#: ../modules/page_template.php:22
|
349 |
+
msgid "Page Templates"
|
350 |
+
msgstr "页面模板"
|
351 |
+
|
352 |
+
#: ../modules/polylang.php:21 ../modules/qtranslate.php:21
|
353 |
+
#: ../modules/transposh.php:21 ../modules/wpml.php:21
|
354 |
+
msgid "Languages"
|
355 |
+
msgstr "语言"
|
356 |
+
|
357 |
+
#: ../modules/post_type.php:28
|
358 |
+
msgid "Post Types"
|
359 |
+
msgstr "文章类型"
|
360 |
+
|
361 |
+
#: ../modules/post_type.php:105 ../modules/post_type.php:171
|
362 |
+
#: ../modules/taxonomy.php:182 ../modules/taxonomy.php:217
|
363 |
+
msgid "Automatically select new children of a selected ancestor"
|
364 |
+
msgstr "自动为选中的父级选择新子级"
|
365 |
+
|
366 |
+
#: ../modules/post_type.php:177 ../modules/taxonomy.php:221
|
367 |
+
#, php-format
|
368 |
+
msgid "Display with %s"
|
369 |
+
msgstr "在%s显示"
|
370 |
+
|
371 |
+
#: ../modules/post_type.php:182 ../modules/taxonomy.php:225
|
372 |
+
msgid "No items."
|
373 |
+
msgstr "没有项目."
|
374 |
+
|
375 |
+
#: ../modules/post_type.php:193
|
376 |
+
msgid "Most Recent"
|
377 |
+
msgstr "最新"
|
378 |
+
|
379 |
+
#: ../modules/static.php:23
|
380 |
+
msgid "Static Pages"
|
381 |
+
msgstr "静态页面"
|
382 |
+
|
383 |
+
#: ../modules/static.php:33
|
384 |
+
msgid "Front Page"
|
385 |
+
msgstr "首页"
|
386 |
+
|
387 |
+
#: ../modules/static.php:34
|
388 |
+
msgid "Search Results"
|
389 |
+
msgstr "搜索结果"
|
390 |
+
|
391 |
+
#: ../modules/static.php:35
|
392 |
+
msgid "404 Page"
|
393 |
+
msgstr "404页面"
|
394 |
+
|
395 |
+
#: ../modules/taxonomy.php:34
|
396 |
+
msgid "Taxonomies"
|
397 |
+
msgstr "分类"
|
398 |
+
|
399 |
+
#: ../modules/taxonomy.php:238
|
400 |
+
msgid "Most Used"
|
401 |
+
msgstr "最常用"
|
402 |
+
|
403 |
+
#: ../modules/url.php:22
|
404 |
+
msgid "URLs"
|
405 |
+
msgstr "网址"
|
406 |
+
|
407 |
+
#: ../modules/url.php:40
|
408 |
+
msgid "Add"
|
409 |
+
msgstr "新建"
|
lang/content-aware-sidebars.po
ADDED
@@ -0,0 +1,405 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2012 Content Aware Sidebars
|
2 |
+
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Content Aware Sidebars 2.1\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
+
"POT-Creation-Date: 2014-05-01 12:57+0100\n"
|
8 |
+
"PO-Revision-Date: 2014-05-01 12:58+0100\n"
|
9 |
+
"Last-Translator: \n"
|
10 |
+
"Language-Team: \n"
|
11 |
+
"MIME-Version: 1.0\n"
|
12 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
+
"Content-Transfer-Encoding: 8bit\n"
|
14 |
+
"X-Generator: Poedit 1.5.5\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
16 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;"
|
17 |
+
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
18 |
+
"X-Poedit-Basepath: .\n"
|
19 |
+
"X-Textdomain-Support: yes\n"
|
20 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
21 |
+
"X-Poedit-SearchPath-0: .\n"
|
22 |
+
"X-Poedit-SearchPath-1: ..\n"
|
23 |
+
|
24 |
+
#: ../content-aware-sidebars.php:111
|
25 |
+
msgid "Manage and show sidebars according to the content being viewed."
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: ../content-aware-sidebars.php:112
|
29 |
+
msgid "Content Aware Sidebars"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: ../content-aware-sidebars.php:232 ../content-aware-sidebars.php:432
|
33 |
+
msgid "Exposure"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: ../content-aware-sidebars.php:238
|
37 |
+
msgid "Singular"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: ../content-aware-sidebars.php:239
|
41 |
+
msgid "Singular & Archive"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: ../content-aware-sidebars.php:240
|
45 |
+
msgid "Archive"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: ../content-aware-sidebars.php:244 ../content-aware-sidebars.php:433
|
49 |
+
msgctxt "option"
|
50 |
+
msgid "Handle"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: ../content-aware-sidebars.php:246
|
54 |
+
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: ../content-aware-sidebars.php:250
|
58 |
+
msgid "Replace"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: ../content-aware-sidebars.php:251
|
62 |
+
msgid "Merge"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: ../content-aware-sidebars.php:252
|
66 |
+
msgid "Manual"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#: ../content-aware-sidebars.php:256
|
70 |
+
msgid "Host Sidebar"
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#: ../content-aware-sidebars.php:264 ../content-aware-sidebars.php:434
|
74 |
+
msgid "Merge position"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: ../content-aware-sidebars.php:266
|
78 |
+
msgid "Place sidebar on top or bottom of host when merging."
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: ../content-aware-sidebars.php:270
|
82 |
+
msgid "Top"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: ../content-aware-sidebars.php:271
|
86 |
+
msgid "Bottom"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: ../content-aware-sidebars.php:296
|
90 |
+
msgid "Sidebars"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: ../content-aware-sidebars.php:297
|
94 |
+
msgid "Sidebar"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: ../content-aware-sidebars.php:298
|
98 |
+
msgctxt "sidebar"
|
99 |
+
msgid "Add New"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: ../content-aware-sidebars.php:299
|
103 |
+
msgid "Add New Sidebar"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: ../content-aware-sidebars.php:300
|
107 |
+
msgid "Edit Sidebar"
|
108 |
+
msgstr ""
|
109 |
+
|
110 |
+
#: ../content-aware-sidebars.php:301
|
111 |
+
msgid "New Sidebar"
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: ../content-aware-sidebars.php:302
|
115 |
+
msgid "All Sidebars"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: ../content-aware-sidebars.php:303
|
119 |
+
msgid "View Sidebar"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: ../content-aware-sidebars.php:304
|
123 |
+
msgid "Search Sidebars"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: ../content-aware-sidebars.php:305
|
127 |
+
msgid "No sidebars found"
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#: ../content-aware-sidebars.php:306
|
131 |
+
msgid "No sidebars found in Trash"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: ../content-aware-sidebars.php:321 ../content-aware-sidebars.php:892
|
135 |
+
msgid "Condition Groups"
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#: ../content-aware-sidebars.php:322
|
139 |
+
msgid "Condition Group"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: ../content-aware-sidebars.php:323
|
143 |
+
msgctxt "group"
|
144 |
+
msgid "Add New"
|
145 |
+
msgstr ""
|
146 |
+
|
147 |
+
#: ../content-aware-sidebars.php:324 ../content-aware-sidebars.php:892
|
148 |
+
#: ../content-aware-sidebars.php:922
|
149 |
+
msgid "Add New Group"
|
150 |
+
msgstr ""
|
151 |
+
|
152 |
+
#: ../content-aware-sidebars.php:325 ../content-aware-sidebars.php:907
|
153 |
+
#: ../content-aware-sidebars.php:1299
|
154 |
+
msgctxt "group"
|
155 |
+
msgid "Edit"
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:354
|
159 |
+
msgid "Sidebar updated."
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: ../content-aware-sidebars.php:351 ../content-aware-sidebars.php:356
|
163 |
+
#: ../content-aware-sidebars.php:358 ../content-aware-sidebars.php:363
|
164 |
+
msgid "Manage widgets"
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: ../content-aware-sidebars.php:356
|
168 |
+
msgid "Sidebar published."
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: ../content-aware-sidebars.php:357
|
172 |
+
msgid "Sidebar saved."
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#: ../content-aware-sidebars.php:358
|
176 |
+
msgid "Sidebar submitted."
|
177 |
+
msgstr ""
|
178 |
+
|
179 |
+
#: ../content-aware-sidebars.php:359
|
180 |
+
#, php-format
|
181 |
+
msgid "Sidebar scheduled for: <strong>%1$s</strong>."
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
#: ../content-aware-sidebars.php:361
|
185 |
+
msgid "M j, Y @ G:i"
|
186 |
+
msgstr ""
|
187 |
+
|
188 |
+
#: ../content-aware-sidebars.php:364
|
189 |
+
msgid "Sidebar draft updated."
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: ../content-aware-sidebars.php:408 ../content-aware-sidebars.php:493
|
193 |
+
msgid "Please update Host Sidebar"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: ../content-aware-sidebars.php:568
|
197 |
+
msgid "Manage Widgets"
|
198 |
+
msgstr ""
|
199 |
+
|
200 |
+
#: ../content-aware-sidebars.php:821
|
201 |
+
msgid "Support the Author of Content Aware Sidebars"
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: ../content-aware-sidebars.php:829
|
205 |
+
msgid "Content"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: ../content-aware-sidebars.php:837
|
209 |
+
msgid "Options"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: ../content-aware-sidebars.php:893
|
213 |
+
msgid ""
|
214 |
+
"Click to edit a group or create a new one. Select content on the left to add "
|
215 |
+
"it. In each group, you can combine different types of associated content."
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: ../content-aware-sidebars.php:894
|
219 |
+
msgid "Display sidebar with"
|
220 |
+
msgstr ""
|
221 |
+
|
222 |
+
#: ../content-aware-sidebars.php:899
|
223 |
+
msgid ""
|
224 |
+
"No content. Please add at least one condition group to make the sidebar "
|
225 |
+
"content aware."
|
226 |
+
msgstr ""
|
227 |
+
|
228 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1297
|
229 |
+
msgid "Save"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: ../content-aware-sidebars.php:904 ../content-aware-sidebars.php:1298
|
233 |
+
msgid "Cancel"
|
234 |
+
msgstr ""
|
235 |
+
|
236 |
+
#: ../content-aware-sidebars.php:907 ../content-aware-sidebars.php:1300
|
237 |
+
msgid "Remove"
|
238 |
+
msgstr ""
|
239 |
+
|
240 |
+
#: ../content-aware-sidebars.php:997 ../content-aware-sidebars.php:1002
|
241 |
+
#: ../content-aware-sidebars.php:1044 ../content-aware-sidebars.php:1049
|
242 |
+
#: ../content-aware-sidebars.php:1082 ../content-aware-sidebars.php:1087
|
243 |
+
msgid "Unauthorized request"
|
244 |
+
msgstr ""
|
245 |
+
|
246 |
+
#: ../content-aware-sidebars.php:1010
|
247 |
+
msgid "Condition group cannot be empty"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: ../content-aware-sidebars.php:1024
|
251 |
+
msgid "Condition group saved"
|
252 |
+
msgstr ""
|
253 |
+
|
254 |
+
#: ../content-aware-sidebars.php:1056
|
255 |
+
msgid "Condition group could not be created"
|
256 |
+
msgstr ""
|
257 |
+
|
258 |
+
#: ../content-aware-sidebars.php:1061
|
259 |
+
msgid "Condition group added"
|
260 |
+
msgstr ""
|
261 |
+
|
262 |
+
#: ../content-aware-sidebars.php:1092
|
263 |
+
msgid "Condition group could not be removed"
|
264 |
+
msgstr ""
|
265 |
+
|
266 |
+
#: ../content-aware-sidebars.php:1097
|
267 |
+
msgid "Condition group removed"
|
268 |
+
msgstr ""
|
269 |
+
|
270 |
+
#: ../content-aware-sidebars.php:1163
|
271 |
+
msgid ""
|
272 |
+
"If you love this plugin, please consider donating to support future "
|
273 |
+
"development."
|
274 |
+
msgstr ""
|
275 |
+
|
276 |
+
#: ../content-aware-sidebars.php:1172
|
277 |
+
msgid "Or you could:"
|
278 |
+
msgstr ""
|
279 |
+
|
280 |
+
#: ../content-aware-sidebars.php:1174
|
281 |
+
msgid "Rate the plugin on WordPress.org"
|
282 |
+
msgstr ""
|
283 |
+
|
284 |
+
#: ../content-aware-sidebars.php:1175
|
285 |
+
msgid "Link to the plugin page"
|
286 |
+
msgstr ""
|
287 |
+
|
288 |
+
#: ../content-aware-sidebars.php:1176
|
289 |
+
msgid "Translate the plugin into your language"
|
290 |
+
msgstr ""
|
291 |
+
|
292 |
+
#: ../content-aware-sidebars.php:1301
|
293 |
+
msgid "Remove this group and its contents permanently?"
|
294 |
+
msgstr ""
|
295 |
+
|
296 |
+
#: ../content-aware-sidebars.php:1302
|
297 |
+
msgid "No results found."
|
298 |
+
msgstr ""
|
299 |
+
|
300 |
+
#: ../content-aware-sidebars.php:1303
|
301 |
+
msgid ""
|
302 |
+
"The current group has unsaved changes. Do you want to continue and discard "
|
303 |
+
"these changes?"
|
304 |
+
msgstr ""
|
305 |
+
|
306 |
+
#: ../modules/abstract.php:88
|
307 |
+
#, php-format
|
308 |
+
msgid "Display with All %s"
|
309 |
+
msgstr ""
|
310 |
+
|
311 |
+
#: ../modules/abstract.php:98 ../modules/bp_member.php:104
|
312 |
+
#: ../modules/post_type.php:198 ../modules/taxonomy.php:243
|
313 |
+
msgid "View All"
|
314 |
+
msgstr ""
|
315 |
+
|
316 |
+
#: ../modules/abstract.php:105 ../modules/abstract.php:108
|
317 |
+
#: ../modules/post_type.php:204 ../modules/post_type.php:207
|
318 |
+
#: ../modules/taxonomy.php:249 ../modules/taxonomy.php:252
|
319 |
+
msgid "Search"
|
320 |
+
msgstr ""
|
321 |
+
|
322 |
+
#: ../modules/abstract.php:116 ../modules/bp_member.php:113
|
323 |
+
#: ../modules/post_type.php:217 ../modules/taxonomy.php:262
|
324 |
+
msgid "Add to Group"
|
325 |
+
msgstr ""
|
326 |
+
|
327 |
+
#: ../modules/abstract.php:188
|
328 |
+
#, php-format
|
329 |
+
msgid "All %s"
|
330 |
+
msgstr ""
|
331 |
+
|
332 |
+
#: ../modules/author.php:22
|
333 |
+
msgid "Authors"
|
334 |
+
msgstr ""
|
335 |
+
|
336 |
+
#: ../modules/bbpress.php:23
|
337 |
+
msgid "bbPress User Profiles"
|
338 |
+
msgstr ""
|
339 |
+
|
340 |
+
#: ../modules/bp_member.php:21
|
341 |
+
msgid "BuddyPress Members"
|
342 |
+
msgstr ""
|
343 |
+
|
344 |
+
#: ../modules/page_template.php:22
|
345 |
+
msgid "Page Templates"
|
346 |
+
msgstr ""
|
347 |
+
|
348 |
+
#: ../modules/polylang.php:21 ../modules/qtranslate.php:21
|
349 |
+
#: ../modules/transposh.php:21 ../modules/wpml.php:21
|
350 |
+
msgid "Languages"
|
351 |
+
msgstr ""
|
352 |
+
|
353 |
+
#: ../modules/post_type.php:28
|
354 |
+
msgid "Post Types"
|
355 |
+
msgstr ""
|
356 |
+
|
357 |
+
#: ../modules/post_type.php:105 ../modules/post_type.php:171
|
358 |
+
#: ../modules/taxonomy.php:182 ../modules/taxonomy.php:217
|
359 |
+
msgid "Automatically select new children of a selected ancestor"
|
360 |
+
msgstr ""
|
361 |
+
|
362 |
+
#: ../modules/post_type.php:177 ../modules/taxonomy.php:221
|
363 |
+
#, php-format
|
364 |
+
msgid "Display with %s"
|
365 |
+
msgstr ""
|
366 |
+
|
367 |
+
#: ../modules/post_type.php:182 ../modules/taxonomy.php:225
|
368 |
+
msgid "No items."
|
369 |
+
msgstr ""
|
370 |
+
|
371 |
+
#: ../modules/post_type.php:193
|
372 |
+
msgid "Most Recent"
|
373 |
+
msgstr ""
|
374 |
+
|
375 |
+
#: ../modules/static.php:23
|
376 |
+
msgid "Static Pages"
|
377 |
+
msgstr ""
|
378 |
+
|
379 |
+
#: ../modules/static.php:33
|
380 |
+
msgid "Front Page"
|
381 |
+
msgstr ""
|
382 |
+
|
383 |
+
#: ../modules/static.php:34
|
384 |
+
msgid "Search Results"
|
385 |
+
msgstr ""
|
386 |
+
|
387 |
+
#: ../modules/static.php:35
|
388 |
+
msgid "404 Page"
|
389 |
+
msgstr ""
|
390 |
+
|
391 |
+
#: ../modules/taxonomy.php:34
|
392 |
+
msgid "Taxonomies"
|
393 |
+
msgstr ""
|
394 |
+
|
395 |
+
#: ../modules/taxonomy.php:238
|
396 |
+
msgid "Most Used"
|
397 |
+
msgstr ""
|
398 |
+
|
399 |
+
#: ../modules/url.php:22
|
400 |
+
msgid "URLs"
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: ../modules/url.php:40
|
404 |
+
msgid "Add"
|
405 |
+
msgstr ""
|
lang/content-aware-sidebars.pot
DELETED
@@ -1,276 +0,0 @@
|
|
1 |
-
# Copyright (C) 2013 Content Aware Sidebars
|
2 |
-
# This file is distributed under the same license as the Content Aware Sidebars package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Content Aware Sidebars 1.1.2\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/content-aware-sidebars\n"
|
7 |
-
"POT-Creation-Date: 2013-01-07 16:09:52+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: content-aware-sidebars.php:150 content-aware-sidebars.php:327
|
16 |
-
msgid "Exposure"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: content-aware-sidebars.php:156
|
20 |
-
msgid "Singular"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: content-aware-sidebars.php:157
|
24 |
-
msgid "Singular & Archive"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: content-aware-sidebars.php:158
|
28 |
-
msgid "Archive"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: content-aware-sidebars.php:162 content-aware-sidebars.php:328
|
32 |
-
msgctxt "option"
|
33 |
-
msgid "Handle"
|
34 |
-
msgstr ""
|
35 |
-
|
36 |
-
#: content-aware-sidebars.php:164
|
37 |
-
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
38 |
-
msgstr ""
|
39 |
-
|
40 |
-
#: content-aware-sidebars.php:168
|
41 |
-
msgid "Replace"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: content-aware-sidebars.php:169
|
45 |
-
msgid "Merge"
|
46 |
-
msgstr ""
|
47 |
-
|
48 |
-
#: content-aware-sidebars.php:170
|
49 |
-
msgid "Manual"
|
50 |
-
msgstr ""
|
51 |
-
|
52 |
-
#: content-aware-sidebars.php:174
|
53 |
-
msgid "Host Sidebar"
|
54 |
-
msgstr ""
|
55 |
-
|
56 |
-
#: content-aware-sidebars.php:182 content-aware-sidebars.php:329
|
57 |
-
msgid "Merge position"
|
58 |
-
msgstr ""
|
59 |
-
|
60 |
-
#: content-aware-sidebars.php:184
|
61 |
-
msgid "Place sidebar on top or bottom of host when merging."
|
62 |
-
msgstr ""
|
63 |
-
|
64 |
-
#: content-aware-sidebars.php:188
|
65 |
-
msgid "Top"
|
66 |
-
msgstr ""
|
67 |
-
|
68 |
-
#: content-aware-sidebars.php:189
|
69 |
-
msgid "Bottom"
|
70 |
-
msgstr ""
|
71 |
-
|
72 |
-
#: content-aware-sidebars.php:210
|
73 |
-
msgid "Sidebars"
|
74 |
-
msgstr ""
|
75 |
-
|
76 |
-
#: content-aware-sidebars.php:211
|
77 |
-
msgid "Sidebar"
|
78 |
-
msgstr ""
|
79 |
-
|
80 |
-
#: content-aware-sidebars.php:212
|
81 |
-
msgctxt "sidebar"
|
82 |
-
msgid "Add New"
|
83 |
-
msgstr ""
|
84 |
-
|
85 |
-
#: content-aware-sidebars.php:213
|
86 |
-
msgid "Add New Sidebar"
|
87 |
-
msgstr ""
|
88 |
-
|
89 |
-
#: content-aware-sidebars.php:214
|
90 |
-
msgid "Edit Sidebar"
|
91 |
-
msgstr ""
|
92 |
-
|
93 |
-
#: content-aware-sidebars.php:215
|
94 |
-
msgid "New Sidebar"
|
95 |
-
msgstr ""
|
96 |
-
|
97 |
-
#: content-aware-sidebars.php:216
|
98 |
-
msgid "All Sidebars"
|
99 |
-
msgstr ""
|
100 |
-
|
101 |
-
#: content-aware-sidebars.php:217
|
102 |
-
msgid "View Sidebar"
|
103 |
-
msgstr ""
|
104 |
-
|
105 |
-
#: content-aware-sidebars.php:218
|
106 |
-
msgid "Search Sidebars"
|
107 |
-
msgstr ""
|
108 |
-
|
109 |
-
#: content-aware-sidebars.php:219
|
110 |
-
msgid "No sidebars found"
|
111 |
-
msgstr ""
|
112 |
-
|
113 |
-
#: content-aware-sidebars.php:220
|
114 |
-
msgid "No sidebars found in Trash"
|
115 |
-
msgstr ""
|
116 |
-
|
117 |
-
#: content-aware-sidebars.php:253
|
118 |
-
msgid "Sidebar updated. <a href=\"%s\">Manage widgets</a>"
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: content-aware-sidebars.php:256
|
122 |
-
msgid "Sidebar updated."
|
123 |
-
msgstr ""
|
124 |
-
|
125 |
-
#: content-aware-sidebars.php:258
|
126 |
-
msgid "Sidebar published. <a href=\"%s\">Manage widgets</a>"
|
127 |
-
msgstr ""
|
128 |
-
|
129 |
-
#: content-aware-sidebars.php:259
|
130 |
-
msgid "Sidebar saved."
|
131 |
-
msgstr ""
|
132 |
-
|
133 |
-
#: content-aware-sidebars.php:260
|
134 |
-
msgid "Sidebar submitted. <a href=\"%s\">Manage widgets</a>"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#: content-aware-sidebars.php:261
|
138 |
-
msgid ""
|
139 |
-
"Sidebar scheduled for: <strong>%1$s</strong>. <a href=\"%2$s\">Manage "
|
140 |
-
"widgets</a>"
|
141 |
-
msgstr ""
|
142 |
-
|
143 |
-
#. translators: Publish box date format, see http:php.net/date
|
144 |
-
#: content-aware-sidebars.php:263
|
145 |
-
msgid "M j, Y @ G:i"
|
146 |
-
msgstr ""
|
147 |
-
|
148 |
-
#: content-aware-sidebars.php:264
|
149 |
-
msgid "Sidebar draft updated."
|
150 |
-
msgstr ""
|
151 |
-
|
152 |
-
#: content-aware-sidebars.php:391
|
153 |
-
msgid "Please update Host Sidebar"
|
154 |
-
msgstr ""
|
155 |
-
|
156 |
-
#: content-aware-sidebars.php:454
|
157 |
-
msgid "Manage Widgets"
|
158 |
-
msgstr ""
|
159 |
-
|
160 |
-
#: content-aware-sidebars.php:651
|
161 |
-
msgid "Words from the author"
|
162 |
-
msgstr ""
|
163 |
-
|
164 |
-
#: content-aware-sidebars.php:661
|
165 |
-
msgid "Content"
|
166 |
-
msgstr ""
|
167 |
-
|
168 |
-
#: content-aware-sidebars.php:671
|
169 |
-
msgid "Options"
|
170 |
-
msgstr ""
|
171 |
-
|
172 |
-
#: content-aware-sidebars.php:766
|
173 |
-
msgid "If you love this plugin, please consider donating."
|
174 |
-
msgstr ""
|
175 |
-
|
176 |
-
#: content-aware-sidebars.php:768
|
177 |
-
msgid ""
|
178 |
-
"Remember to <a class=\"button\" href=\"%1$s\" target=\"_blank\">rate</a> and "
|
179 |
-
"<a class=\"button\" href=\"%2$s\" target=\"_blank\">share</a> it too!"
|
180 |
-
msgstr ""
|
181 |
-
|
182 |
-
#: content-aware-sidebars.php:770
|
183 |
-
msgid "Check out Content Aware Sidebars for %23WordPress! :)"
|
184 |
-
msgstr ""
|
185 |
-
|
186 |
-
#: content-aware-sidebars.php:772
|
187 |
-
msgid "Check out Content Aware Sidebars :)"
|
188 |
-
msgstr ""
|
189 |
-
|
190 |
-
#: modules/abstract.php:39 modules/post_type.php:78
|
191 |
-
msgid "Show with All %s"
|
192 |
-
msgstr ""
|
193 |
-
|
194 |
-
#: modules/abstract.php:43 modules/post_type.php:88 modules/taxonomy.php:121
|
195 |
-
msgid "View All"
|
196 |
-
msgstr ""
|
197 |
-
|
198 |
-
#: modules/author.php:21
|
199 |
-
msgid "Authors"
|
200 |
-
msgstr ""
|
201 |
-
|
202 |
-
#: modules/bbpress.php:20
|
203 |
-
msgid "bbPress User Profiles"
|
204 |
-
msgstr ""
|
205 |
-
|
206 |
-
#: modules/bp_member.php:20
|
207 |
-
msgid "BuddyPress Members"
|
208 |
-
msgstr ""
|
209 |
-
|
210 |
-
#: modules/page_template.php:21
|
211 |
-
msgid "Page Templates"
|
212 |
-
msgstr ""
|
213 |
-
|
214 |
-
#: modules/polylang.php:20 modules/qtranslate.php:20 modules/transposh.php:20
|
215 |
-
#: modules/wpml.php:20
|
216 |
-
msgid "Languages"
|
217 |
-
msgstr ""
|
218 |
-
|
219 |
-
#: modules/post_type.php:23
|
220 |
-
msgid "Post Types"
|
221 |
-
msgstr ""
|
222 |
-
|
223 |
-
#: modules/post_type.php:73 modules/taxonomy.php:107
|
224 |
-
msgid "Automatically select new children of a selected ancestor"
|
225 |
-
msgstr ""
|
226 |
-
|
227 |
-
#: modules/post_type.php:82 modules/taxonomy.php:115
|
228 |
-
msgid "No items."
|
229 |
-
msgstr ""
|
230 |
-
|
231 |
-
#: modules/static.php:22
|
232 |
-
msgid "Static Pages"
|
233 |
-
msgstr ""
|
234 |
-
|
235 |
-
#: modules/static.php:27
|
236 |
-
msgid "Front Page"
|
237 |
-
msgstr ""
|
238 |
-
|
239 |
-
#: modules/static.php:28
|
240 |
-
msgid "Search Results"
|
241 |
-
msgstr ""
|
242 |
-
|
243 |
-
#: modules/static.php:29
|
244 |
-
msgid "404 Page"
|
245 |
-
msgstr ""
|
246 |
-
|
247 |
-
#: modules/taxonomy.php:24
|
248 |
-
msgid "Taxonomies"
|
249 |
-
msgstr ""
|
250 |
-
|
251 |
-
#: modules/taxonomy.php:111
|
252 |
-
msgid "Show with %s"
|
253 |
-
msgstr ""
|
254 |
-
|
255 |
-
#: modules/taxonomy.php:120
|
256 |
-
msgid "Most Used"
|
257 |
-
msgstr ""
|
258 |
-
|
259 |
-
#. Plugin Name of the plugin/theme
|
260 |
-
msgid "Content Aware Sidebars"
|
261 |
-
msgstr ""
|
262 |
-
|
263 |
-
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
|
264 |
-
#. Plugin URI of the plugin/theme
|
265 |
-
#. #-#-#-#-# plugin.pot (Content Aware Sidebars 1.1.2) #-#-#-#-#
|
266 |
-
#. Author URI of the plugin/theme
|
267 |
-
msgid "http://www.intox.dk/"
|
268 |
-
msgstr ""
|
269 |
-
|
270 |
-
#. Description of the plugin/theme
|
271 |
-
msgid "Manage and show sidebars according to the content being viewed."
|
272 |
-
msgstr ""
|
273 |
-
|
274 |
-
#. Author of the plugin/theme
|
275 |
-
msgid "Joachim Jensen"
|
276 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lang/index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**/
|
license.txt
ADDED
@@ -0,0 +1,674 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 3, 29 June 2007
|
3 |
+
|
4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
6 |
+
of this license document, but changing it is not allowed.
|
7 |
+
|
8 |
+
Preamble
|
9 |
+
|
10 |
+
The GNU General Public License is a free, copyleft license for
|
11 |
+
software and other kinds of works.
|
12 |
+
|
13 |
+
The licenses for most software and other practical works are designed
|
14 |
+
to take away your freedom to share and change the works. By contrast,
|
15 |
+
the GNU General Public License is intended to guarantee your freedom to
|
16 |
+
share and change all versions of a program--to make sure it remains free
|
17 |
+
software for all its users. We, the Free Software Foundation, use the
|
18 |
+
GNU General Public License for most of our software; it applies also to
|
19 |
+
any other work released this way by its authors. You can apply it to
|
20 |
+
your programs, too.
|
21 |
+
|
22 |
+
When we speak of free software, we are referring to freedom, not
|
23 |
+
price. Our General Public Licenses are designed to make sure that you
|
24 |
+
have the freedom to distribute copies of free software (and charge for
|
25 |
+
them if you wish), that you receive source code or can get it if you
|
26 |
+
want it, that you can change the software or use pieces of it in new
|
27 |
+
free programs, and that you know you can do these things.
|
28 |
+
|
29 |
+
To protect your rights, we need to prevent others from denying you
|
30 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
31 |
+
certain responsibilities if you distribute copies of the software, or if
|
32 |
+
you modify it: responsibilities to respect the freedom of others.
|
33 |
+
|
34 |
+
For example, if you distribute copies of such a program, whether
|
35 |
+
gratis or for a fee, you must pass on to the recipients the same
|
36 |
+
freedoms that you received. You must make sure that they, too, receive
|
37 |
+
or can get the source code. And you must show them these terms so they
|
38 |
+
know their rights.
|
39 |
+
|
40 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
41 |
+
(1) assert copyright on the software, and (2) offer you this License
|
42 |
+
giving you legal permission to copy, distribute and/or modify it.
|
43 |
+
|
44 |
+
For the developers' and authors' protection, the GPL clearly explains
|
45 |
+
that there is no warranty for this free software. For both users' and
|
46 |
+
authors' sake, the GPL requires that modified versions be marked as
|
47 |
+
changed, so that their problems will not be attributed erroneously to
|
48 |
+
authors of previous versions.
|
49 |
+
|
50 |
+
Some devices are designed to deny users access to install or run
|
51 |
+
modified versions of the software inside them, although the manufacturer
|
52 |
+
can do so. This is fundamentally incompatible with the aim of
|
53 |
+
protecting users' freedom to change the software. The systematic
|
54 |
+
pattern of such abuse occurs in the area of products for individuals to
|
55 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
56 |
+
have designed this version of the GPL to prohibit the practice for those
|
57 |
+
products. If such problems arise substantially in other domains, we
|
58 |
+
stand ready to extend this provision to those domains in future versions
|
59 |
+
of the GPL, as needed to protect the freedom of users.
|
60 |
+
|
61 |
+
Finally, every program is threatened constantly by software patents.
|
62 |
+
States should not allow patents to restrict development and use of
|
63 |
+
software on general-purpose computers, but in those that do, we wish to
|
64 |
+
avoid the special danger that patents applied to a free program could
|
65 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
66 |
+
patents cannot be used to render the program non-free.
|
67 |
+
|
68 |
+
The precise terms and conditions for copying, distribution and
|
69 |
+
modification follow.
|
70 |
+
|
71 |
+
TERMS AND CONDITIONS
|
72 |
+
|
73 |
+
0. Definitions.
|
74 |
+
|
75 |
+
"This License" refers to version 3 of the GNU General Public License.
|
76 |
+
|
77 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
78 |
+
works, such as semiconductor masks.
|
79 |
+
|
80 |
+
"The Program" refers to any copyrightable work licensed under this
|
81 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
82 |
+
"recipients" may be individuals or organizations.
|
83 |
+
|
84 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
85 |
+
in a fashion requiring copyright permission, other than the making of an
|
86 |
+
exact copy. The resulting work is called a "modified version" of the
|
87 |
+
earlier work or a work "based on" the earlier work.
|
88 |
+
|
89 |
+
A "covered work" means either the unmodified Program or a work based
|
90 |
+
on the Program.
|
91 |
+
|
92 |
+
To "propagate" a work means to do anything with it that, without
|
93 |
+
permission, would make you directly or secondarily liable for
|
94 |
+
infringement under applicable copyright law, except executing it on a
|
95 |
+
computer or modifying a private copy. Propagation includes copying,
|
96 |
+
distribution (with or without modification), making available to the
|
97 |
+
public, and in some countries other activities as well.
|
98 |
+
|
99 |
+
To "convey" a work means any kind of propagation that enables other
|
100 |
+
parties to make or receive copies. Mere interaction with a user through
|
101 |
+
a computer network, with no transfer of a copy, is not conveying.
|
102 |
+
|
103 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
104 |
+
to the extent that it includes a convenient and prominently visible
|
105 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
106 |
+
tells the user that there is no warranty for the work (except to the
|
107 |
+
extent that warranties are provided), that licensees may convey the
|
108 |
+
work under this License, and how to view a copy of this License. If
|
109 |
+
the interface presents a list of user commands or options, such as a
|
110 |
+
menu, a prominent item in the list meets this criterion.
|
111 |
+
|
112 |
+
1. Source Code.
|
113 |
+
|
114 |
+
The "source code" for a work means the preferred form of the work
|
115 |
+
for making modifications to it. "Object code" means any non-source
|
116 |
+
form of a work.
|
117 |
+
|
118 |
+
A "Standard Interface" means an interface that either is an official
|
119 |
+
standard defined by a recognized standards body, or, in the case of
|
120 |
+
interfaces specified for a particular programming language, one that
|
121 |
+
is widely used among developers working in that language.
|
122 |
+
|
123 |
+
The "System Libraries" of an executable work include anything, other
|
124 |
+
than the work as a whole, that (a) is included in the normal form of
|
125 |
+
packaging a Major Component, but which is not part of that Major
|
126 |
+
Component, and (b) serves only to enable use of the work with that
|
127 |
+
Major Component, or to implement a Standard Interface for which an
|
128 |
+
implementation is available to the public in source code form. A
|
129 |
+
"Major Component", in this context, means a major essential component
|
130 |
+
(kernel, window system, and so on) of the specific operating system
|
131 |
+
(if any) on which the executable work runs, or a compiler used to
|
132 |
+
produce the work, or an object code interpreter used to run it.
|
133 |
+
|
134 |
+
The "Corresponding Source" for a work in object code form means all
|
135 |
+
the source code needed to generate, install, and (for an executable
|
136 |
+
work) run the object code and to modify the work, including scripts to
|
137 |
+
control those activities. However, it does not include the work's
|
138 |
+
System Libraries, or general-purpose tools or generally available free
|
139 |
+
programs which are used unmodified in performing those activities but
|
140 |
+
which are not part of the work. For example, Corresponding Source
|
141 |
+
includes interface definition files associated with source files for
|
142 |
+
the work, and the source code for shared libraries and dynamically
|
143 |
+
linked subprograms that the work is specifically designed to require,
|
144 |
+
such as by intimate data communication or control flow between those
|
145 |
+
subprograms and other parts of the work.
|
146 |
+
|
147 |
+
The Corresponding Source need not include anything that users
|
148 |
+
can regenerate automatically from other parts of the Corresponding
|
149 |
+
Source.
|
150 |
+
|
151 |
+
The Corresponding Source for a work in source code form is that
|
152 |
+
same work.
|
153 |
+
|
154 |
+
2. Basic Permissions.
|
155 |
+
|
156 |
+
All rights granted under this License are granted for the term of
|
157 |
+
copyright on the Program, and are irrevocable provided the stated
|
158 |
+
conditions are met. This License explicitly affirms your unlimited
|
159 |
+
permission to run the unmodified Program. The output from running a
|
160 |
+
covered work is covered by this License only if the output, given its
|
161 |
+
content, constitutes a covered work. This License acknowledges your
|
162 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
163 |
+
|
164 |
+
You may make, run and propagate covered works that you do not
|
165 |
+
convey, without conditions so long as your license otherwise remains
|
166 |
+
in force. You may convey covered works to others for the sole purpose
|
167 |
+
of having them make modifications exclusively for you, or provide you
|
168 |
+
with facilities for running those works, provided that you comply with
|
169 |
+
the terms of this License in conveying all material for which you do
|
170 |
+
not control copyright. Those thus making or running the covered works
|
171 |
+
for you must do so exclusively on your behalf, under your direction
|
172 |
+
and control, on terms that prohibit them from making any copies of
|
173 |
+
your copyrighted material outside their relationship with you.
|
174 |
+
|
175 |
+
Conveying under any other circumstances is permitted solely under
|
176 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
177 |
+
makes it unnecessary.
|
178 |
+
|
179 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
180 |
+
|
181 |
+
No covered work shall be deemed part of an effective technological
|
182 |
+
measure under any applicable law fulfilling obligations under article
|
183 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
184 |
+
similar laws prohibiting or restricting circumvention of such
|
185 |
+
measures.
|
186 |
+
|
187 |
+
When you convey a covered work, you waive any legal power to forbid
|
188 |
+
circumvention of technological measures to the extent such circumvention
|
189 |
+
is effected by exercising rights under this License with respect to
|
190 |
+
the covered work, and you disclaim any intention to limit operation or
|
191 |
+
modification of the work as a means of enforcing, against the work's
|
192 |
+
users, your or third parties' legal rights to forbid circumvention of
|
193 |
+
technological measures.
|
194 |
+
|
195 |
+
4. Conveying Verbatim Copies.
|
196 |
+
|
197 |
+
You may convey verbatim copies of the Program's source code as you
|
198 |
+
receive it, in any medium, provided that you conspicuously and
|
199 |
+
appropriately publish on each copy an appropriate copyright notice;
|
200 |
+
keep intact all notices stating that this License and any
|
201 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
202 |
+
keep intact all notices of the absence of any warranty; and give all
|
203 |
+
recipients a copy of this License along with the Program.
|
204 |
+
|
205 |
+
You may charge any price or no price for each copy that you convey,
|
206 |
+
and you may offer support or warranty protection for a fee.
|
207 |
+
|
208 |
+
5. Conveying Modified Source Versions.
|
209 |
+
|
210 |
+
You may convey a work based on the Program, or the modifications to
|
211 |
+
produce it from the Program, in the form of source code under the
|
212 |
+
terms of section 4, provided that you also meet all of these conditions:
|
213 |
+
|
214 |
+
a) The work must carry prominent notices stating that you modified
|
215 |
+
it, and giving a relevant date.
|
216 |
+
|
217 |
+
b) The work must carry prominent notices stating that it is
|
218 |
+
released under this License and any conditions added under section
|
219 |
+
7. This requirement modifies the requirement in section 4 to
|
220 |
+
"keep intact all notices".
|
221 |
+
|
222 |
+
c) You must license the entire work, as a whole, under this
|
223 |
+
License to anyone who comes into possession of a copy. This
|
224 |
+
License will therefore apply, along with any applicable section 7
|
225 |
+
additional terms, to the whole of the work, and all its parts,
|
226 |
+
regardless of how they are packaged. This License gives no
|
227 |
+
permission to license the work in any other way, but it does not
|
228 |
+
invalidate such permission if you have separately received it.
|
229 |
+
|
230 |
+
d) If the work has interactive user interfaces, each must display
|
231 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
232 |
+
interfaces that do not display Appropriate Legal Notices, your
|
233 |
+
work need not make them do so.
|
234 |
+
|
235 |
+
A compilation of a covered work with other separate and independent
|
236 |
+
works, which are not by their nature extensions of the covered work,
|
237 |
+
and which are not combined with it such as to form a larger program,
|
238 |
+
in or on a volume of a storage or distribution medium, is called an
|
239 |
+
"aggregate" if the compilation and its resulting copyright are not
|
240 |
+
used to limit the access or legal rights of the compilation's users
|
241 |
+
beyond what the individual works permit. Inclusion of a covered work
|
242 |
+
in an aggregate does not cause this License to apply to the other
|
243 |
+
parts of the aggregate.
|
244 |
+
|
245 |
+
6. Conveying Non-Source Forms.
|
246 |
+
|
247 |
+
You may convey a covered work in object code form under the terms
|
248 |
+
of sections 4 and 5, provided that you also convey the
|
249 |
+
machine-readable Corresponding Source under the terms of this License,
|
250 |
+
in one of these ways:
|
251 |
+
|
252 |
+
a) Convey the object code in, or embodied in, a physical product
|
253 |
+
(including a physical distribution medium), accompanied by the
|
254 |
+
Corresponding Source fixed on a durable physical medium
|
255 |
+
customarily used for software interchange.
|
256 |
+
|
257 |
+
b) Convey the object code in, or embodied in, a physical product
|
258 |
+
(including a physical distribution medium), accompanied by a
|
259 |
+
written offer, valid for at least three years and valid for as
|
260 |
+
long as you offer spare parts or customer support for that product
|
261 |
+
model, to give anyone who possesses the object code either (1) a
|
262 |
+
copy of the Corresponding Source for all the software in the
|
263 |
+
product that is covered by this License, on a durable physical
|
264 |
+
medium customarily used for software interchange, for a price no
|
265 |
+
more than your reasonable cost of physically performing this
|
266 |
+
conveying of source, or (2) access to copy the
|
267 |
+
Corresponding Source from a network server at no charge.
|
268 |
+
|
269 |
+
c) Convey individual copies of the object code with a copy of the
|
270 |
+
written offer to provide the Corresponding Source. This
|
271 |
+
alternative is allowed only occasionally and noncommercially, and
|
272 |
+
only if you received the object code with such an offer, in accord
|
273 |
+
with subsection 6b.
|
274 |
+
|
275 |
+
d) Convey the object code by offering access from a designated
|
276 |
+
place (gratis or for a charge), and offer equivalent access to the
|
277 |
+
Corresponding Source in the same way through the same place at no
|
278 |
+
further charge. You need not require recipients to copy the
|
279 |
+
Corresponding Source along with the object code. If the place to
|
280 |
+
copy the object code is a network server, the Corresponding Source
|
281 |
+
may be on a different server (operated by you or a third party)
|
282 |
+
that supports equivalent copying facilities, provided you maintain
|
283 |
+
clear directions next to the object code saying where to find the
|
284 |
+
Corresponding Source. Regardless of what server hosts the
|
285 |
+
Corresponding Source, you remain obligated to ensure that it is
|
286 |
+
available for as long as needed to satisfy these requirements.
|
287 |
+
|
288 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
289 |
+
you inform other peers where the object code and Corresponding
|
290 |
+
Source of the work are being offered to the general public at no
|
291 |
+
charge under subsection 6d.
|
292 |
+
|
293 |
+
A separable portion of the object code, whose source code is excluded
|
294 |
+
from the Corresponding Source as a System Library, need not be
|
295 |
+
included in conveying the object code work.
|
296 |
+
|
297 |
+
A "User Product" is either (1) a "consumer product", which means any
|
298 |
+
tangible personal property which is normally used for personal, family,
|
299 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
300 |
+
into a dwelling. In determining whether a product is a consumer product,
|
301 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
302 |
+
product received by a particular user, "normally used" refers to a
|
303 |
+
typical or common use of that class of product, regardless of the status
|
304 |
+
of the particular user or of the way in which the particular user
|
305 |
+
actually uses, or expects or is expected to use, the product. A product
|
306 |
+
is a consumer product regardless of whether the product has substantial
|
307 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
308 |
+
the only significant mode of use of the product.
|
309 |
+
|
310 |
+
"Installation Information" for a User Product means any methods,
|
311 |
+
procedures, authorization keys, or other information required to install
|
312 |
+
and execute modified versions of a covered work in that User Product from
|
313 |
+
a modified version of its Corresponding Source. The information must
|
314 |
+
suffice to ensure that the continued functioning of the modified object
|
315 |
+
code is in no case prevented or interfered with solely because
|
316 |
+
modification has been made.
|
317 |
+
|
318 |
+
If you convey an object code work under this section in, or with, or
|
319 |
+
specifically for use in, a User Product, and the conveying occurs as
|
320 |
+
part of a transaction in which the right of possession and use of the
|
321 |
+
User Product is transferred to the recipient in perpetuity or for a
|
322 |
+
fixed term (regardless of how the transaction is characterized), the
|
323 |
+
Corresponding Source conveyed under this section must be accompanied
|
324 |
+
by the Installation Information. But this requirement does not apply
|
325 |
+
if neither you nor any third party retains the ability to install
|
326 |
+
modified object code on the User Product (for example, the work has
|
327 |
+
been installed in ROM).
|
328 |
+
|
329 |
+
The requirement to provide Installation Information does not include a
|
330 |
+
requirement to continue to provide support service, warranty, or updates
|
331 |
+
for a work that has been modified or installed by the recipient, or for
|
332 |
+
the User Product in which it has been modified or installed. Access to a
|
333 |
+
network may be denied when the modification itself materially and
|
334 |
+
adversely affects the operation of the network or violates the rules and
|
335 |
+
protocols for communication across the network.
|
336 |
+
|
337 |
+
Corresponding Source conveyed, and Installation Information provided,
|
338 |
+
in accord with this section must be in a format that is publicly
|
339 |
+
documented (and with an implementation available to the public in
|
340 |
+
source code form), and must require no special password or key for
|
341 |
+
unpacking, reading or copying.
|
342 |
+
|
343 |
+
7. Additional Terms.
|
344 |
+
|
345 |
+
"Additional permissions" are terms that supplement the terms of this
|
346 |
+
License by making exceptions from one or more of its conditions.
|
347 |
+
Additional permissions that are applicable to the entire Program shall
|
348 |
+
be treated as though they were included in this License, to the extent
|
349 |
+
that they are valid under applicable law. If additional permissions
|
350 |
+
apply only to part of the Program, that part may be used separately
|
351 |
+
under those permissions, but the entire Program remains governed by
|
352 |
+
this License without regard to the additional permissions.
|
353 |
+
|
354 |
+
When you convey a copy of a covered work, you may at your option
|
355 |
+
remove any additional permissions from that copy, or from any part of
|
356 |
+
it. (Additional permissions may be written to require their own
|
357 |
+
removal in certain cases when you modify the work.) You may place
|
358 |
+
additional permissions on material, added by you to a covered work,
|
359 |
+
for which you have or can give appropriate copyright permission.
|
360 |
+
|
361 |
+
Notwithstanding any other provision of this License, for material you
|
362 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
363 |
+
that material) supplement the terms of this License with terms:
|
364 |
+
|
365 |
+
a) Disclaiming warranty or limiting liability differently from the
|
366 |
+
terms of sections 15 and 16 of this License; or
|
367 |
+
|
368 |
+
b) Requiring preservation of specified reasonable legal notices or
|
369 |
+
author attributions in that material or in the Appropriate Legal
|
370 |
+
Notices displayed by works containing it; or
|
371 |
+
|
372 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
373 |
+
requiring that modified versions of such material be marked in
|
374 |
+
reasonable ways as different from the original version; or
|
375 |
+
|
376 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
377 |
+
authors of the material; or
|
378 |
+
|
379 |
+
e) Declining to grant rights under trademark law for use of some
|
380 |
+
trade names, trademarks, or service marks; or
|
381 |
+
|
382 |
+
f) Requiring indemnification of licensors and authors of that
|
383 |
+
material by anyone who conveys the material (or modified versions of
|
384 |
+
it) with contractual assumptions of liability to the recipient, for
|
385 |
+
any liability that these contractual assumptions directly impose on
|
386 |
+
those licensors and authors.
|
387 |
+
|
388 |
+
All other non-permissive additional terms are considered "further
|
389 |
+
restrictions" within the meaning of section 10. If the Program as you
|
390 |
+
received it, or any part of it, contains a notice stating that it is
|
391 |
+
governed by this License along with a term that is a further
|
392 |
+
restriction, you may remove that term. If a license document contains
|
393 |
+
a further restriction but permits relicensing or conveying under this
|
394 |
+
License, you may add to a covered work material governed by the terms
|
395 |
+
of that license document, provided that the further restriction does
|
396 |
+
not survive such relicensing or conveying.
|
397 |
+
|
398 |
+
If you add terms to a covered work in accord with this section, you
|
399 |
+
must place, in the relevant source files, a statement of the
|
400 |
+
additional terms that apply to those files, or a notice indicating
|
401 |
+
where to find the applicable terms.
|
402 |
+
|
403 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
404 |
+
form of a separately written license, or stated as exceptions;
|
405 |
+
the above requirements apply either way.
|
406 |
+
|
407 |
+
8. Termination.
|
408 |
+
|
409 |
+
You may not propagate or modify a covered work except as expressly
|
410 |
+
provided under this License. Any attempt otherwise to propagate or
|
411 |
+
modify it is void, and will automatically terminate your rights under
|
412 |
+
this License (including any patent licenses granted under the third
|
413 |
+
paragraph of section 11).
|
414 |
+
|
415 |
+
However, if you cease all violation of this License, then your
|
416 |
+
license from a particular copyright holder is reinstated (a)
|
417 |
+
provisionally, unless and until the copyright holder explicitly and
|
418 |
+
finally terminates your license, and (b) permanently, if the copyright
|
419 |
+
holder fails to notify you of the violation by some reasonable means
|
420 |
+
prior to 60 days after the cessation.
|
421 |
+
|
422 |
+
Moreover, your license from a particular copyright holder is
|
423 |
+
reinstated permanently if the copyright holder notifies you of the
|
424 |
+
violation by some reasonable means, this is the first time you have
|
425 |
+
received notice of violation of this License (for any work) from that
|
426 |
+
copyright holder, and you cure the violation prior to 30 days after
|
427 |
+
your receipt of the notice.
|
428 |
+
|
429 |
+
Termination of your rights under this section does not terminate the
|
430 |
+
licenses of parties who have received copies or rights from you under
|
431 |
+
this License. If your rights have been terminated and not permanently
|
432 |
+
reinstated, you do not qualify to receive new licenses for the same
|
433 |
+
material under section 10.
|
434 |
+
|
435 |
+
9. Acceptance Not Required for Having Copies.
|
436 |
+
|
437 |
+
You are not required to accept this License in order to receive or
|
438 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
439 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
440 |
+
to receive a copy likewise does not require acceptance. However,
|
441 |
+
nothing other than this License grants you permission to propagate or
|
442 |
+
modify any covered work. These actions infringe copyright if you do
|
443 |
+
not accept this License. Therefore, by modifying or propagating a
|
444 |
+
covered work, you indicate your acceptance of this License to do so.
|
445 |
+
|
446 |
+
10. Automatic Licensing of Downstream Recipients.
|
447 |
+
|
448 |
+
Each time you convey a covered work, the recipient automatically
|
449 |
+
receives a license from the original licensors, to run, modify and
|
450 |
+
propagate that work, subject to this License. You are not responsible
|
451 |
+
for enforcing compliance by third parties with this License.
|
452 |
+
|
453 |
+
An "entity transaction" is a transaction transferring control of an
|
454 |
+
organization, or substantially all assets of one, or subdividing an
|
455 |
+
organization, or merging organizations. If propagation of a covered
|
456 |
+
work results from an entity transaction, each party to that
|
457 |
+
transaction who receives a copy of the work also receives whatever
|
458 |
+
licenses to the work the party's predecessor in interest had or could
|
459 |
+
give under the previous paragraph, plus a right to possession of the
|
460 |
+
Corresponding Source of the work from the predecessor in interest, if
|
461 |
+
the predecessor has it or can get it with reasonable efforts.
|
462 |
+
|
463 |
+
You may not impose any further restrictions on the exercise of the
|
464 |
+
rights granted or affirmed under this License. For example, you may
|
465 |
+
not impose a license fee, royalty, or other charge for exercise of
|
466 |
+
rights granted under this License, and you may not initiate litigation
|
467 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
468 |
+
any patent claim is infringed by making, using, selling, offering for
|
469 |
+
sale, or importing the Program or any portion of it.
|
470 |
+
|
471 |
+
11. Patents.
|
472 |
+
|
473 |
+
A "contributor" is a copyright holder who authorizes use under this
|
474 |
+
License of the Program or a work on which the Program is based. The
|
475 |
+
work thus licensed is called the contributor's "contributor version".
|
476 |
+
|
477 |
+
A contributor's "essential patent claims" are all patent claims
|
478 |
+
owned or controlled by the contributor, whether already acquired or
|
479 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
480 |
+
by this License, of making, using, or selling its contributor version,
|
481 |
+
but do not include claims that would be infringed only as a
|
482 |
+
consequence of further modification of the contributor version. For
|
483 |
+
purposes of this definition, "control" includes the right to grant
|
484 |
+
patent sublicenses in a manner consistent with the requirements of
|
485 |
+
this License.
|
486 |
+
|
487 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
488 |
+
patent license under the contributor's essential patent claims, to
|
489 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
490 |
+
propagate the contents of its contributor version.
|
491 |
+
|
492 |
+
In the following three paragraphs, a "patent license" is any express
|
493 |
+
agreement or commitment, however denominated, not to enforce a patent
|
494 |
+
(such as an express permission to practice a patent or covenant not to
|
495 |
+
sue for patent infringement). To "grant" such a patent license to a
|
496 |
+
party means to make such an agreement or commitment not to enforce a
|
497 |
+
patent against the party.
|
498 |
+
|
499 |
+
If you convey a covered work, knowingly relying on a patent license,
|
500 |
+
and the Corresponding Source of the work is not available for anyone
|
501 |
+
to copy, free of charge and under the terms of this License, through a
|
502 |
+
publicly available network server or other readily accessible means,
|
503 |
+
then you must either (1) cause the Corresponding Source to be so
|
504 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
505 |
+
patent license for this particular work, or (3) arrange, in a manner
|
506 |
+
consistent with the requirements of this License, to extend the patent
|
507 |
+
license to downstream recipients. "Knowingly relying" means you have
|
508 |
+
actual knowledge that, but for the patent license, your conveying the
|
509 |
+
covered work in a country, or your recipient's use of the covered work
|
510 |
+
in a country, would infringe one or more identifiable patents in that
|
511 |
+
country that you have reason to believe are valid.
|
512 |
+
|
513 |
+
If, pursuant to or in connection with a single transaction or
|
514 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
515 |
+
covered work, and grant a patent license to some of the parties
|
516 |
+
receiving the covered work authorizing them to use, propagate, modify
|
517 |
+
or convey a specific copy of the covered work, then the patent license
|
518 |
+
you grant is automatically extended to all recipients of the covered
|
519 |
+
work and works based on it.
|
520 |
+
|
521 |
+
A patent license is "discriminatory" if it does not include within
|
522 |
+
the scope of its coverage, prohibits the exercise of, or is
|
523 |
+
conditioned on the non-exercise of one or more of the rights that are
|
524 |
+
specifically granted under this License. You may not convey a covered
|
525 |
+
work if you are a party to an arrangement with a third party that is
|
526 |
+
in the business of distributing software, under which you make payment
|
527 |
+
to the third party based on the extent of your activity of conveying
|
528 |
+
the work, and under which the third party grants, to any of the
|
529 |
+
parties who would receive the covered work from you, a discriminatory
|
530 |
+
patent license (a) in connection with copies of the covered work
|
531 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
532 |
+
for and in connection with specific products or compilations that
|
533 |
+
contain the covered work, unless you entered into that arrangement,
|
534 |
+
or that patent license was granted, prior to 28 March 2007.
|
535 |
+
|
536 |
+
Nothing in this License shall be construed as excluding or limiting
|
537 |
+
any implied license or other defenses to infringement that may
|
538 |
+
otherwise be available to you under applicable patent law.
|
539 |
+
|
540 |
+
12. No Surrender of Others' Freedom.
|
541 |
+
|
542 |
+
If conditions are imposed on you (whether by court order, agreement or
|
543 |
+
otherwise) that contradict the conditions of this License, they do not
|
544 |
+
excuse you from the conditions of this License. If you cannot convey a
|
545 |
+
covered work so as to satisfy simultaneously your obligations under this
|
546 |
+
License and any other pertinent obligations, then as a consequence you may
|
547 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
548 |
+
to collect a royalty for further conveying from those to whom you convey
|
549 |
+
the Program, the only way you could satisfy both those terms and this
|
550 |
+
License would be to refrain entirely from conveying the Program.
|
551 |
+
|
552 |
+
13. Use with the GNU Affero General Public License.
|
553 |
+
|
554 |
+
Notwithstanding any other provision of this License, you have
|
555 |
+
permission to link or combine any covered work with a work licensed
|
556 |
+
under version 3 of the GNU Affero General Public License into a single
|
557 |
+
combined work, and to convey the resulting work. The terms of this
|
558 |
+
License will continue to apply to the part which is the covered work,
|
559 |
+
but the special requirements of the GNU Affero General Public License,
|
560 |
+
section 13, concerning interaction through a network will apply to the
|
561 |
+
combination as such.
|
562 |
+
|
563 |
+
14. Revised Versions of this License.
|
564 |
+
|
565 |
+
The Free Software Foundation may publish revised and/or new versions of
|
566 |
+
the GNU General Public License from time to time. Such new versions will
|
567 |
+
be similar in spirit to the present version, but may differ in detail to
|
568 |
+
address new problems or concerns.
|
569 |
+
|
570 |
+
Each version is given a distinguishing version number. If the
|
571 |
+
Program specifies that a certain numbered version of the GNU General
|
572 |
+
Public License "or any later version" applies to it, you have the
|
573 |
+
option of following the terms and conditions either of that numbered
|
574 |
+
version or of any later version published by the Free Software
|
575 |
+
Foundation. If the Program does not specify a version number of the
|
576 |
+
GNU General Public License, you may choose any version ever published
|
577 |
+
by the Free Software Foundation.
|
578 |
+
|
579 |
+
If the Program specifies that a proxy can decide which future
|
580 |
+
versions of the GNU General Public License can be used, that proxy's
|
581 |
+
public statement of acceptance of a version permanently authorizes you
|
582 |
+
to choose that version for the Program.
|
583 |
+
|
584 |
+
Later license versions may give you additional or different
|
585 |
+
permissions. However, no additional obligations are imposed on any
|
586 |
+
author or copyright holder as a result of your choosing to follow a
|
587 |
+
later version.
|
588 |
+
|
589 |
+
15. Disclaimer of Warranty.
|
590 |
+
|
591 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
592 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
593 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
594 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
595 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
596 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
597 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
598 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
599 |
+
|
600 |
+
16. Limitation of Liability.
|
601 |
+
|
602 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
603 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
604 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
605 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
606 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
607 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
608 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
609 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
610 |
+
SUCH DAMAGES.
|
611 |
+
|
612 |
+
17. Interpretation of Sections 15 and 16.
|
613 |
+
|
614 |
+
If the disclaimer of warranty and limitation of liability provided
|
615 |
+
above cannot be given local legal effect according to their terms,
|
616 |
+
reviewing courts shall apply local law that most closely approximates
|
617 |
+
an absolute waiver of all civil liability in connection with the
|
618 |
+
Program, unless a warranty or assumption of liability accompanies a
|
619 |
+
copy of the Program in return for a fee.
|
620 |
+
|
621 |
+
END OF TERMS AND CONDITIONS
|
622 |
+
|
623 |
+
How to Apply These Terms to Your New Programs
|
624 |
+
|
625 |
+
If you develop a new program, and you want it to be of the greatest
|
626 |
+
possible use to the public, the best way to achieve this is to make it
|
627 |
+
free software which everyone can redistribute and change under these terms.
|
628 |
+
|
629 |
+
To do so, attach the following notices to the program. It is safest
|
630 |
+
to attach them to the start of each source file to most effectively
|
631 |
+
state the exclusion of warranty; and each file should have at least
|
632 |
+
the "copyright" line and a pointer to where the full notice is found.
|
633 |
+
|
634 |
+
<one line to give the program's name and a brief idea of what it does.>
|
635 |
+
Copyright (C) <year> <name of author>
|
636 |
+
|
637 |
+
This program is free software: you can redistribute it and/or modify
|
638 |
+
it under the terms of the GNU General Public License as published by
|
639 |
+
the Free Software Foundation, either version 3 of the License, or
|
640 |
+
(at your option) any later version.
|
641 |
+
|
642 |
+
This program is distributed in the hope that it will be useful,
|
643 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
644 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
645 |
+
GNU General Public License for more details.
|
646 |
+
|
647 |
+
You should have received a copy of the GNU General Public License
|
648 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
649 |
+
|
650 |
+
Also add information on how to contact you by electronic and paper mail.
|
651 |
+
|
652 |
+
If the program does terminal interaction, make it output a short
|
653 |
+
notice like this when it starts in an interactive mode:
|
654 |
+
|
655 |
+
<program> Copyright (C) <year> <name of author>
|
656 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
657 |
+
This is free software, and you are welcome to redistribute it
|
658 |
+
under certain conditions; type `show c' for details.
|
659 |
+
|
660 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
661 |
+
parts of the General Public License. Of course, your program's commands
|
662 |
+
might be different; for a GUI interface, you would use an "about box".
|
663 |
+
|
664 |
+
You should also get your employer (if you work as a programmer) or school,
|
665 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
666 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
667 |
+
<http://www.gnu.org/licenses/>.
|
668 |
+
|
669 |
+
The GNU General Public License does not permit incorporating your program
|
670 |
+
into proprietary programs. If your program is a subroutine library, you
|
671 |
+
may consider it more useful to permit linking proprietary applications with
|
672 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
673 |
+
Public License instead of this License. But first, please read
|
674 |
+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
modules/abstract.php
CHANGED
@@ -11,78 +11,272 @@
|
|
11 |
*/
|
12 |
abstract class CASModule {
|
13 |
|
|
|
|
|
|
|
|
|
14 |
protected $id;
|
|
|
|
|
|
|
|
|
|
|
15 |
protected $name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
/**
|
18 |
*
|
19 |
* Constructor
|
20 |
*
|
21 |
*/
|
22 |
-
public function __construct() {
|
23 |
-
$this->id =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
26 |
public function meta_box_content() {
|
27 |
global $post;
|
28 |
|
29 |
if(!$this->_get_content())
|
30 |
return;
|
31 |
-
|
32 |
-
echo '<
|
33 |
-
echo '<
|
34 |
-
|
35 |
-
|
36 |
-
$
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
<
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
echo '</div>';
|
|
|
57 |
}
|
58 |
|
|
|
|
|
|
|
|
|
|
|
59 |
public function db_join() {
|
60 |
global $wpdb;
|
61 |
-
return "LEFT JOIN $wpdb->postmeta {$this->id} ON {$this->id}.post_id = posts.ID AND {$this->id}.meta_key = '".ContentAwareSidebars::
|
62 |
}
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
|
|
|
|
|
|
71 |
}
|
72 |
-
return $continue;
|
73 |
-
|
74 |
}
|
75 |
-
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
}
|
79 |
|
80 |
-
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
-
|
84 |
-
abstract protected function _get_content();
|
85 |
-
abstract public function is_content();
|
86 |
-
abstract public function db_where();
|
87 |
|
88 |
}
|
11 |
*/
|
12 |
abstract class CASModule {
|
13 |
|
14 |
+
/**
|
15 |
+
* Module idenfification
|
16 |
+
* @var string
|
17 |
+
*/
|
18 |
protected $id;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Module name
|
22 |
+
* @var string
|
23 |
+
*/
|
24 |
protected $name;
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Enable AJAX search in editor
|
28 |
+
* @var boolean
|
29 |
+
*/
|
30 |
+
protected $searchable = false;
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Enable display for all content of type
|
34 |
+
* @var boolean
|
35 |
+
*/
|
36 |
+
protected $type_display = false;
|
37 |
+
|
38 |
+
protected $pagination = array(
|
39 |
+
'per_page' => 20,
|
40 |
+
'total_pages' => 1,
|
41 |
+
'total_items' => 0
|
42 |
+
);
|
43 |
+
|
44 |
+
protected $ajax = false;
|
45 |
|
46 |
/**
|
47 |
*
|
48 |
* Constructor
|
49 |
*
|
50 |
*/
|
51 |
+
public function __construct($id, $title, $ajax = false) {
|
52 |
+
$this->id = $id;
|
53 |
+
$this->name = $title;
|
54 |
+
$this->ajax = $ajax;
|
55 |
+
|
56 |
+
if(is_admin()) {
|
57 |
+
|
58 |
+
add_action('cas-module-admin-box', array(&$this,'meta_box_content'));
|
59 |
+
add_action('cas-module-save-data', array(&$this,'save_data'));
|
60 |
+
|
61 |
+
add_filter('cas-module-print-data', array(&$this,'print_group_data'),10,2);
|
62 |
+
|
63 |
+
if($this->ajax) {
|
64 |
+
add_action('wp_ajax_cas-module-'.$this->id, array(&$this,'ajax_get_content'));
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
+
add_filter('cas-context-data', array(&$this,'parse_context_data'));
|
69 |
+
|
70 |
}
|
71 |
|
72 |
+
/**
|
73 |
+
* Default meta box content
|
74 |
+
* @global object $post
|
75 |
+
* @return void
|
76 |
+
*/
|
77 |
public function meta_box_content() {
|
78 |
global $post;
|
79 |
|
80 |
if(!$this->_get_content())
|
81 |
return;
|
82 |
+
|
83 |
+
echo '<li class="control-section accordion-section">';
|
84 |
+
echo '<h3 class="accordion-section-title" title="'.$this->name.'" tabindex="0">'.$this->name.'</h3>'."\n";
|
85 |
+
echo '<div class="accordion-section-content cas-rule-content" data-cas-module="'.$this->id.'" id="cas-'.$this->id.'">';
|
86 |
+
|
87 |
+
if($this->type_display) {
|
88 |
+
echo '<ul><li><label><input class="cas-chk-all" type="checkbox" name="cas_condition['.$this->id.'][]" value="'.$this->id.'" /> '.sprintf(__('Display with All %s',ContentAwareSidebars::DOMAIN),$this->name).'</label></li></ul>'."\n";
|
89 |
+
}
|
90 |
+
|
91 |
+
$content = "";
|
92 |
+
foreach($this->_get_content() as $id => $name) {
|
93 |
+
$content .= '<li class="cas-'.$this->id.'-'.$id.'"><label><input class="cas-' . $this->id . '" type="checkbox" name="cas_condition['.$this->id.'][]" title="'.$name.'" value="'.$id.'" /> '.$name.'</label></li>'."\n";
|
94 |
+
}
|
95 |
+
|
96 |
+
$tabs = array();
|
97 |
+
$tabs['all'] = array(
|
98 |
+
'title' => __('View All'),
|
99 |
+
'status' => true,
|
100 |
+
'content' => $content
|
101 |
+
);
|
102 |
+
|
103 |
+
if($this->searchable) {
|
104 |
+
$tabs['search'] = array(
|
105 |
+
'title' => __('Search'),
|
106 |
+
'status' => false,
|
107 |
+
'content' => '',
|
108 |
+
'content_before' => '<p><input class="cas-autocomplete-' . $this->id . ' cas-autocomplete quick-search" id="cas-autocomplete-' . $this->id . '" type="search" name="cas-autocomplete" value="" placeholder="'.__('Search').'" autocomplete="off" /><span class="spinner"></span></p>'
|
109 |
+
);
|
110 |
+
}
|
111 |
+
|
112 |
+
echo $this->create_tab_panels($this->id,$tabs);
|
113 |
+
|
114 |
+
echo '<p class="button-controls">';
|
115 |
+
|
116 |
+
echo '<span class="add-to-group"><input data-cas-condition="'.$this->id.'" data-cas-module="'.$this->id.'" type="button" name="cas-condition-add" class="js-cas-condition-add button" value="'.__('Add to Group',ContentAwareSidebars::DOMAIN).'"></span>';
|
117 |
+
|
118 |
+
echo '</p>';
|
119 |
+
|
120 |
echo '</div>';
|
121 |
+
echo '</li>';
|
122 |
}
|
123 |
|
124 |
+
/**
|
125 |
+
* Default query join
|
126 |
+
* @global object $wpdb
|
127 |
+
* @return string
|
128 |
+
*/
|
129 |
public function db_join() {
|
130 |
global $wpdb;
|
131 |
+
return "LEFT JOIN $wpdb->postmeta {$this->id} ON {$this->id}.post_id = posts.ID AND {$this->id}.meta_key = '".ContentAwareSidebars::PREFIX.$this->id."' ";
|
132 |
}
|
133 |
|
134 |
+
/**
|
135 |
+
* Idenficiation getter
|
136 |
+
* @return string
|
137 |
+
*/
|
138 |
+
final public function get_id() {
|
139 |
+
return $this->id;
|
140 |
+
}
|
141 |
+
|
142 |
+
/**
|
143 |
+
* Save data on POST
|
144 |
+
* @param int $post_id
|
145 |
+
* @return void
|
146 |
+
*/
|
147 |
+
public function save_data($post_id) {
|
148 |
+
$meta_key = ContentAwareSidebars::PREFIX . $this->id;
|
149 |
+
$new = isset($_POST['cas_condition'][$this->id]) ? $_POST['cas_condition'][$this->id] : '';
|
150 |
+
$old = array_flip(get_post_meta($post_id, $meta_key, false));
|
151 |
+
|
152 |
+
if (is_array($new)) {
|
153 |
+
//$new = array_unique($new);
|
154 |
+
// Skip existing data or insert new data
|
155 |
+
foreach ($new as $new_single) {
|
156 |
+
if (isset($old[$new_single])) {
|
157 |
+
unset($old[$new_single]);
|
158 |
+
} else {
|
159 |
+
add_post_meta($post_id, $meta_key, $new_single);
|
160 |
+
}
|
161 |
+
}
|
162 |
+
// Remove existing data that have not been skipped
|
163 |
+
foreach ($old as $old_key => $old_value) {
|
164 |
+
delete_post_meta($post_id, $meta_key, $old_key);
|
165 |
}
|
166 |
+
} elseif (!empty($old)) {
|
167 |
+
// Remove any old values when $new is empty
|
168 |
+
delete_post_meta($post_id, $meta_key);
|
169 |
}
|
|
|
|
|
170 |
}
|
171 |
+
|
172 |
+
/**
|
173 |
+
* Print saved condition data for a group
|
174 |
+
* @author Joachim Jensen <jv@intox.dk>
|
175 |
+
* @since 2
|
176 |
+
* @param int $post_id
|
177 |
+
* @return void
|
178 |
+
*/
|
179 |
+
public function print_group_data($post_id) {
|
180 |
+
$data = get_post_custom_values(ContentAwareSidebars::PREFIX . $this->id, $post_id);
|
181 |
+
if($data) {
|
182 |
+
echo '<div class="cas-condition cas-condition-'.$this->id.'">';
|
183 |
+
|
184 |
+
echo '<strong>'.$this->name.'</strong>';
|
185 |
+
echo '<ul>';
|
186 |
+
|
187 |
+
if(in_array($this->id,$data)) {
|
188 |
+
echo '<li><label><input type="checkbox" name="cas_condition['.$this->id.'][]" value="'.$this->id.'" checked="checked" /> '.sprintf(__('All %s',ContentAwareSidebars::DOMAIN),$this->name).'</label></li>';
|
189 |
+
}
|
190 |
+
|
191 |
+
foreach($this->_get_content(array('include' => $data)) as $id => $name) {
|
192 |
+
echo '<li><label><input type="checkbox" name="cas_condition['.$this->id.'][]" value="'.$id.'" checked="checked" /> '.$name.'</label></li>'."\n";
|
193 |
+
}
|
194 |
+
echo '</ul>';
|
195 |
+
echo '</div>';
|
196 |
+
}
|
197 |
}
|
198 |
|
199 |
+
/**
|
200 |
+
* Get content for sidebar edit screen
|
201 |
+
* @return array
|
202 |
+
*/
|
203 |
+
abstract protected function _get_content($args = array());
|
204 |
+
|
205 |
+
/**
|
206 |
+
* Determine if current content is relevant
|
207 |
+
* @return boolean
|
208 |
+
*/
|
209 |
+
abstract public function in_context();
|
210 |
+
|
211 |
+
/**
|
212 |
+
* Get data from current content
|
213 |
+
* @author Joachim Jensen <jv@intox.dk>
|
214 |
+
* @since 2.0
|
215 |
+
* @return array|string
|
216 |
+
*/
|
217 |
+
abstract public function get_context_data();
|
218 |
+
|
219 |
+
/**
|
220 |
+
* Parse context data together with
|
221 |
+
* table query
|
222 |
+
*/
|
223 |
+
final public function parse_context_data($data) {
|
224 |
+
if(apply_filters("cas-is-content-{$this->id}", $this->in_context())) {
|
225 |
+
$data['JOIN'][$this->id] = apply_filters("cas-db-join-{$this->id}", $this->db_join());
|
226 |
+
|
227 |
+
$context_data = $this->get_context_data();
|
228 |
+
|
229 |
+
if(is_array($context_data)) {
|
230 |
+
$context_data = "({$this->id}.meta_value IS NULL OR {$this->id}.meta_value IN ('".implode("','",$context_data) ."'))";
|
231 |
+
}
|
232 |
+
$data['WHERE'][$this->id] = apply_filters("cas-db-where-{$this->id}", $context_data);
|
233 |
+
|
234 |
+
|
235 |
+
} else {
|
236 |
+
$data['EXCLUDE'][] = $this->id;
|
237 |
+
}
|
238 |
+
return $data;
|
239 |
+
}
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Create tab panels for administrative meta boxes
|
243 |
+
* @author Joachim Jensen <jv@intox.dk>
|
244 |
+
* @since 2
|
245 |
+
* @param string $id
|
246 |
+
* @param array $args
|
247 |
+
* @return string
|
248 |
+
*/
|
249 |
+
final protected function create_tab_panels($id, $args) {
|
250 |
+
$return = '<div id="'.$id.'" class="posttypediv">';
|
251 |
+
|
252 |
+
$content = '';
|
253 |
+
$tabs = '';
|
254 |
+
|
255 |
+
$count = count($args);
|
256 |
+
foreach($args as $key => $tab) {
|
257 |
+
if($count > 1) {
|
258 |
+
$tabs .= '<li'.($tab['status'] ? ' class="tabs"' : '').'>';
|
259 |
+
$tabs .= '<a class="nav-tab-link" href="#tabs-panel-' . $id . '-'.$key.'" data-type="tabs-panel-' . $id . '-'.$key.'"> '.$tab['title'].' </a>';
|
260 |
+
$tabs .= '</li>';
|
261 |
+
}
|
262 |
+
$content .= '<div id="tabs-panel-' . $id . '-'.$key.'" class="tabs-panel'.($tab['status'] ? ' tabs-panel-active' : ' tabs-panel-inactive').'">';
|
263 |
+
if(isset($tab['content_before'])) {
|
264 |
+
$content .= $tab['content_before'];
|
265 |
+
}
|
266 |
+
$content .= '<ul id="cas-list-' . $id . '" class="cas-contentlist categorychecklist form-no-clear">'."\n";
|
267 |
+
$content .= $tab['content'];
|
268 |
+
$content .= '</ul>'."\n";
|
269 |
+
$content .= '</div>';
|
270 |
+
}
|
271 |
+
|
272 |
+
if($tabs) {
|
273 |
+
$return .= '<ul class="category-tabs">'.$tabs.'</ul>';
|
274 |
+
}
|
275 |
+
$return .= $content;
|
276 |
+
|
277 |
+
$return .'</div>';
|
278 |
+
|
279 |
+
return $return;
|
280 |
}
|
|
|
|
|
|
|
|
|
281 |
|
282 |
}
|
modules/author.php
CHANGED
@@ -15,30 +15,105 @@
|
|
15 |
*/
|
16 |
class CASModule_author extends CASModule {
|
17 |
|
|
|
|
|
|
|
18 |
public function __construct() {
|
19 |
-
parent::__construct();
|
20 |
-
|
21 |
-
$this->
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
25 |
return (is_singular() && !is_front_page()) || is_author();
|
26 |
}
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
global $post;
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
33 |
}
|
34 |
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
$author_list = array();
|
38 |
-
|
39 |
-
$
|
|
|
|
|
40 |
}
|
41 |
return $author_list;
|
42 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
}
|
15 |
*/
|
16 |
class CASModule_author extends CASModule {
|
17 |
|
18 |
+
/**
|
19 |
+
* Constructor
|
20 |
+
*/
|
21 |
public function __construct() {
|
22 |
+
parent::__construct('authors',__('Authors',ContentAwareSidebars::DOMAIN));
|
23 |
+
|
24 |
+
$this->searchable = true;
|
25 |
+
$this->type_display = true;
|
26 |
+
|
27 |
+
if(is_admin()) {
|
28 |
+
add_action('wp_ajax_cas-autocomplete-'.$this->id, array(&$this,'ajax_content_search'));
|
29 |
+
}
|
30 |
+
|
31 |
}
|
32 |
|
33 |
+
/**
|
34 |
+
* Determine if content is relevant
|
35 |
+
* @return boolean
|
36 |
+
*/
|
37 |
+
public function in_context() {
|
38 |
return (is_singular() && !is_front_page()) || is_author();
|
39 |
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Get data from context
|
43 |
+
* @author Joachim Jensen <jv@intox.dk>
|
44 |
+
* @since 2.0
|
45 |
+
* @return array
|
46 |
+
*/
|
47 |
+
public function get_context_data() {
|
48 |
global $post;
|
49 |
+
return array(
|
50 |
+
$this->id,
|
51 |
+
(string)(is_singular() ? $post->post_author : get_query_var('author'))
|
52 |
+
);
|
53 |
}
|
54 |
|
55 |
+
/**
|
56 |
+
* Get authors
|
57 |
+
* @author Joachim Jensen <jv@intox.dk>
|
58 |
+
* @since
|
59 |
+
* @param array $args
|
60 |
+
* @return array
|
61 |
+
*/
|
62 |
+
protected function _get_content($args = array()) {
|
63 |
+
|
64 |
+
$args['number'] = 20;
|
65 |
+
|
66 |
+
$user_query = new WP_User_Query( $args );
|
67 |
+
|
68 |
$author_list = array();
|
69 |
+
if($user_query->results) {
|
70 |
+
foreach($user_query->results as $user) {
|
71 |
+
$author_list[$user->ID] = $user->display_name;
|
72 |
+
}
|
73 |
}
|
74 |
return $author_list;
|
75 |
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* Get authors with AJAX search
|
79 |
+
* @return void
|
80 |
+
*/
|
81 |
+
public function ajax_content_search() {
|
82 |
+
global $wpdb;
|
83 |
+
|
84 |
+
if(!isset($_POST['sidebar_id'])) {
|
85 |
+
die(-1);
|
86 |
+
}
|
87 |
+
|
88 |
+
// Verify request
|
89 |
+
check_ajax_referer(ContentAwareSidebars::SIDEBAR_PREFIX.$_POST['sidebar_id'],'nonce');
|
90 |
+
|
91 |
+
$suggestions = array();
|
92 |
+
|
93 |
+
$authors =$wpdb->get_results($wpdb->prepare("
|
94 |
+
SELECT ID, display_name
|
95 |
+
FROM $wpdb->users
|
96 |
+
WHERE display_name
|
97 |
+
LIKE '%s'
|
98 |
+
ORDER BY display_name ASC
|
99 |
+
LIMIT 0,10
|
100 |
+
",
|
101 |
+
'%'.$_REQUEST['q'].'%'));
|
102 |
+
|
103 |
+
foreach($authors as $user) {
|
104 |
+
$suggestions[] = array(
|
105 |
+
'label' => $user->display_name,
|
106 |
+
'value' => $user->ID,
|
107 |
+
'id' => $user->ID,
|
108 |
+
'module' => $this->id,
|
109 |
+
'name' => $this->id,
|
110 |
+
'id2' => $this->id,
|
111 |
+
'elem' => $this->id.'-'.$user->ID
|
112 |
+
);
|
113 |
+
}
|
114 |
+
|
115 |
+
echo json_encode($suggestions);
|
116 |
+
die();
|
117 |
+
}
|
118 |
|
119 |
}
|
modules/bbpress.php
CHANGED
@@ -12,33 +12,51 @@
|
|
12 |
* a) any or specific bbpress user profile
|
13 |
*
|
14 |
*/
|
15 |
-
class CASModule_bbpress extends
|
16 |
|
|
|
|
|
|
|
17 |
public function __construct() {
|
18 |
parent::__construct();
|
19 |
$this->id = 'bb_profile';
|
20 |
-
$this->name = __('bbPress User Profiles',
|
21 |
|
22 |
add_filter('cas-db-where-post_types', array(&$this,'add_forum_dependency'));
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
-
|
|
|
|
|
|
|
|
|
26 |
return bbp_is_single_user();
|
27 |
}
|
28 |
-
|
29 |
-
public function db_where() {
|
30 |
-
return "(bb_profile.meta_value = 'bb_profile' OR bb_profile.meta_value = '".bbp_get_displayed_user_id()."')";
|
31 |
-
}
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
public function add_forum_dependency($where) {
|
43 |
if(is_singular(array('topic','reply'))) {
|
44 |
$where = "(post_types.meta_value IS NULL OR post_types.meta_value IN('".get_post_type()."','".get_the_ID()."','".bbp_get_forum_id()."','forum'))";
|
12 |
* a) any or specific bbpress user profile
|
13 |
*
|
14 |
*/
|
15 |
+
class CASModule_bbpress extends CASModule_author {
|
16 |
|
17 |
+
/**
|
18 |
+
* Constructor
|
19 |
+
*/
|
20 |
public function __construct() {
|
21 |
parent::__construct();
|
22 |
$this->id = 'bb_profile';
|
23 |
+
$this->name = __('bbPress User Profiles',ContentAwareSidebars::DOMAIN);
|
24 |
|
25 |
add_filter('cas-db-where-post_types', array(&$this,'add_forum_dependency'));
|
26 |
+
|
27 |
+
if(is_admin()) {
|
28 |
+
add_action('wp_ajax_cas-autocomplete-'.$this->id, array(&$this,'ajax_content_search'));
|
29 |
+
}
|
30 |
+
|
31 |
}
|
32 |
|
33 |
+
/**
|
34 |
+
* Determine if content is relevant
|
35 |
+
* @return boolean
|
36 |
+
*/
|
37 |
+
public function in_context() {
|
38 |
return bbp_is_single_user();
|
39 |
}
|
|
|
|
|
|
|
|
|
40 |
|
41 |
+
/**
|
42 |
+
* Get data from context
|
43 |
+
* @author Joachim Jensen <jv@intox.dk>
|
44 |
+
* @since 2.0
|
45 |
+
* @return array
|
46 |
+
*/
|
47 |
+
public function get_context_data() {
|
48 |
+
return array(
|
49 |
+
$this->id,
|
50 |
+
bbp_get_displayed_user_id()
|
51 |
+
);
|
52 |
}
|
53 |
|
54 |
+
/**
|
55 |
+
* Sidebars to be displayed with forums will also
|
56 |
+
* be dislpayed with respective topics and replies
|
57 |
+
* @param string $where
|
58 |
+
* @return string
|
59 |
+
*/
|
60 |
public function add_forum_dependency($where) {
|
61 |
if(is_singular(array('topic','reply'))) {
|
62 |
$where = "(post_types.meta_value IS NULL OR post_types.meta_value IN('".get_post_type()."','".get_the_ID()."','".bbp_get_forum_id()."','forum'))";
|
modules/bp_member.php
CHANGED
@@ -14,16 +14,22 @@
|
|
14 |
*/
|
15 |
class CASModule_bp_member extends CASModule {
|
16 |
|
|
|
|
|
|
|
17 |
public function __construct() {
|
18 |
-
parent::__construct();
|
19 |
-
$this->id = 'bp_member';
|
20 |
-
$this->name = __('BuddyPress Members','content-aware-sidebars');
|
21 |
|
22 |
add_filter('cas-is-content-static', array(&$this,'static_is_content'));
|
23 |
|
24 |
}
|
25 |
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
27 |
global $bp;
|
28 |
|
29 |
$components = $bp->loaded_components;
|
@@ -34,52 +40,92 @@ class CASModule_bp_member extends CASModule {
|
|
34 |
foreach((array)$components as $name) {
|
35 |
$content[$name] = ucfirst($name);
|
36 |
}
|
|
|
|
|
|
|
37 |
|
38 |
return $content;
|
39 |
}
|
40 |
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
42 |
global $bp;
|
43 |
return $bp->displayed_user->domain != null;
|
44 |
}
|
45 |
-
|
46 |
-
public function db_where() {
|
47 |
-
global $bp;
|
48 |
-
return "(bp_member.meta_value IS NULL OR bp_member.meta_value IN ('".$bp->current_component."','".$bp->current_component."-".$bp->current_action."'))";
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
public function meta_box_content() {
|
53 |
global $post, $bp;
|
54 |
|
55 |
-
echo '<
|
56 |
-
echo '<
|
|
|
|
|
57 |
$field = $this->id;
|
58 |
-
|
59 |
-
$
|
60 |
-
|
61 |
-
<div style="min-height:100%;">
|
62 |
-
<ul class="list:<?php echo $field; ?> categorychecklist form-no-clear">
|
63 |
-
<?php
|
64 |
foreach ($this->_get_content() as $id => $name) {
|
65 |
-
|
66 |
if(isset($bp->bp_options_nav[$id])) {
|
67 |
-
|
68 |
foreach($bp->bp_options_nav[$id] as $child) {
|
69 |
-
|
70 |
}
|
71 |
-
|
72 |
}
|
73 |
|
74 |
}
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
public function static_is_content($content) {
|
82 |
-
return $content && !$this->
|
83 |
}
|
84 |
|
85 |
}
|
14 |
*/
|
15 |
class CASModule_bp_member extends CASModule {
|
16 |
|
17 |
+
/**
|
18 |
+
* Constructor
|
19 |
+
*/
|
20 |
public function __construct() {
|
21 |
+
parent::__construct('bp_member',__('BuddyPress Members',ContentAwareSidebars::DOMAIN));
|
|
|
|
|
22 |
|
23 |
add_filter('cas-is-content-static', array(&$this,'static_is_content'));
|
24 |
|
25 |
}
|
26 |
|
27 |
+
/**
|
28 |
+
* Get member pages
|
29 |
+
* @global object $bp
|
30 |
+
* @return array
|
31 |
+
*/
|
32 |
+
protected function _get_content($args = array()) {
|
33 |
global $bp;
|
34 |
|
35 |
$components = $bp->loaded_components;
|
40 |
foreach((array)$components as $name) {
|
41 |
$content[$name] = ucfirst($name);
|
42 |
}
|
43 |
+
if(isset($args['include'])) {
|
44 |
+
$content = array_intersect_key($content,array_flip($args['include']));
|
45 |
+
}
|
46 |
|
47 |
return $content;
|
48 |
}
|
49 |
|
50 |
+
/**
|
51 |
+
* Determine if content is relevant
|
52 |
+
* @global object $bp
|
53 |
+
* @return boolean
|
54 |
+
*/
|
55 |
+
public function in_context() {
|
56 |
global $bp;
|
57 |
return $bp->displayed_user->domain != null;
|
58 |
}
|
|
|
|
|
|
|
|
|
59 |
|
60 |
+
/**
|
61 |
+
* Get data from context
|
62 |
+
* @author Joachim Jensen <jv@intox.dk>
|
63 |
+
* @since 2.0
|
64 |
+
* @return array
|
65 |
+
*/
|
66 |
+
public function get_context_data() {
|
67 |
+
global $bp;
|
68 |
+
return array(
|
69 |
+
$bp->current_component,
|
70 |
+
$bp->current_component."-".$bp->current_action
|
71 |
+
);
|
72 |
}
|
73 |
|
74 |
+
/**
|
75 |
+
* Meta box content
|
76 |
+
* @global object $post
|
77 |
+
* @global object $bp
|
78 |
+
* @return void
|
79 |
+
*/
|
80 |
public function meta_box_content() {
|
81 |
global $post, $bp;
|
82 |
|
83 |
+
echo '<li class="control-section accordion-section">';
|
84 |
+
echo '<h3 class="accordion-section-title" title="'.$this->name.'" tabindex="0">'.$this->name.'</h3>'."\n";
|
85 |
+
echo '<div class="accordion-section-content cas-rule-content" data-cas-module="'.$this->id.'" id="cas-'.$this->id.'">';
|
86 |
+
|
87 |
$field = $this->id;
|
88 |
+
|
89 |
+
$tab_content = "";
|
90 |
+
|
|
|
|
|
|
|
91 |
foreach ($this->_get_content() as $id => $name) {
|
92 |
+
$tab_content .= '<li class="cas-'.$this->id.'-'.$id.'"><label class="selectit"><input type="checkbox" name="cas_condition[' . $field . '][]" value="' . $id . '" /> ' . $name . '</label></li>' . "\n";
|
93 |
if(isset($bp->bp_options_nav[$id])) {
|
94 |
+
$tab_content .= '<li><ul class="children">';
|
95 |
foreach($bp->bp_options_nav[$id] as $child) {
|
96 |
+
$tab_content .= '<li class="cas-'.$this->id.'-'.$id.'-'.$child['slug'].'"><label class="selectit"><input type="checkbox" name="cas_condition[' . $field . '][]" value="' . $id . '-'. $child['slug'].'" /> ' . $child['name'] . '</label></li>' . "\n";
|
97 |
}
|
98 |
+
$tab_content .= '</ul></li>';
|
99 |
}
|
100 |
|
101 |
}
|
102 |
+
|
103 |
+
$tabs['all'] = array(
|
104 |
+
'title' => __('View All'),
|
105 |
+
'status' => true,
|
106 |
+
'content' => $tab_content
|
107 |
+
);
|
108 |
+
|
109 |
+
echo $this->create_tab_panels($this->id,$tabs);
|
110 |
+
|
111 |
+
echo '<p class="button-controls">';
|
112 |
+
|
113 |
+
echo '<span class="add-to-group"><input data-cas-condition="'.$this->id.'" data-cas-module="'.$this->id.'" type="button" name="cas-condition-add" class="js-cas-condition-add button" value="'.__('Add to Group',ContentAwareSidebars::DOMAIN).'"></span>';
|
114 |
+
|
115 |
+
echo '</p>';
|
116 |
+
|
117 |
+
echo '</div>'."\n";
|
118 |
+
echo '</li>';
|
119 |
}
|
120 |
|
121 |
+
/**
|
122 |
+
* Avoid collision with content of static module
|
123 |
+
* Somehow buddypress pages pass is_404()
|
124 |
+
* @param boolean $content
|
125 |
+
* @return boolean
|
126 |
+
*/
|
127 |
public function static_is_content($content) {
|
128 |
+
return $content && !$this->in_context();
|
129 |
}
|
130 |
|
131 |
}
|
modules/index.php
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**/
|
modules/page_template.php
CHANGED
@@ -15,29 +15,50 @@
|
|
15 |
*/
|
16 |
class CASModule_page_template extends CASModule {
|
17 |
|
|
|
|
|
|
|
18 |
public function __construct() {
|
19 |
-
parent::__construct();
|
20 |
-
|
21 |
-
$this->
|
22 |
}
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
25 |
if(is_singular() && !('page' == get_option( 'show_on_front') && get_option('page_on_front') == get_the_ID())) {
|
26 |
$template = get_post_meta(get_the_ID(),'_wp_page_template',true);
|
27 |
-
|
28 |
-
return true;
|
29 |
-
}
|
30 |
}
|
31 |
return false;
|
32 |
}
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
|
43 |
}
|
15 |
*/
|
16 |
class CASModule_page_template extends CASModule {
|
17 |
|
18 |
+
/**
|
19 |
+
* Constructor
|
20 |
+
*/
|
21 |
public function __construct() {
|
22 |
+
parent::__construct('page_templates',__('Page Templates',ContentAwareSidebars::DOMAIN));
|
23 |
+
|
24 |
+
$this->type_display = true;
|
25 |
}
|
26 |
|
27 |
+
/**
|
28 |
+
* Determine if content is relevant
|
29 |
+
* @return boolean
|
30 |
+
*/
|
31 |
+
public function in_context() {
|
32 |
if(is_singular() && !('page' == get_option( 'show_on_front') && get_option('page_on_front') == get_the_ID())) {
|
33 |
$template = get_post_meta(get_the_ID(),'_wp_page_template',true);
|
34 |
+
return ($template && $template != 'default');
|
|
|
|
|
35 |
}
|
36 |
return false;
|
37 |
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Get data from context
|
41 |
+
* @author Joachim Jensen <jv@intox.dk>
|
42 |
+
* @since 2.0
|
43 |
+
* @return array
|
44 |
+
*/
|
45 |
+
public function get_context_data() {
|
46 |
+
return array(
|
47 |
+
$this->id,
|
48 |
+
get_post_meta(get_the_ID(),'_wp_page_template',true)
|
49 |
+
);
|
50 |
}
|
51 |
|
52 |
+
/**
|
53 |
+
* Get page templates
|
54 |
+
* @return array
|
55 |
+
*/
|
56 |
+
protected function _get_content($args = array()) {
|
57 |
+
$templates = array_flip(get_page_templates());
|
58 |
+
if(isset($args['include'])) {
|
59 |
+
$templates = array_intersect_key($templates,array_flip($args['include']));
|
60 |
+
}
|
61 |
+
return $templates;
|
62 |
}
|
63 |
|
64 |
}
|
modules/polylang.php
CHANGED
@@ -14,37 +14,62 @@
|
|
14 |
*/
|
15 |
class CASModule_polylang extends CASModule {
|
16 |
|
|
|
|
|
|
|
17 |
public function __construct() {
|
18 |
-
parent::__construct();
|
19 |
-
$this->id = 'language';
|
20 |
-
$this->name = __('Languages','content-aware-sidebars');
|
21 |
-
|
22 |
|
23 |
add_filter('pll_get_post_types', array(&$this,'remove_sidebar_multilingual'));
|
24 |
|
25 |
}
|
26 |
|
27 |
-
|
|
|
|
|
|
|
|
|
28 |
return true;
|
29 |
}
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
36 |
global $polylang;
|
37 |
$langs = array();
|
38 |
|
39 |
foreach($polylang->get_languages_list() as $lng) {
|
40 |
$langs[$lng->slug] = $lng->name;
|
41 |
}
|
|
|
|
|
|
|
42 |
return $langs;
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
|
|
45 |
public function remove_sidebar_multilingual($post_types) {
|
46 |
-
|
47 |
-
unset($post_types['sidebar']);
|
48 |
return $post_types;
|
49 |
}
|
50 |
|
14 |
*/
|
15 |
class CASModule_polylang extends CASModule {
|
16 |
|
17 |
+
/**
|
18 |
+
* Constructor
|
19 |
+
*/
|
20 |
public function __construct() {
|
21 |
+
parent::__construct('language',__('Languages',ContentAwareSidebars::DOMAIN));
|
|
|
|
|
|
|
22 |
|
23 |
add_filter('pll_get_post_types', array(&$this,'remove_sidebar_multilingual'));
|
24 |
|
25 |
}
|
26 |
|
27 |
+
/**
|
28 |
+
* Determine if content is relevant
|
29 |
+
* @return boolean
|
30 |
+
*/
|
31 |
+
public function in_context() {
|
32 |
return true;
|
33 |
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Get data from context
|
37 |
+
* @author Joachim Jensen <jv@intox.dk>
|
38 |
+
* @since 2.0
|
39 |
+
* @return array
|
40 |
+
*/
|
41 |
+
public function get_context_data() {
|
42 |
+
return array(
|
43 |
+
$this->id,
|
44 |
+
pll_current_language()
|
45 |
+
);
|
46 |
}
|
47 |
|
48 |
+
/**
|
49 |
+
* Get languages
|
50 |
+
* @global object $polylang
|
51 |
+
* @return array
|
52 |
+
*/
|
53 |
+
protected function _get_content($args = array()) {
|
54 |
global $polylang;
|
55 |
$langs = array();
|
56 |
|
57 |
foreach($polylang->get_languages_list() as $lng) {
|
58 |
$langs[$lng->slug] = $lng->name;
|
59 |
}
|
60 |
+
if(isset($args['include'])) {
|
61 |
+
$langs = array_intersect_key($langs,array_flip($args['include']));
|
62 |
+
}
|
63 |
return $langs;
|
64 |
}
|
65 |
|
66 |
+
/**
|
67 |
+
* Remove sidebars from multilingual list
|
68 |
+
* @param array $post_types
|
69 |
+
* @return array
|
70 |
+
*/
|
71 |
public function remove_sidebar_multilingual($post_types) {
|
72 |
+
unset($post_types[ContentAwareSidebars::TYPE_SIDEBAR]);
|
|
|
73 |
return $post_types;
|
74 |
}
|
75 |
|
modules/post_type.php
CHANGED
@@ -15,110 +15,346 @@
|
|
15 |
*/
|
16 |
class CASModule_post_type extends CASModule {
|
17 |
|
|
|
|
|
|
|
|
|
18 |
private $post_type_objects;
|
19 |
|
|
|
|
|
|
|
20 |
public function __construct() {
|
21 |
-
parent::__construct();
|
22 |
-
$this->
|
23 |
-
$this->
|
24 |
|
25 |
add_action('transition_post_status', array(&$this,'post_ancestry_check'),10,3);
|
26 |
-
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
-
|
|
|
|
|
|
|
|
|
34 |
return ((is_singular() || is_home()) && !is_front_page()) || is_post_type_archive();
|
35 |
}
|
36 |
-
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
if(is_singular()) {
|
39 |
-
return
|
|
|
|
|
|
|
40 |
}
|
41 |
global $post_type;
|
42 |
-
|
43 |
// Home has post as default post type
|
44 |
if(!$post_type) $post_type = 'post';
|
45 |
-
return
|
|
|
|
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
public function meta_box_content() {
|
49 |
global $post;
|
50 |
|
51 |
foreach ($this->_get_post_types() as $post_type) {
|
52 |
-
echo '<h4><a href="#">' . $post_type->label . '</a></h4>'."\n";
|
53 |
-
echo '<div class="cas-rule-content" id="cas-' . $this->id . '-' . $post_type->name . '">'."\n";
|
54 |
-
$meta = get_post_meta($post->ID, ContentAwareSidebars::prefix . 'post_types', false);
|
55 |
-
$current = $meta != '' ? $meta : array();
|
56 |
-
|
57 |
-
$exclude = array();
|
58 |
-
if ($post_type->name == 'page' && 'page' == get_option('show_on_front')) {
|
59 |
-
$exclude[] = get_option('page_on_front');
|
60 |
-
$exclude[] = get_option('page_for_posts');
|
61 |
-
}
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
if($post_type->hierarchical) {
|
72 |
-
echo '<
|
73 |
-
echo '<label><input type="checkbox" name="
|
74 |
-
echo '</
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
-
//WP3.1.4 does not support $post_type->labels->all_items
|
77 |
-
echo '<p>' . "\n";
|
78 |
-
echo '<label><input class="cas-chk-all" type="checkbox" name="post_types[]" value="' . $post_type->name . '"' . checked(in_array($post_type->name, $current), true, false) . ' /> ' . sprintf(__('Show with All %s', 'content-aware-sidebars'), $post_type->label) . '</label>' . "\n";
|
79 |
-
echo '</p>' . "\n";
|
80 |
|
81 |
-
if (!$
|
82 |
echo '<p>' . __('No items.') . '</p>';
|
83 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
echo '</div>';
|
|
|
100 |
}
|
101 |
}
|
102 |
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
}
|
109 |
}
|
110 |
-
|
|
|
|
|
111 |
}
|
|
|
112 |
|
113 |
/**
|
114 |
-
*
|
115 |
-
* @param
|
116 |
-
* @param
|
117 |
-
* @param
|
|
|
118 |
*/
|
119 |
public function post_ancestry_check($new_status, $old_status, $post) {
|
120 |
|
121 |
-
if($post->post_type !=
|
122 |
|
123 |
$status = array('publish','private','future');
|
124 |
// Only new posts are relevant
|
@@ -128,34 +364,31 @@ class CASModule_post_type extends CASModule {
|
|
128 |
if($post_type->hierarchical && $post_type->public && $post->parent != '0') {
|
129 |
|
130 |
// Get sidebars with post ancestor wanting to auto-select post
|
131 |
-
$
|
132 |
-
'post_type' =>
|
133 |
'meta_query' => array(
|
134 |
'relation' => 'AND',
|
135 |
array(
|
136 |
-
'key' => ContentAwareSidebars::
|
137 |
-
'value' => '
|
138 |
'compare' => '='
|
139 |
),
|
140 |
array(
|
141 |
-
'key' => ContentAwareSidebars::
|
142 |
'value' => get_ancestors($post->ID,$post->post_type),
|
143 |
'type' => 'numeric',
|
144 |
'compare' => 'IN'
|
145 |
)
|
146 |
)
|
147 |
));
|
148 |
-
if($
|
149 |
-
foreach($
|
150 |
-
add_post_meta($sidebar->ID, ContentAwareSidebars::
|
151 |
}
|
152 |
}
|
153 |
-
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
}
|
158 |
-
|
159 |
}
|
160 |
|
161 |
}
|
15 |
*/
|
16 |
class CASModule_post_type extends CASModule {
|
17 |
|
18 |
+
/**
|
19 |
+
* Registered public post types
|
20 |
+
* @var array
|
21 |
+
*/
|
22 |
private $post_type_objects;
|
23 |
|
24 |
+
/**
|
25 |
+
* Constructor
|
26 |
+
*/
|
27 |
public function __construct() {
|
28 |
+
parent::__construct('post_types',__('Post Types',ContentAwareSidebars::DOMAIN), true);
|
29 |
+
$this->type_display = true;
|
30 |
+
$this->searchable = true;
|
31 |
|
32 |
add_action('transition_post_status', array(&$this,'post_ancestry_check'),10,3);
|
33 |
+
|
34 |
+
if(is_admin()) {
|
35 |
+
add_action('wp_ajax_cas-autocomplete-'.$this->id, array(&$this,'ajax_content_search'));
|
36 |
+
}
|
37 |
+
|
38 |
}
|
39 |
|
40 |
+
/**
|
41 |
+
* Get registered post types
|
42 |
+
* @return array
|
43 |
+
*/
|
44 |
+
protected function _get_content($args = array()) {
|
45 |
+
$args = wp_parse_args($args, array(
|
46 |
+
'include' => '',
|
47 |
+
'post_type' => 'post',
|
48 |
+
'orderby' => 'date',
|
49 |
+
'order' => 'DESC',
|
50 |
+
'paged' => 1
|
51 |
+
|
52 |
+
));
|
53 |
+
extract($args);
|
54 |
+
|
55 |
+
$exclude = array();
|
56 |
+
if ($post_type == 'page' && 'page' == get_option('show_on_front')) {
|
57 |
+
$exclude[] = get_option('page_on_front');
|
58 |
+
$exclude[] = get_option('page_for_posts');
|
59 |
+
}
|
60 |
+
|
61 |
+
//WP3.1 does not support (array) as post_status
|
62 |
+
$query = new WP_Query(array(
|
63 |
+
'posts_per_page' => 20,
|
64 |
+
'post_type' => $post_type,
|
65 |
+
'post_status' => 'publish,private,future',
|
66 |
+
'post__in' => $include,
|
67 |
+
'exclude' => $exclude,
|
68 |
+
'orderby' => $orderby,
|
69 |
+
'order' => $order,
|
70 |
+
'paged' => $paged,
|
71 |
+
'ignore_sticky_posts' => true
|
72 |
+
));
|
73 |
+
$this->pagination = array(
|
74 |
+
'paged' => $paged,
|
75 |
+
'per_page' => 20,
|
76 |
+
'total_pages' => $query->max_num_pages,
|
77 |
+
'total_items' => $query->found_posts
|
78 |
+
);
|
79 |
+
wp_reset_postdata();
|
80 |
+
return $query->posts;
|
81 |
+
}
|
82 |
+
|
83 |
+
protected function _get_post_types() {
|
84 |
+
if (empty($this->post_type_objects)) {
|
85 |
+
// List public post types
|
86 |
+
foreach (get_post_types(array('public' => true), 'objects') as $post_type) {
|
87 |
+
$this->post_type_objects[$post_type->name] = $post_type;
|
88 |
+
}
|
89 |
+
}
|
90 |
+
return $this->post_type_objects;
|
91 |
+
}
|
92 |
+
|
93 |
+
public function print_group_data($post_id) {
|
94 |
+
$ids = get_post_custom_values(ContentAwareSidebars::PREFIX . $this->id, $post_id);
|
95 |
|
96 |
+
if($ids) {
|
97 |
+
$lookup = array_flip((array)$ids);
|
98 |
+
foreach($this->_get_post_types() as $post_type) {
|
99 |
+
$posts =$this->_get_content(array('include' => $ids, 'posts_per_page' => -1, 'post_type' => $post_type->name));
|
100 |
+
if($posts || isset($lookup[$post_type->name]) || isset($lookup[ContentAwareSidebars::PREFIX.'sub_' . $post_type->name])) {
|
101 |
+
echo '<div class="cas-condition cas-condition-'.$this->id.'-'.$post_type->name.'">';
|
102 |
+
echo '<strong>'.$post_type->label.'</strong>';
|
103 |
+
echo '<ul>';
|
104 |
+
if(isset($lookup[ContentAwareSidebars::PREFIX.'sub_' . $post_type->name])) {
|
105 |
+
echo '<li><label><input type="checkbox" name="cas_condition[post_types][]" value="'.ContentAwareSidebars::PREFIX.'sub_' . $post_type->name . '" checked="checked" /> ' . __('Automatically select new children of a selected ancestor', ContentAwareSidebars::DOMAIN) . '</label></li>' . "\n";
|
106 |
+
}
|
107 |
+
if(isset($lookup[$post_type->name])) {
|
108 |
+
echo '<li><label><input type="checkbox" name="cas_condition[post_types][]" value="'.$post_type->name.'" checked="checked" /> '.$post_type->labels->all_items.'</label></li>' . "\n";
|
109 |
+
}
|
110 |
+
if($posts) {
|
111 |
+
echo $this->post_checklist($post_type, $posts, false, $ids);
|
112 |
+
}
|
113 |
+
echo '</ul>';
|
114 |
+
echo '</div>';
|
115 |
+
}
|
116 |
+
}
|
117 |
+
|
118 |
+
}
|
119 |
+
|
120 |
}
|
121 |
|
122 |
+
/**
|
123 |
+
* Determine if content is relevant
|
124 |
+
* @return boolean
|
125 |
+
*/
|
126 |
+
public function in_context() {
|
127 |
return ((is_singular() || is_home()) && !is_front_page()) || is_post_type_archive();
|
128 |
}
|
129 |
+
|
130 |
+
/**
|
131 |
+
* Get data from context
|
132 |
+
* @author Joachim Jensen <jv@intox.dk>
|
133 |
+
* @since 2.0
|
134 |
+
* @return array
|
135 |
+
*/
|
136 |
+
public function get_context_data() {
|
137 |
if(is_singular()) {
|
138 |
+
return array(
|
139 |
+
get_post_type(),
|
140 |
+
get_the_ID()
|
141 |
+
);
|
142 |
}
|
143 |
global $post_type;
|
|
|
144 |
// Home has post as default post type
|
145 |
if(!$post_type) $post_type = 'post';
|
146 |
+
return array(
|
147 |
+
$post_type
|
148 |
+
);
|
149 |
}
|
150 |
|
151 |
+
/**
|
152 |
+
* Meta box content
|
153 |
+
* @global object $post
|
154 |
+
* @global object $wpdb
|
155 |
+
* @return void
|
156 |
+
*/
|
157 |
public function meta_box_content() {
|
158 |
global $post;
|
159 |
|
160 |
foreach ($this->_get_post_types() as $post_type) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
|
162 |
+
echo '<li class="control-section accordion-section">';
|
163 |
+
echo '<h3 class="accordion-section-title" title="'.$post_type->label.'" tabindex="0">'.$post_type->label.'</h3>'."\n";
|
164 |
+
echo '<div class="accordion-section-content cas-rule-content" data-cas-module="'.$this->id.'" id="cas-' . $this->id . '-' . $post_type->name . '">'."\n";
|
165 |
+
|
166 |
+
$recent_posts = $this->_get_content(array('post_type' => $post_type->name));
|
167 |
+
|
168 |
+
|
|
|
169 |
if($post_type->hierarchical) {
|
170 |
+
echo '<ul><li>' . "\n";
|
171 |
+
echo '<label><input type="checkbox" name="cas_condition['.$this->id.'][]" value="'.ContentAwareSidebars::PREFIX.'sub_' . $post_type->name . '" /> ' . __('Automatically select new children of a selected ancestor', ContentAwareSidebars::DOMAIN) . '</label>' . "\n";
|
172 |
+
echo '</li></ul>' . "\n";
|
173 |
+
}
|
174 |
+
|
175 |
+
if($this->type_display) {
|
176 |
+
echo '<ul><li>' . "\n";
|
177 |
+
echo '<label><input class="cas-chk-all" type="checkbox" name="cas_condition['.$this->id.'][]" value="' . $post_type->name . '" /> ' . sprintf(__('Display with %s', ContentAwareSidebars::DOMAIN), $post_type->labels->all_items) . '</label>' . "\n";
|
178 |
+
echo '</li></ul>' . "\n";
|
179 |
}
|
|
|
|
|
|
|
|
|
180 |
|
181 |
+
if (!$recent_posts) {
|
182 |
echo '<p>' . __('No items.') . '</p>';
|
183 |
} else {
|
184 |
+
//No need to use two queries before knowing there are items
|
185 |
+
if(count($recent_posts) < 20) {
|
186 |
+
$posts = $recent_posts;
|
187 |
+
} else {
|
188 |
+
$posts = $this->_get_content(array('post_type' => $post_type->name, 'orderby' => 'title', 'order' => 'ASC'));
|
189 |
+
}
|
190 |
|
191 |
+
$tabs = array();
|
192 |
+
$tabs['most-recent'] = array(
|
193 |
+
'title' => __('Most Recent'),
|
194 |
+
'status' => true,
|
195 |
+
'content' => $this->post_checklist($post_type, $recent_posts)
|
196 |
+
);
|
197 |
+
$tabs['all'] = array(
|
198 |
+
'title' => __('View All'),
|
199 |
+
'status' => false,
|
200 |
+
'content' => $this->post_checklist($post_type, $posts, true)
|
201 |
+
);
|
202 |
+
if($this->searchable) {
|
203 |
+
$tabs['search'] = array(
|
204 |
+
'title' => __('Search'),
|
205 |
+
'status' => false,
|
206 |
+
'content' => '',
|
207 |
+
'content_before' => '<p><input class="cas-autocomplete-' . $this->id . ' cas-autocomplete quick-search" id="cas-autocomplete-' . $this->id . '-' . $post_type->name . '" type="search" name="cas-autocomplete" value="" placeholder="'.__('Search').'" autocomplete="off" /><span class="spinner"></span></p>'
|
208 |
+
);
|
209 |
+
}
|
210 |
+
|
211 |
+
echo $this->create_tab_panels($this->id . '-' . $post_type->name,$tabs);
|
212 |
+
|
213 |
}
|
214 |
|
215 |
+
echo '<p class="button-controls">';
|
216 |
+
|
217 |
+
echo '<span class="add-to-group"><input data-cas-condition="'.$this->id.'-'.$post_type->name.'" type="button" name="" id="cas-' . $this->id . '-' . $post_type->name . '-add" class="js-cas-condition-add button" value="'.__('Add to Group',ContentAwareSidebars::DOMAIN).'"></span>';
|
218 |
+
|
219 |
+
echo '</p>';
|
220 |
+
|
221 |
echo '</div>';
|
222 |
+
echo '</li>';
|
223 |
}
|
224 |
}
|
225 |
|
226 |
+
/**
|
227 |
+
* Show posts from a specific post type
|
228 |
+
* @param int $post_id
|
229 |
+
* @param object $post_type
|
230 |
+
* @param array $posts
|
231 |
+
* @param array $selected_ids
|
232 |
+
* @return void
|
233 |
+
*/
|
234 |
+
private function post_checklist($post_type, $posts, $pagination = false, $selected_ids = array()) {
|
235 |
+
|
236 |
+
$walker = new CAS_Walker_Checklist('post',array('parent' => 'post_parent', 'id' => 'ID'));
|
237 |
+
|
238 |
+
$args = array(
|
239 |
+
'post_type' => $post_type,
|
240 |
+
'selected_terms' => $selected_ids
|
241 |
+
);
|
242 |
+
|
243 |
+
$return = call_user_func_array(array(&$walker, 'walk'), array($posts, 0, $args));
|
244 |
+
|
245 |
+
if($pagination) {
|
246 |
+
$paginate = paginate_links(array(
|
247 |
+
'base' => admin_url( 'admin-ajax.php').'%_%',
|
248 |
+
'format' => '?paged=%#%',
|
249 |
+
'total' => $this->pagination['total_pages'],
|
250 |
+
'current' => $this->pagination['paged'],
|
251 |
+
'mid_size' => 2,
|
252 |
+
'end_size' => 1,
|
253 |
+
'prev_next' => true,
|
254 |
+
'prev_text' => 'prev',
|
255 |
+
'next_text' => 'next',
|
256 |
+
'add_args' => array('item_object'=>$post_type->name),
|
257 |
+
));
|
258 |
+
$return = $paginate.$return.$paginate;
|
259 |
+
}
|
260 |
+
|
261 |
+
return $return;
|
262 |
+
}
|
263 |
+
|
264 |
+
public function ajax_get_content() {
|
265 |
+
|
266 |
+
//validation
|
267 |
+
$paged = isset($_POST['paged']) ? $_POST['paged'] : 1;
|
268 |
+
$search = isset($_POST['search']) ? $_POST['search'] : false;
|
269 |
+
$post_type = get_post_type_object($_POST['item_object']);
|
270 |
+
|
271 |
+
$posts = $this->_get_content(array('post_type' => $_POST['item_object'], 'orderby' => 'title', 'order' => 'ASC', 'paged' => $paged));
|
272 |
+
$response = $this->post_checklist($post_type, $posts, true);
|
273 |
+
//$response = $_POST['paged'];
|
274 |
+
echo json_encode($response);
|
275 |
+
die();
|
276 |
+
}
|
277 |
+
|
278 |
+
/**
|
279 |
+
* Get posts with AJAX search
|
280 |
+
* @return void
|
281 |
+
*/
|
282 |
+
public function ajax_content_search() {
|
283 |
+
global $wpdb;
|
284 |
+
|
285 |
+
if(!isset($_POST['sidebar_id'])) {
|
286 |
+
die(-1);
|
287 |
+
}
|
288 |
+
|
289 |
+
// Verify request
|
290 |
+
check_ajax_referer(ContentAwareSidebars::SIDEBAR_PREFIX.$_POST['sidebar_id'],'nonce');
|
291 |
+
|
292 |
+
$suggestions = array();
|
293 |
+
if ( preg_match('/cas-autocomplete-'.$this->id.'-([a-zA-Z_-]*\b)/', $_REQUEST['type'], $matches) ) {
|
294 |
+
if(get_post_type_object( $matches[1] )) {
|
295 |
+
$exclude = array();
|
296 |
+
$exclude_query = "";
|
297 |
+
if ($matches[1] == 'page' && 'page' == get_option('show_on_front')) {
|
298 |
+
$exclude[] = get_option('page_on_front');
|
299 |
+
$exclude[] = get_option('page_for_posts');
|
300 |
+
$exclude_query = " AND ID NOT IN (".implode(",", $exclude).")";
|
301 |
+
}
|
302 |
+
|
303 |
+
//WordPress searches in title and content by default
|
304 |
+
//We want to search in title and slug
|
305 |
+
//Using unprepared (safe) exclude because WP is not good at parsing arrays
|
306 |
+
$posts = $wpdb->get_results($wpdb->prepare("
|
307 |
+
SELECT ID, post_title, post_type
|
308 |
+
FROM $wpdb->posts
|
309 |
+
WHERE post_type = '%s' AND (post_title LIKE '%s' OR post_name LIKE '%s') AND post_status IN('publish','private','future')
|
310 |
+
".$exclude_query."
|
311 |
+
ORDER BY post_title ASC
|
312 |
+
LIMIT 0,20
|
313 |
+
",
|
314 |
+
$matches[1],
|
315 |
+
"%".$_REQUEST['q']."%",
|
316 |
+
"%".$_REQUEST['q']."%"
|
317 |
+
));
|
318 |
+
|
319 |
+
// $posts = get_posts(array(
|
320 |
+
// 'posts_per_page' => 10,
|
321 |
+
// 'post_type' => $matches[1],
|
322 |
+
// 's' => $_REQUEST['term'],
|
323 |
+
// 'exclude' => $exclude,
|
324 |
+
// 'orderby' => 'title',
|
325 |
+
// 'order' => 'ASC',
|
326 |
+
// 'post_status' => 'publish,private,future'
|
327 |
+
// ));
|
328 |
+
|
329 |
+
foreach($posts as $post) {
|
330 |
+
$suggestions[] = array(
|
331 |
+
'label' => $post->post_title,
|
332 |
+
'value' => $post->ID,
|
333 |
+
'id' => $post->ID,
|
334 |
+
'module' => $this->id,
|
335 |
+
'name' => 'cas_condition['.$this->id.']',
|
336 |
+
'id2' => $this->id.'-'.$post->post_type,
|
337 |
+
'elem' => $post->post_type.'-'.$post->ID
|
338 |
+
);
|
339 |
+
}
|
340 |
}
|
341 |
}
|
342 |
+
|
343 |
+
echo json_encode($suggestions);
|
344 |
+
die();
|
345 |
}
|
346 |
+
|
347 |
|
348 |
/**
|
349 |
+
* Automatically select child of selected parent
|
350 |
+
* @param string $new_status
|
351 |
+
* @param string $old_status
|
352 |
+
* @param object $post
|
353 |
+
* @return void
|
354 |
*/
|
355 |
public function post_ancestry_check($new_status, $old_status, $post) {
|
356 |
|
357 |
+
if($post->post_type != ContentAwareSidebars::TYPE_SIDEBAR && $post->post_type != ContentAwareSidebars::TYPE_CONDITION_GROUP) {
|
358 |
|
359 |
$status = array('publish','private','future');
|
360 |
// Only new posts are relevant
|
364 |
if($post_type->hierarchical && $post_type->public && $post->parent != '0') {
|
365 |
|
366 |
// Get sidebars with post ancestor wanting to auto-select post
|
367 |
+
$query = new WP_Query(array(
|
368 |
+
'post_type' => ContentAwareSidebars::TYPE_CONDITION_GROUP,
|
369 |
'meta_query' => array(
|
370 |
'relation' => 'AND',
|
371 |
array(
|
372 |
+
'key' => ContentAwareSidebars::PREFIX . $this->id,
|
373 |
+
'value' => ContentAwareSidebars::PREFIX.'sub_' . $post->post_type,
|
374 |
'compare' => '='
|
375 |
),
|
376 |
array(
|
377 |
+
'key' => ContentAwareSidebars::PREFIX . $this->id,
|
378 |
'value' => get_ancestors($post->ID,$post->post_type),
|
379 |
'type' => 'numeric',
|
380 |
'compare' => 'IN'
|
381 |
)
|
382 |
)
|
383 |
));
|
384 |
+
if($query && $query->found_posts) {
|
385 |
+
foreach($query->posts as $sidebar) {
|
386 |
+
add_post_meta($sidebar->ID, ContentAwareSidebars::PREFIX.$this->id, $post->ID);
|
387 |
}
|
388 |
}
|
389 |
+
}
|
390 |
+
}
|
391 |
+
}
|
|
|
|
|
|
|
392 |
}
|
393 |
|
394 |
}
|
modules/qtranslate.php
CHANGED
@@ -6,43 +6,57 @@
|
|
6 |
|
7 |
/**
|
8 |
*
|
9 |
-
*
|
10 |
*
|
11 |
* Detects if current content is:
|
12 |
-
* a)
|
13 |
*
|
14 |
*/
|
15 |
class CASModule_qtranslate extends CASModule {
|
16 |
|
|
|
|
|
|
|
17 |
public function __construct() {
|
18 |
-
parent::__construct();
|
19 |
-
$this->id = 'language';
|
20 |
-
$this->name = __('Languages','content-aware-sidebars');
|
21 |
-
|
22 |
-
add_filter('manage_edit-sidebar_columns', array(&$this,'admin_column_headers'));
|
23 |
-
|
24 |
}
|
25 |
|
26 |
-
|
|
|
|
|
|
|
|
|
27 |
return true;
|
28 |
}
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
}
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
global $q_config;
|
41 |
$langs = array();
|
42 |
|
43 |
foreach(get_option('qtranslate_enabled_languages') as $lng) {
|
44 |
$langs[$lng] = $q_config['language_name'][$lng];
|
45 |
}
|
|
|
|
|
|
|
46 |
return $langs;
|
47 |
}
|
48 |
|
6 |
|
7 |
/**
|
8 |
*
|
9 |
+
* qTranslate Module
|
10 |
*
|
11 |
* Detects if current content is:
|
12 |
+
* a) in specific language
|
13 |
*
|
14 |
*/
|
15 |
class CASModule_qtranslate extends CASModule {
|
16 |
|
17 |
+
/**
|
18 |
+
* Constructor
|
19 |
+
*/
|
20 |
public function __construct() {
|
21 |
+
parent::__construct('language',__('Languages',ContentAwareSidebars::DOMAIN));
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
23 |
|
24 |
+
/**
|
25 |
+
* Determine if content is relevant
|
26 |
+
* @return boolean
|
27 |
+
*/
|
28 |
+
public function in_context() {
|
29 |
return true;
|
30 |
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Get data from context
|
34 |
+
* @author Joachim Jensen <jv@intox.dk>
|
35 |
+
* @since 2.0
|
36 |
+
* @return array
|
37 |
+
*/
|
38 |
+
public function get_context_data() {
|
39 |
+
return array(
|
40 |
+
$this->id,
|
41 |
+
qtrans_getLanguage()
|
42 |
+
);
|
43 |
}
|
44 |
|
45 |
+
/**
|
46 |
+
* Get languages
|
47 |
+
* @global array $q_config
|
48 |
+
* @return array
|
49 |
+
*/
|
50 |
+
protected function _get_content($args = array()) {
|
51 |
global $q_config;
|
52 |
$langs = array();
|
53 |
|
54 |
foreach(get_option('qtranslate_enabled_languages') as $lng) {
|
55 |
$langs[$lng] = $q_config['language_name'][$lng];
|
56 |
}
|
57 |
+
if(isset($args['include'])) {
|
58 |
+
$langs = array_intersect_key($langs,array_flip($args['include']));
|
59 |
+
}
|
60 |
return $langs;
|
61 |
}
|
62 |
|
modules/static.php
CHANGED
@@ -16,25 +16,45 @@
|
|
16 |
*/
|
17 |
class CASModule_static extends CASModule {
|
18 |
|
|
|
|
|
|
|
19 |
public function __construct() {
|
20 |
-
parent::__construct();
|
21 |
-
$this->
|
22 |
-
$this->name = __('Static Pages','content-aware-sidebars');
|
23 |
}
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
34 |
return is_front_page() || is_search() || is_404();
|
35 |
}
|
36 |
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
if(is_front_page()) {
|
39 |
$val = 'front-page';
|
40 |
} else if(is_search()) {
|
@@ -42,28 +62,9 @@ class CASModule_static extends CASModule {
|
|
42 |
} else {
|
43 |
$val = '404';
|
44 |
}
|
45 |
-
return
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
public function meta_box_content() {
|
50 |
-
global $post;
|
51 |
-
|
52 |
-
echo '<h4><a href="#">'.$this->name.'</a></h4>'."\n";
|
53 |
-
echo '<div class="cas-rule-content" id="cas-' . $this->id . '">';
|
54 |
-
$field = $this->id;
|
55 |
-
$meta = get_post_meta($post->ID, ContentAwareSidebars::prefix . $field, false);
|
56 |
-
$current = $meta != '' ? $meta : array();
|
57 |
-
?>
|
58 |
-
<ul class="list:<?php echo $field; ?> categorychecklist form-no-clear">
|
59 |
-
<?php
|
60 |
-
foreach ($this->_get_content() as $id => $name) {
|
61 |
-
echo '<li><label><input type="checkbox" name="' . $field . '[]" value="' . $id . '"' . (in_array($id, $current) ? ' checked="checked"' : '') . ' /> ' . $name . '</label></li>' . "\n";
|
62 |
-
}
|
63 |
-
?>
|
64 |
-
</ul>
|
65 |
-
<?php
|
66 |
-
echo '</div>';
|
67 |
}
|
68 |
|
69 |
}
|
16 |
*/
|
17 |
class CASModule_static extends CASModule {
|
18 |
|
19 |
+
/**
|
20 |
+
* Constructor
|
21 |
+
*/
|
22 |
public function __construct() {
|
23 |
+
parent::__construct('static',__('Static Pages',ContentAwareSidebars::DOMAIN));
|
24 |
+
$this->type_display = false;
|
|
|
25 |
}
|
26 |
|
27 |
+
/**
|
28 |
+
* Get static content
|
29 |
+
* @return array
|
30 |
+
*/
|
31 |
+
protected function _get_content($args = array()) {
|
32 |
+
$static = array(
|
33 |
+
'front-page' => __('Front Page', ContentAwareSidebars::DOMAIN),
|
34 |
+
'search' => __('Search Results', ContentAwareSidebars::DOMAIN),
|
35 |
+
'404' => __('404 Page', ContentAwareSidebars::DOMAIN)
|
36 |
+
);
|
37 |
+
if(isset($args['include'])) {
|
38 |
+
$static = array_intersect_key($static, array_flip($args['include']));
|
39 |
+
}
|
40 |
+
return $static;
|
41 |
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Determine if content is relevant
|
45 |
+
* @return boolean
|
46 |
+
*/
|
47 |
+
public function in_context() {
|
48 |
return is_front_page() || is_search() || is_404();
|
49 |
}
|
50 |
|
51 |
+
/**
|
52 |
+
* Get data from context
|
53 |
+
* @author Joachim Jensen <jv@intox.dk>
|
54 |
+
* @since 2.0
|
55 |
+
* @return array
|
56 |
+
*/
|
57 |
+
public function get_context_data() {
|
58 |
if(is_front_page()) {
|
59 |
$val = 'front-page';
|
60 |
} else if(is_search()) {
|
62 |
} else {
|
63 |
$val = '404';
|
64 |
}
|
65 |
+
return array(
|
66 |
+
$val
|
67 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
}
|
69 |
|
70 |
}
|
modules/taxonomy.php
CHANGED
@@ -15,49 +15,82 @@
|
|
15 |
*/
|
16 |
class CASModule_taxonomy extends CASModule {
|
17 |
|
|
|
|
|
|
|
|
|
18 |
private $taxonomy_objects;
|
|
|
|
|
|
|
|
|
|
|
19 |
private $post_terms;
|
20 |
|
|
|
|
|
|
|
21 |
public function __construct() {
|
22 |
-
parent::__construct();
|
23 |
-
$this->
|
24 |
-
$this->
|
25 |
-
|
26 |
add_action('created_term', array(&$this,'term_ancestry_check'),10,3);
|
|
|
|
|
|
|
|
|
27 |
|
28 |
}
|
29 |
|
30 |
-
|
|
|
|
|
|
|
|
|
31 |
if(is_singular()) {
|
32 |
// Check if content has any taxonomies supported
|
33 |
-
$taxonomies = get_object_taxonomies(get_post_type());
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
36 |
// Check if content has any actual taxonomy terms
|
37 |
-
|
38 |
-
|
39 |
-
}
|
40 |
}
|
41 |
-
|
42 |
-
return true;
|
43 |
}
|
44 |
-
return
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
47 |
public function db_join() {
|
48 |
global $wpdb;
|
49 |
|
50 |
$joins = "LEFT JOIN $wpdb->term_relationships term ON term.object_id = posts.ID ";
|
51 |
$joins .= "LEFT JOIN $wpdb->term_taxonomy taxonomy ON taxonomy.term_taxonomy_id = term.term_taxonomy_id ";
|
52 |
$joins .= "LEFT JOIN $wpdb->terms terms ON terms.term_id = taxonomy.term_id ";
|
53 |
-
$joins .= "LEFT JOIN $wpdb->postmeta taxonomies ON taxonomies.post_id = posts.ID AND taxonomies.meta_key = '".ContentAwareSidebars::
|
54 |
|
55 |
return $joins;
|
56 |
|
57 |
}
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
if(is_singular()) {
|
62 |
$terms = array();
|
63 |
|
@@ -79,84 +112,303 @@ class CASModule_taxonomy extends CASModule {
|
|
79 |
$term = get_queried_object();
|
80 |
|
81 |
return "((taxonomy.taxonomy = '".$term->taxonomy."' AND terms.slug = '".$term->slug."') OR taxonomies.meta_value = '".$term->taxonomy."')";
|
82 |
-
|
83 |
}
|
84 |
|
|
|
|
|
|
|
|
|
85 |
public function db_where2() {
|
86 |
return "terms.slug IS NOT NULL OR taxonomies.meta_value IS NOT NULL";
|
87 |
}
|
88 |
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
public function meta_box_content() {
|
94 |
global $post;
|
95 |
|
96 |
foreach ($this->_get_taxonomies() as $taxonomy) {
|
97 |
-
echo '<h4><a href="#">' . $taxonomy->label . '</a></h4>'."\n";
|
98 |
-
echo '<div class="cas-rule-content" id="cas-' . $this->id . '-' . $taxonomy->name . '">';
|
99 |
|
100 |
-
|
101 |
-
|
|
|
102 |
|
103 |
-
$terms =
|
|
|
104 |
|
105 |
if($taxonomy->hierarchical) {
|
106 |
-
echo '<
|
107 |
-
echo '<label><input type="checkbox" name="taxonomies[]" value="
|
108 |
-
echo '</
|
109 |
}
|
110 |
-
echo '<
|
111 |
-
echo '<label><input class="cas-chk-all" type="checkbox" name="taxonomies[]" value="' . $taxonomy->name . '"
|
112 |
-
echo '</
|
113 |
-
|
114 |
-
if (!$terms
|
115 |
echo '<p>' . __('No items.') . '</p>';
|
116 |
} else {
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
echo '</div>'."\n";
|
|
|
140 |
}
|
141 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
}
|
149 |
}
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
}
|
152 |
|
153 |
/**
|
154 |
-
*
|
155 |
* Auto-select children of selected ancestor
|
156 |
-
*
|
157 |
-
* @param
|
158 |
-
* @param
|
159 |
-
* @
|
160 |
*/
|
161 |
public function term_ancestry_check($term_id, $tt_id, $taxonomy) {
|
162 |
|
@@ -165,12 +417,12 @@ class CASModule_taxonomy extends CASModule {
|
|
165 |
|
166 |
if($term->parent != '0') {
|
167 |
// Get sidebars with term ancestor wanting to auto-select term
|
168 |
-
$
|
169 |
-
'post_type' =>
|
170 |
'meta_query' => array(
|
171 |
array(
|
172 |
-
'key' => ContentAwareSidebars::
|
173 |
-
'value' => '
|
174 |
'compare' => '='
|
175 |
)
|
176 |
),
|
@@ -183,8 +435,8 @@ class CASModule_taxonomy extends CASModule {
|
|
183 |
)
|
184 |
)
|
185 |
));
|
186 |
-
if($
|
187 |
-
foreach($posts as $post) {
|
188 |
wp_set_post_terms($post->ID, $term_id, $taxonomy, true);
|
189 |
}
|
190 |
}
|
15 |
*/
|
16 |
class CASModule_taxonomy extends CASModule {
|
17 |
|
18 |
+
/**
|
19 |
+
* Registered public taxonomies
|
20 |
+
* @var array
|
21 |
+
*/
|
22 |
private $taxonomy_objects;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Terms of a given singular
|
26 |
+
* @var array
|
27 |
+
*/
|
28 |
private $post_terms;
|
29 |
|
30 |
+
/**
|
31 |
+
* Constructor
|
32 |
+
*/
|
33 |
public function __construct() {
|
34 |
+
parent::__construct('taxonomies',__('Taxonomies',ContentAwareSidebars::DOMAIN),true);
|
35 |
+
$this->type_display = true;
|
36 |
+
$this->searchable = true;
|
37 |
+
|
38 |
add_action('created_term', array(&$this,'term_ancestry_check'),10,3);
|
39 |
+
|
40 |
+
if(is_admin()) {
|
41 |
+
add_action('wp_ajax_cas-autocomplete-'.$this->id, array(&$this,'ajax_content_search'));
|
42 |
+
}
|
43 |
|
44 |
}
|
45 |
|
46 |
+
/**
|
47 |
+
* Determine if content is relevant
|
48 |
+
* @return boolean
|
49 |
+
*/
|
50 |
+
public function in_context() {
|
51 |
if(is_singular()) {
|
52 |
// Check if content has any taxonomies supported
|
53 |
+
$taxonomies = get_object_taxonomies(get_post_type(),'object');
|
54 |
+
//Only want public taxonomies
|
55 |
+
$taxonomy_names = array();
|
56 |
+
foreach($taxonomies as $taxonomy) {
|
57 |
+
if($taxonomy->public)
|
58 |
+
$taxonomy_names[] = $taxonomy->name;
|
59 |
+
}
|
60 |
+
if(!empty($taxonomy_names)) {
|
61 |
// Check if content has any actual taxonomy terms
|
62 |
+
$this->post_terms = wp_get_object_terms(get_the_ID(),$taxonomy_names);
|
63 |
+
return !empty($this->post_terms);
|
|
|
64 |
}
|
65 |
+
return false;
|
|
|
66 |
}
|
67 |
+
return is_tax() || is_category() || is_tag();
|
68 |
}
|
69 |
|
70 |
+
/**
|
71 |
+
* Query join
|
72 |
+
* @return string
|
73 |
+
*/
|
74 |
public function db_join() {
|
75 |
global $wpdb;
|
76 |
|
77 |
$joins = "LEFT JOIN $wpdb->term_relationships term ON term.object_id = posts.ID ";
|
78 |
$joins .= "LEFT JOIN $wpdb->term_taxonomy taxonomy ON taxonomy.term_taxonomy_id = term.term_taxonomy_id ";
|
79 |
$joins .= "LEFT JOIN $wpdb->terms terms ON terms.term_id = taxonomy.term_id ";
|
80 |
+
$joins .= "LEFT JOIN $wpdb->postmeta taxonomies ON taxonomies.post_id = posts.ID AND taxonomies.meta_key = '".ContentAwareSidebars::PREFIX."taxonomies'";
|
81 |
|
82 |
return $joins;
|
83 |
|
84 |
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Get data from context
|
88 |
+
* @author Joachim Jensen <jv@intox.dk>
|
89 |
+
* @since 2.0
|
90 |
+
* @return array
|
91 |
+
*/
|
92 |
+
public function get_context_data() {
|
93 |
+
|
94 |
if(is_singular()) {
|
95 |
$terms = array();
|
96 |
|
112 |
$term = get_queried_object();
|
113 |
|
114 |
return "((taxonomy.taxonomy = '".$term->taxonomy."' AND terms.slug = '".$term->slug."') OR taxonomies.meta_value = '".$term->taxonomy."')";
|
|
|
115 |
}
|
116 |
|
117 |
+
/**
|
118 |
+
* Query where2
|
119 |
+
* @return string
|
120 |
+
*/
|
121 |
public function db_where2() {
|
122 |
return "terms.slug IS NOT NULL OR taxonomies.meta_value IS NOT NULL";
|
123 |
}
|
124 |
|
125 |
+
/**
|
126 |
+
* Get registered taxonomies
|
127 |
+
* @return array
|
128 |
+
*/
|
129 |
+
protected function _get_content($args = array()) {
|
130 |
+
$args = wp_parse_args($args, array(
|
131 |
+
'include' => '',
|
132 |
+
'taxonomy' => 'category',
|
133 |
+
'number' => 20,
|
134 |
+
'orderby' => 'name',
|
135 |
+
'order' => 'ASC',
|
136 |
+
'offset' => 0
|
137 |
+
));
|
138 |
+
extract($args);
|
139 |
+
|
140 |
+
$terms = get_terms($taxonomy, array(
|
141 |
+
'number' => $number,
|
142 |
+
'hide_empty' => false,
|
143 |
+
'include' => $include,
|
144 |
+
'offset' => ($offset*$number),
|
145 |
+
'orderby' => $orderby,
|
146 |
+
'order' => $order
|
147 |
+
));
|
148 |
+
$total_items = wp_count_terms($taxonomy,array('hide_empty'=>false));
|
149 |
+
$per_page = $number;
|
150 |
+
$this->pagination = array(
|
151 |
+
'paged' => $offset+1,
|
152 |
+
'per_page' => $per_page,
|
153 |
+
'total_pages' => ceil($total_items/$per_page),
|
154 |
+
'total_items' => $total_items
|
155 |
+
);
|
156 |
+
|
157 |
|
158 |
+
return $terms;
|
159 |
+
}
|
160 |
+
|
161 |
+
protected function _get_taxonomies() {
|
162 |
+
// List public taxonomies
|
163 |
+
if (empty($this->taxonomy_objects)) {
|
164 |
+
foreach (get_taxonomies(array('public' => true), 'objects') as $tax) {
|
165 |
+
$this->taxonomy_objects[$tax->name] = $tax;
|
166 |
+
}
|
167 |
+
}
|
168 |
+
return $this->taxonomy_objects;
|
169 |
}
|
170 |
|
171 |
+
public function print_group_data($post_id) {
|
172 |
+
$ids = array_flip((array)get_post_custom_values(ContentAwareSidebars::PREFIX . $this->id, $post_id));
|
173 |
+
|
174 |
+
foreach($this->_get_taxonomies() as $taxonomy) {
|
175 |
+
|
176 |
+
$posts = wp_get_object_terms( $post_id, $taxonomy->name);
|
177 |
+
if($posts || isset($ids[$taxonomy->name]) || isset($ids[ContentAwareSidebars::PREFIX.'sub_' . $taxonomy->name])) {
|
178 |
+
echo '<div class="cas-condition cas-condition-'.$this->id.'-'.$taxonomy->name.'">';
|
179 |
+
echo '<strong>'.$taxonomy->label.'</strong>';
|
180 |
+
echo '<ul>';
|
181 |
+
if(isset($ids[ContentAwareSidebars::PREFIX.'sub_' . $taxonomy->name])) {
|
182 |
+
echo '<li class=""><label><input type="checkbox" name="cas_condition[taxonomies][]" value="'.ContentAwareSidebars::PREFIX.'sub_' . $taxonomy->name . '" checked="checked" /> ' . __('Automatically select new children of a selected ancestor', ContentAwareSidebars::DOMAIN) . '</label></li>' . "\n";
|
183 |
+
}
|
184 |
+
if(isset($ids[$taxonomy->name])) {
|
185 |
+
echo '<li class=""><label><input type="checkbox" name="cas_condition[taxonomies][]" value="'.$taxonomy->name.'" checked="checked" /> '.$taxonomy->labels->all_items.'</label></li>' . "\n";
|
186 |
+
}
|
187 |
+
if($posts) {
|
188 |
+
$selected = wp_get_object_terms($post_id, $taxonomy->name, array('fields' => ($taxonomy->hierarchical ? 'ids' : 'slugs')));
|
189 |
+
echo $this->term_checklist($taxonomy, $posts, $selected);
|
190 |
+
}
|
191 |
+
echo '</ul>';
|
192 |
+
echo '</div>';
|
193 |
+
}
|
194 |
+
}
|
195 |
+
|
196 |
+
}
|
197 |
+
|
198 |
+
/**
|
199 |
+
* Meta box content
|
200 |
+
* @global object $post
|
201 |
+
* @return void
|
202 |
+
*/
|
203 |
public function meta_box_content() {
|
204 |
global $post;
|
205 |
|
206 |
foreach ($this->_get_taxonomies() as $taxonomy) {
|
|
|
|
|
207 |
|
208 |
+
echo '<li class="control-section accordion-section">';
|
209 |
+
echo '<h3 class="accordion-section-title" title="'.$taxonomy->label.'" tabindex="0">'.$taxonomy->label.'</h3>'."\n";
|
210 |
+
echo '<div class="accordion-section-content cas-rule-content" data-cas-module="'.$this->id.'" id="cas-' . $this->id . '-' . $taxonomy->name . '">';
|
211 |
|
212 |
+
$terms = $this->_get_content(array('taxonomy' => $taxonomy->name));
|
213 |
+
|
214 |
|
215 |
if($taxonomy->hierarchical) {
|
216 |
+
echo '<ul><li>' . "\n";
|
217 |
+
echo '<label><input type="checkbox" name="cas_condition[taxonomies][]" value="'.ContentAwareSidebars::PREFIX.'sub_' . $taxonomy->name . '" /> ' . __('Automatically select new children of a selected ancestor', ContentAwareSidebars::DOMAIN) . '</label>' . "\n";
|
218 |
+
echo '</li></ul>' . "\n";
|
219 |
}
|
220 |
+
echo '<ul><li>' . "\n";
|
221 |
+
echo '<label><input class="cas-chk-all" type="checkbox" name="cas_condition[taxonomies][]" value="' . $taxonomy->name . '" /> ' . sprintf(__('Display with %s', ContentAwareSidebars::DOMAIN), $taxonomy->labels->all_items) . '</label>' . "\n";
|
222 |
+
echo '</li></ul>' . "\n";
|
223 |
+
|
224 |
+
if (!$terms) {
|
225 |
echo '<p>' . __('No items.') . '</p>';
|
226 |
} else {
|
227 |
+
|
228 |
+
//No need to use two queries before knowing there are items
|
229 |
+
if(count($terms) < 20) {
|
230 |
+
$popular_terms = $terms;
|
231 |
+
} else {
|
232 |
+
$popular_terms = $this->_get_content(array('taxonomy' => $taxonomy->name, 'orderby' => 'count', 'order' => 'DESC'));
|
233 |
+
}
|
234 |
+
|
235 |
+
|
236 |
+
$tabs = array();
|
237 |
+
$tabs['popular'] = array(
|
238 |
+
'title' => __('Most Used'),
|
239 |
+
'status' => true,
|
240 |
+
'content' => $this->term_checklist($taxonomy, $popular_terms, array(), false)
|
241 |
+
);
|
242 |
+
$tabs['all'] = array(
|
243 |
+
'title' => __('View All'),
|
244 |
+
'status' => false,
|
245 |
+
'content' => $this->term_checklist($taxonomy, $terms, array(), true)
|
246 |
+
);
|
247 |
+
if($this->searchable) {
|
248 |
+
$tabs['search'] = array(
|
249 |
+
'title' => __('Search'),
|
250 |
+
'status' => false,
|
251 |
+
'content' => '',
|
252 |
+
'content_before' => '<p><input class="cas-autocomplete-' . $this->id . ' cas-autocomplete quick-search" id="cas-autocomplete-' . $this->id . '-' . $taxonomy->name . '" type="search" name="cas-autocomplete" value="" placeholder="'.__('Search').'" autocomplete="off" /><span class="spinner"></span></p>'
|
253 |
+
);
|
254 |
+
}
|
255 |
+
|
256 |
+
echo $this->create_tab_panels($this->id . '-' . $taxonomy->name,$tabs);
|
257 |
+
|
258 |
}
|
259 |
+
|
260 |
+
echo '<p class="button-controls">';
|
261 |
+
|
262 |
+
echo '<span class="add-to-group"><input data-cas-condition="'.$this->id.'-'.$taxonomy->name.'" type="button" name="" id="cas-' . $this->id . '-' . $taxonomy->name . '-add" class="js-cas-condition-add button" value="'.__('Add to Group',ContentAwareSidebars::DOMAIN).'"></span>';
|
263 |
+
|
264 |
+
echo '</p>';
|
265 |
+
|
266 |
echo '</div>'."\n";
|
267 |
+
echo '</li>';
|
268 |
}
|
269 |
}
|
270 |
+
|
271 |
+
/**
|
272 |
+
* Show terms from a specific taxonomy
|
273 |
+
* @param int $post_id
|
274 |
+
* @param object $taxonomy
|
275 |
+
* @param array $terms
|
276 |
+
* @param array $selected_ids
|
277 |
+
* @return void
|
278 |
+
*/
|
279 |
+
private function term_checklist($taxonomy, $terms, $selected_terms = array(), $pagination = false) {
|
280 |
+
|
281 |
+
$walker = new CAS_Walker_Checklist('category',array('parent' => 'parent', 'id' => 'term_id'));
|
282 |
+
|
283 |
+
$args = array(
|
284 |
+
'taxonomy' => $taxonomy,
|
285 |
+
'selected_terms' => $selected_terms
|
286 |
+
);
|
287 |
+
|
288 |
+
$return = call_user_func_array(array(&$walker, 'walk'), array($terms, 0, $args));
|
289 |
+
|
290 |
+
if($pagination) {
|
291 |
+
$paginate = paginate_links(array(
|
292 |
+
'base' => admin_url( 'admin-ajax.php').'%_%',
|
293 |
+
'format' => '?paged=%#%',
|
294 |
+
'total' => $this->pagination['total_pages'],
|
295 |
+
'current' => $this->pagination['paged'],
|
296 |
+
'mid_size' => 2,
|
297 |
+
'end_size' => 1,
|
298 |
+
'prev_next' => true,
|
299 |
+
'prev_text' => 'prev',
|
300 |
+
'next_text' => 'next',
|
301 |
+
'add_args' => array('item_object'=>$taxonomy->name),
|
302 |
+
));
|
303 |
+
$return = $paginate.$return.$paginate;
|
304 |
+
}
|
305 |
+
|
306 |
+
return $return;
|
307 |
+
|
308 |
+
}
|
309 |
+
|
310 |
+
public function ajax_get_content() {
|
311 |
+
|
312 |
+
//validation
|
313 |
+
$paged = (isset($_POST['paged']) ? $_POST['paged'] : 1)-1;
|
314 |
+
$search = isset($_POST['search']) ? $_POST['search'] : false;
|
315 |
+
$taxonomy = get_taxonomy($_POST['item_object']);
|
316 |
+
|
317 |
+
$posts = $this->_get_content(array('taxonomy' => $_POST['item_object'], 'orderby' => 'name', 'order' => 'ASC', 'offset' => $paged));
|
318 |
+
$response = $this->term_checklist($taxonomy, $posts, array(), true);
|
319 |
+
//$response = $_POST['paged'];
|
320 |
+
echo json_encode($response);
|
321 |
+
die();
|
322 |
+
}
|
323 |
+
|
324 |
+
/**
|
325 |
+
* Get terms with AJAX search
|
326 |
+
* @return void
|
327 |
+
*/
|
328 |
+
public function ajax_content_search() {
|
329 |
+
|
330 |
+
if(!isset($_POST['sidebar_id'])) {
|
331 |
+
die(-1);
|
332 |
+
}
|
333 |
+
|
334 |
+
// Verify request
|
335 |
+
check_ajax_referer(ContentAwareSidebars::SIDEBAR_PREFIX.$_POST['sidebar_id'],'nonce');
|
336 |
|
337 |
+
$suggestions = array();
|
338 |
+
if ( preg_match('/cas-autocomplete-'.$this->id.'-([a-zA-Z_-]*\b)/', $_REQUEST['type'], $matches) ) {
|
339 |
+
if(($taxonomy = get_taxonomy( $matches[1] ))) {
|
340 |
+
$terms = get_terms($taxonomy->name, array(
|
341 |
+
'number' => 10,
|
342 |
+
'hide_empty' => false,
|
343 |
+
'search' => $_REQUEST['q']
|
344 |
+
));
|
345 |
+
$name = 'cas_condition[tax_input]['.$matches[1].']';
|
346 |
+
$value = ($taxonomy->hierarchical ? 'term_id' : 'slug');
|
347 |
+
foreach($terms as $term) {
|
348 |
+
$suggestions[] = array(
|
349 |
+
'label' => $term->name,
|
350 |
+
'value' => $term->$value,
|
351 |
+
'id' => $term->$value,
|
352 |
+
'module' => $this->id,
|
353 |
+
'name' => $name,
|
354 |
+
'id2' => $this->id.'-'.$term->taxonomy,
|
355 |
+
'elem' => $term->taxonomy.'-'.$term->term_id
|
356 |
+
);
|
357 |
+
}
|
358 |
}
|
359 |
}
|
360 |
+
|
361 |
+
echo json_encode($suggestions);
|
362 |
+
die();
|
363 |
+
}
|
364 |
+
|
365 |
+
public function save_data($post_id) {
|
366 |
+
parent::save_data($post_id);
|
367 |
+
|
368 |
+
$tax_input = isset($_POST['cas_condition']['tax_input']) ? $_POST['cas_condition']['tax_input'] : array();
|
369 |
+
|
370 |
+
//Save terms
|
371 |
+
//Loop through each public taxonomy
|
372 |
+
foreach($this->_get_taxonomies() as $taxonomy) {
|
373 |
+
|
374 |
+
if (current_user_can($taxonomy->cap->assign_terms) ) {
|
375 |
+
|
376 |
+
//If no terms, maybe delete old ones
|
377 |
+
if(!isset($tax_input[$taxonomy->name])) {
|
378 |
+
$terms = null;
|
379 |
+
} else {
|
380 |
+
$terms = $tax_input[$taxonomy->name];
|
381 |
+
|
382 |
+
//Hierarchical taxonomies use ids instead of slugs
|
383 |
+
//see http://codex.wordpress.org/Function_Reference/wp_set_post_terms
|
384 |
+
if($taxonomy->hierarchical) {
|
385 |
+
$terms = array_unique(array_map('intval', $terms));
|
386 |
+
}
|
387 |
+
}
|
388 |
+
|
389 |
+
wp_set_object_terms( $post_id, $terms, $taxonomy->name );
|
390 |
+
}
|
391 |
+
|
392 |
+
}
|
393 |
+
|
394 |
+
}
|
395 |
+
|
396 |
+
/**
|
397 |
+
* Register taxonomies to sidebar post type
|
398 |
+
* @return void
|
399 |
+
*/
|
400 |
+
public function add_taxonomies_to_sidebar() {
|
401 |
+
foreach($this->_get_taxonomies() as $tax) {
|
402 |
+
register_taxonomy_for_object_type( $tax->name, ContentAwareSidebars::TYPE_SIDEBAR );
|
403 |
+
}
|
404 |
}
|
405 |
|
406 |
/**
|
|
|
407 |
* Auto-select children of selected ancestor
|
408 |
+
* @param int $term_id
|
409 |
+
* @param int $tt_id
|
410 |
+
* @param string $taxonomy
|
411 |
+
* @return void
|
412 |
*/
|
413 |
public function term_ancestry_check($term_id, $tt_id, $taxonomy) {
|
414 |
|
417 |
|
418 |
if($term->parent != '0') {
|
419 |
// Get sidebars with term ancestor wanting to auto-select term
|
420 |
+
$query = new WP_Query(array(
|
421 |
+
'post_type' => ContentAwareSidebars::TYPE_CONDITION_GROUP,
|
422 |
'meta_query' => array(
|
423 |
array(
|
424 |
+
'key' => ContentAwareSidebars::PREFIX . $this->id,
|
425 |
+
'value' => ContentAwareSidebars::PREFIX.'sub_' . $taxonomy,
|
426 |
'compare' => '='
|
427 |
)
|
428 |
),
|
435 |
)
|
436 |
)
|
437 |
));
|
438 |
+
if($query && $query->found_posts) {
|
439 |
+
foreach($query->posts as $post) {
|
440 |
wp_set_post_terms($post->ID, $term_id, $taxonomy, true);
|
441 |
}
|
442 |
}
|
modules/transposh.php
CHANGED
@@ -14,28 +14,49 @@
|
|
14 |
*/
|
15 |
class CASModule_transposh extends CASModule {
|
16 |
|
|
|
|
|
|
|
17 |
public function __construct() {
|
18 |
-
parent::__construct();
|
19 |
-
$this->id = 'language';
|
20 |
-
$this->name = __('Languages','content-aware-sidebars');
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
24 |
return true;
|
25 |
}
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
34 |
global $my_transposh_plugin;
|
35 |
$langs = array();
|
36 |
-
|
|
|
37 |
$langs[$lng] = transposh_consts::get_language_orig_name($lng);
|
38 |
}
|
|
|
|
|
|
|
39 |
return $langs;
|
40 |
}
|
41 |
|
14 |
*/
|
15 |
class CASModule_transposh extends CASModule {
|
16 |
|
17 |
+
/**
|
18 |
+
* Constructor
|
19 |
+
*/
|
20 |
public function __construct() {
|
21 |
+
parent::__construct('language',__('Languages',ContentAwareSidebars::DOMAIN));
|
|
|
|
|
22 |
}
|
23 |
|
24 |
+
/**
|
25 |
+
* Determine if content is relevant
|
26 |
+
* @return boolean
|
27 |
+
*/
|
28 |
+
public function in_context() {
|
29 |
return true;
|
30 |
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Get data from context
|
34 |
+
* @author Joachim Jensen <jv@intox.dk>
|
35 |
+
* @since 2.0
|
36 |
+
* @return array
|
37 |
+
*/
|
38 |
+
public function get_context_data() {
|
39 |
+
return array(
|
40 |
+
$this->id,
|
41 |
+
transposh_get_current_language()
|
42 |
+
);
|
43 |
}
|
44 |
|
45 |
+
/**
|
46 |
+
* Get languages
|
47 |
+
* @global object $my_transposh_plugin
|
48 |
+
* @return array
|
49 |
+
*/
|
50 |
+
protected function _get_content($args = array()) {
|
51 |
global $my_transposh_plugin;
|
52 |
$langs = array();
|
53 |
+
|
54 |
+
foreach(explode(',',$my_transposh_plugin->options->viewable_languages) as $lng) {
|
55 |
$langs[$lng] = transposh_consts::get_language_orig_name($lng);
|
56 |
}
|
57 |
+
if(isset($args['include'])) {
|
58 |
+
$langs = array_intersect_key($langs,array_flip($args['include']));
|
59 |
+
}
|
60 |
return $langs;
|
61 |
}
|
62 |
|
modules/wpml.php
CHANGED
@@ -14,25 +14,47 @@
|
|
14 |
*/
|
15 |
class CASModule_wpml extends CASModule {
|
16 |
|
|
|
|
|
|
|
17 |
public function __construct() {
|
18 |
-
parent::__construct();
|
19 |
-
$this->id = 'language';
|
20 |
-
$this->name = __('Languages','content-aware-sidebars');
|
21 |
}
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
24 |
return true;
|
25 |
}
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
32 |
$langs = array();
|
33 |
-
|
34 |
foreach(icl_get_languages('skip_missing=N') as $lng) {
|
35 |
$langs[$lng['language_code']] = $lng['native_name'];
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
return $langs;
|
38 |
}
|
14 |
*/
|
15 |
class CASModule_wpml extends CASModule {
|
16 |
|
17 |
+
/**
|
18 |
+
* Constructor
|
19 |
+
*/
|
20 |
public function __construct() {
|
21 |
+
parent::__construct('language',__('Languages',ContentAwareSidebars::DOMAIN));
|
|
|
|
|
22 |
}
|
23 |
|
24 |
+
/**
|
25 |
+
* Determine if content is relevant
|
26 |
+
* @return boolean
|
27 |
+
*/
|
28 |
+
public function in_context() {
|
29 |
return true;
|
30 |
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Get data from context
|
34 |
+
* @author Joachim Jensen <jv@intox.dk>
|
35 |
+
* @since 2.0
|
36 |
+
* @return array
|
37 |
+
*/
|
38 |
+
public function get_context_data() {
|
39 |
+
return array(
|
40 |
+
$this->id,
|
41 |
+
ICL_LANGUAGE_CODE
|
42 |
+
);
|
43 |
}
|
44 |
|
45 |
+
/**
|
46 |
+
* Get languages
|
47 |
+
* @return array
|
48 |
+
*/
|
49 |
+
protected function _get_content($args = array()) {
|
50 |
$langs = array();
|
51 |
+
|
52 |
foreach(icl_get_languages('skip_missing=N') as $lng) {
|
53 |
$langs[$lng['language_code']] = $lng['native_name'];
|
54 |
+
}
|
55 |
+
|
56 |
+
if(isset($args['include'])) {
|
57 |
+
$langs = array_intersect_key($langs,array_flip($args['include']));
|
58 |
}
|
59 |
return $langs;
|
60 |
}
|
readme.txt
CHANGED
@@ -1,42 +1,54 @@
|
|
1 |
-
=== Plugin Name ===
|
2 |
Contributors: intoxstudio
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KPZHE6A72LEN4&lc=US&item_name=WordPress%20Plugin%3a%20Content%20Aware%20Sidebars¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
-
Tags: sidebar, widget area, content aware, context aware, seo, dynamic, flexible, modular, bbpress, buddypress, qtranslate, polylang, transposh, wpml
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1
|
8 |
-
License:
|
9 |
|
10 |
Create and display sidebars according to the content being viewed.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
Manage an infinite number of sidebars.
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
= Features =
|
18 |
|
19 |
* Easy-to-use sidebar manager
|
20 |
* Display sidebars with all or specific:
|
21 |
-
* Singulars - e.g.
|
22 |
* (Custom) Post Types
|
23 |
-
* Singulars with given (custom) taxonomies or taxonomy terms
|
24 |
* Singulars by a given author
|
25 |
* Page Templates
|
|
|
26 |
* Post Type Archives
|
27 |
* Author Archives
|
28 |
* (Custom) Taxonomy Archives or Taxonomy Term Archives
|
29 |
-
* Search
|
30 |
* 404 Page
|
31 |
* Front Page
|
32 |
* bbPress User Profiles
|
33 |
* BuddyPress Member Pages
|
34 |
-
* Languages (qTranslate, Polylang, Transposh, WPML)
|
35 |
* **Any combination of the above**
|
36 |
-
*
|
37 |
* Create complex content with nested sidebars
|
38 |
* Private sidebars only for members
|
39 |
* Schedule sidebars for later publishing
|
|
|
40 |
|
41 |
= Builtin Plugin Support =
|
42 |
|
@@ -44,17 +56,25 @@ No extra database tables or table columns will be added.
|
|
44 |
* BuddyPress (v1.6.2+)
|
45 |
* qTranslate (v2.5.29+)
|
46 |
* Polylang (v0.9.6+)
|
47 |
-
* Transposh Translation Filter (v0.
|
48 |
-
* WPML Multilingual Blog/CMS (v2.4.3+)
|
49 |
|
50 |
= Translations =
|
51 |
|
|
|
52 |
* Danish (da_DK): [Joachim Jensen](http://www.intox.dk/)
|
|
|
|
|
53 |
* Italian (it_IT): [Luciano Del Fico](http://www.myweb2.it/)
|
|
|
54 |
* Lithuanian (lt_LT): [Vincent G](http://host1free.com/)
|
|
|
|
|
|
|
|
|
55 |
|
56 |
If you have translated the plugin into your language or updated an existing translation, please send the .po and .mo files to jv[at]intox.dk.
|
57 |
-
Download the latest [.
|
58 |
|
59 |
= Contact =
|
60 |
|
@@ -69,19 +89,41 @@ www.intox.dk
|
|
69 |
|
70 |
== Frequently Asked Questions ==
|
71 |
|
72 |
-
If you have any questions not answered here, head to the [Support Forum](http://wordpress.org/tags/content-aware-sidebars?forum_id=10)
|
73 |
|
74 |
= Will Content Aware Sidebars work with my theme? =
|
75 |
|
76 |
-
Yes.
|
|
|
|
|
77 |
If not, it is still possible to create sidebars and then use the function `display_ca_sidebar()` in the theme.
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= My new sidebar is not displayed where I expect it to? =
|
80 |
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
83 |
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
= How do I use display_ca_sidebar( $args )? =
|
87 |
|
@@ -93,20 +135,145 @@ This function is optional and handles all sidebars that are set to be handled ma
|
|
93 |
'after' => '</ul></div>'
|
94 |
);`
|
95 |
|
96 |
-
|
97 |
If ID's of specific sidebars are passed to `include`, the function will only handle these. The visuals of the content aware sidebars can be modified by passing `before` and `after`.
|
98 |
The function accepts URL-style strings as parameters too, like the standard WordPress Template Tags.
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
== Screenshots ==
|
101 |
|
102 |
-
1. Add a new Content Aware Sidebar to be displayed with all Posts that contains Very Categorized. It replaces `
|
103 |
2. Simple overview of all created Content Aware Sidebars
|
104 |
3. Add widgets to the newly added sidebar
|
105 |
-
4. Viewing front page of site. `
|
106 |
-
5. Viewing a Post that contains Very Categorized. `Very Categorized Posts` sidebar has replaced `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
= 1.2 =
|
111 |
|
112 |
* Added: polylang support
|
@@ -254,26 +421,3 @@ The function accepts URL-style strings as parameters too, like the standard Word
|
|
254 |
= 0.1 =
|
255 |
|
256 |
* First stable release
|
257 |
-
|
258 |
-
== Upgrade Notice ==
|
259 |
-
|
260 |
-
= 1.1 =
|
261 |
-
|
262 |
-
* Content Aware Sidebar data in your database will be updated automatically. Remember to backup this data before updating the plugin.
|
263 |
-
|
264 |
-
= 0.8 =
|
265 |
-
|
266 |
-
* Content Aware Sidebar data in your database will be updated automatically. Remember to backup this data before updating the plugin.
|
267 |
-
|
268 |
-
= 0.5 =
|
269 |
-
|
270 |
-
* Note that the plugin now requires at least WordPress 3.1 because of post type archives.
|
271 |
-
|
272 |
-
= 0.4 =
|
273 |
-
|
274 |
-
* All current custom sidebars have to be updated after plugin upgrade due to the new archive rules
|
275 |
-
|
276 |
-
= 0.1 =
|
277 |
-
|
278 |
-
* Hello World
|
279 |
-
|
1 |
+
=== Plugin Name ===
|
2 |
Contributors: intoxstudio
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KPZHE6A72LEN4&lc=US&item_name=WordPress%20Plugin%3a%20Content%20Aware%20Sidebars¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
+
Tags: sidebar, widget area, content aware, context aware, conditional, seo, dynamic, flexible, modular, bbpress, buddypress, qtranslate, polylang, transposh, wpml, woocommerce
|
5 |
+
Requires at least: 3.3
|
6 |
+
Tested up to: 3.9
|
7 |
+
Stable tag: 2.1
|
8 |
+
License: GPLv3
|
9 |
|
10 |
Create and display sidebars according to the content being viewed.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Manage an infinite number of sidebars.
|
15 |
+
Boost on-site SEO with better Calls to Action by controlling what content your sidebars should be displayed with.
|
16 |
+
The sidebar manager makes it incredibly easy for anyone to create flexible, dynamic sidebars without the need of code.
|
17 |
+
Developed with speed and performance in mind and will add no extra database tables or table columns.
|
18 |
+
|
19 |
+
> **New in version 2**
|
20 |
+
>
|
21 |
+
> Condition groups let you display a sidebar together with both associated and distinct content.
|
22 |
+
>
|
23 |
+
> Improved GUI makes it even easier to select content and edit sidebars.
|
24 |
+
>
|
25 |
+
> Improved API for developers who want to extend and manipulate content support.
|
26 |
|
27 |
= Features =
|
28 |
|
29 |
* Easy-to-use sidebar manager
|
30 |
* Display sidebars with all or specific:
|
31 |
+
* Singulars - e.g. posts or pages
|
32 |
* (Custom) Post Types
|
33 |
+
* Singulars with given (custom) taxonomies or taxonomy terms - e.g. categories or tags
|
34 |
* Singulars by a given author
|
35 |
* Page Templates
|
36 |
+
* Post Formats
|
37 |
* Post Type Archives
|
38 |
* Author Archives
|
39 |
* (Custom) Taxonomy Archives or Taxonomy Term Archives
|
40 |
+
* Search Results
|
41 |
* 404 Page
|
42 |
* Front Page
|
43 |
* bbPress User Profiles
|
44 |
* BuddyPress Member Pages
|
45 |
+
* Languages (qTranslate, Polylang, Transposh, WPML)
|
46 |
* **Any combination of the above**
|
47 |
+
* Sidebars can automatically merge with or replace others
|
48 |
* Create complex content with nested sidebars
|
49 |
* Private sidebars only for members
|
50 |
* Schedule sidebars for later publishing
|
51 |
+
* Template Tag to insert a sidebar anywhere in your theme
|
52 |
|
53 |
= Builtin Plugin Support =
|
54 |
|
56 |
* BuddyPress (v1.6.2+)
|
57 |
* qTranslate (v2.5.29+)
|
58 |
* Polylang (v0.9.6+)
|
59 |
+
* Transposh Translation Filter (v0.9.5+)
|
60 |
+
* [WPML Multilingual Blog/CMS (v2.4.3+) Tested and certified](http://wpml.org/plugin/content-aware-sidebars/)
|
61 |
|
62 |
= Translations =
|
63 |
|
64 |
+
* Chinese (zh_CN): [Joe Tze](http://tkjune.com)
|
65 |
* Danish (da_DK): [Joachim Jensen](http://www.intox.dk/)
|
66 |
+
* German (de_DE): Enno Wulff
|
67 |
+
* Hungarian (hu_HU): Kis Lukács
|
68 |
* Italian (it_IT): [Luciano Del Fico](http://www.myweb2.it/)
|
69 |
+
* Latvian (lv_LV): [Haralds Gribusts](http://www.fireclubllatvia.lv/)
|
70 |
* Lithuanian (lt_LT): [Vincent G](http://host1free.com/)
|
71 |
+
* Slovak (sk_SK): [Branco](http://webhostinggeeks.com/)
|
72 |
+
* Spanish (es_ES): [Analia Jensen](http://www.linkedin.com/in/analiajensen)
|
73 |
+
|
74 |
+
Do you want to see your name here?
|
75 |
|
76 |
If you have translated the plugin into your language or updated an existing translation, please send the .po and .mo files to jv[at]intox.dk.
|
77 |
+
Download the latest [template .po file](http://plugins.svn.wordpress.org/content-aware-sidebars/trunk/lang/content-aware-sidebars.po) or the [.po file in your language](http://plugins.svn.wordpress.org/content-aware-sidebars/trunk/lang/).
|
78 |
|
79 |
= Contact =
|
80 |
|
89 |
|
90 |
== Frequently Asked Questions ==
|
91 |
|
92 |
+
If you have any questions not answered here, head over to the [Support Forum](http://wordpress.org/tags/content-aware-sidebars?forum_id=10).
|
93 |
|
94 |
= Will Content Aware Sidebars work with my theme? =
|
95 |
|
96 |
+
Yes.
|
97 |
+
|
98 |
+
If the theme supports dynamic widget areas/sidebars, new sidebars can be created to replace or merge with those under certain conditions.
|
99 |
If not, it is still possible to create sidebars and then use the function `display_ca_sidebar()` in the theme.
|
100 |
|
101 |
+
= Will Content Aware Sidebars work with/support my plugin? =
|
102 |
+
|
103 |
+
Work with? Yes.
|
104 |
+
|
105 |
+
Support? Most likely.
|
106 |
+
|
107 |
+
If the plugin uses public Custom Post Types or Custom Taxonomies, these will automatically be supported. Additionally, Content Aware Sidebars uses modules with WordPress Hooks that you can control and it features builtin support for some of the most popular plugins in the WordPress Repository.
|
108 |
+
|
109 |
+
Content Aware Sidebars will never alter data used by your plugin.
|
110 |
+
|
111 |
= My new sidebar is not displayed where I expect it to? =
|
112 |
|
113 |
+
As of version 2.0, all types of content added to a condition group will be recognized as associated. The introduction of these groups has made it possible to create extremely focused and at the same time distinct conditions for when to display a sidebar.
|
114 |
+
|
115 |
+
You can have one group with the conditions "All posts containing tag X" and another group with "All pages written by author Y". The sidebar will then be displayed with all posts containing tag X **or** all pages authored by Y.
|
116 |
+
The conditions "All posts containing tag X and written by author Y" in one group are possible as well.
|
117 |
+
|
118 |
+
The downside to this is that, currently, Content Aware Sidebars does not validate that the content you add to a group actually is associated. Creating a group with the conditions "All posts and Search Results" is possible, but it will never be satisfied because the types of content (post type and static page) are incompatible. Instead, these conditions should have their own group.
|
119 |
|
120 |
+
Also note the exposure setting as it determines whether the selected content apply to archives, singulars or both.
|
121 |
+
|
122 |
+
= All content items are not listed in the sidebar editor? =
|
123 |
+
|
124 |
+
As of version 2.0, several types of content have pagination in the sidebar editor. Items can also be found with a search function.
|
125 |
+
|
126 |
+
For post types, only public, private and scheduled items are displayed.
|
127 |
|
128 |
= How do I use display_ca_sidebar( $args )? =
|
129 |
|
135 |
'after' => '</ul></div>'
|
136 |
);`
|
137 |
|
|
|
138 |
If ID's of specific sidebars are passed to `include`, the function will only handle these. The visuals of the content aware sidebars can be modified by passing `before` and `after`.
|
139 |
The function accepts URL-style strings as parameters too, like the standard WordPress Template Tags.
|
140 |
|
141 |
+
= What are the minimum requirements? =
|
142 |
+
|
143 |
+
* WordPress 3.3
|
144 |
+
* PHP 5.2.4
|
145 |
+
* MySQL 5
|
146 |
+
|
147 |
== Screenshots ==
|
148 |
|
149 |
+
1. Add a new Content Aware Sidebar to be displayed with all Posts that contains the category Very Categorized. It replaces `Primary Sidebar`
|
150 |
2. Simple overview of all created Content Aware Sidebars
|
151 |
3. Add widgets to the newly added sidebar
|
152 |
+
4. Viewing front page of site. `Primary Sidebar` is displayed
|
153 |
+
5. Viewing a Post that contains Very Categorized. `Very Categorized Posts` sidebar has replaced `Primary Sidebar`
|
154 |
+
|
155 |
+
== Upgrade Notice ==
|
156 |
+
|
157 |
+
= 2.0 =
|
158 |
+
|
159 |
+
* Content Aware Sidebars data in your database will be updated automatically. It is highly recommended to backup this data before updating the plugin.
|
160 |
+
* Minimum WordPress version compatibility is now 3.3.
|
161 |
+
|
162 |
+
= 1.1 =
|
163 |
+
|
164 |
+
* Content Aware Sidebars data in your database will be updated automatically. Remember to backup this data before updating the plugin.
|
165 |
+
|
166 |
+
= 0.8 =
|
167 |
+
|
168 |
+
* Content Aware Sidebars data in your database will be updated automatically. Remember to backup this data before updating the plugin.
|
169 |
+
|
170 |
+
= 0.5 =
|
171 |
+
|
172 |
+
* Note that the plugin now requires at least WordPress 3.1 because of post type archives.
|
173 |
+
|
174 |
+
= 0.4 =
|
175 |
+
|
176 |
+
* All current custom sidebars have to be updated after plugin upgrade due to the new archive rules
|
177 |
+
|
178 |
+
= 0.1 =
|
179 |
+
|
180 |
+
* Hello World
|
181 |
|
182 |
== Changelog ==
|
183 |
|
184 |
+
= 2.1 =
|
185 |
+
|
186 |
+
* Added: empty condition groups cannot be saved
|
187 |
+
* Added: confirmation on various condition group actions in sidebar editor
|
188 |
+
* Added: improved ux design for sidebar editor
|
189 |
+
* Added: chinese translation
|
190 |
+
* Added: wp3.9 compatibility
|
191 |
+
* Fixed: transposh compatibility now 0.9.5+
|
192 |
+
* Fixed: removed warnings for auto-select new children functionality
|
193 |
+
* Fixed: unprivileged users could in theory make, but never successfully execute, ajax requests for sidebar editor
|
194 |
+
* Fixed: removed warning in widgets screen when handle is not set
|
195 |
+
|
196 |
+
= 2.0.3 =
|
197 |
+
|
198 |
+
* Fixed: taxonomy pagination in sidebar editor
|
199 |
+
* Fixed: categories found in search can now be saved. props Xandoc
|
200 |
+
|
201 |
+
= 2.0.2 =
|
202 |
+
|
203 |
+
* Fixed: terms caused a sidebar to be displayed on all pages
|
204 |
+
|
205 |
+
= 2.0.1 =
|
206 |
+
|
207 |
+
* Fixed: admin menu would in some cases be overwritten by other plugins
|
208 |
+
|
209 |
+
= 2.0 =
|
210 |
+
|
211 |
+
* Added: condition groups
|
212 |
+
* Added: gui and uxd overhaul for sidebar editor
|
213 |
+
* Added: pagination for taxonomies in sidebar editor
|
214 |
+
* Added: pagination for post types in sidebar editor
|
215 |
+
* Added: mysql 5.6+ compatibility
|
216 |
+
* Added: more efficient uninstall process
|
217 |
+
* Added: easier for developers to extend and manipulate content support
|
218 |
+
* Added: wp3.8 and mp6 compatibility
|
219 |
+
* Added: german translation
|
220 |
+
* Added: hungarian translation
|
221 |
+
* Added: latvian translation
|
222 |
+
* Added: spanish translation
|
223 |
+
* Added: all conditions follow a strict logical "and" operator per group
|
224 |
+
* Fixed: scripts and styles only loaded on sidebar administrative pages
|
225 |
+
* Fixed: slovak translation now recognized
|
226 |
+
* Fixed: paths to assets compatible with ssl
|
227 |
+
* Removed: jquery ui autocomplete and accordion
|
228 |
+
|
229 |
+
= 1.3.5 =
|
230 |
+
|
231 |
+
* Fixed: menu would disappear in rare cases. Props grezvany13
|
232 |
+
* Fixed: search function now searches in title and slug (not content) for post types
|
233 |
+
* Added: search function displays at most 20 results instead of 10
|
234 |
+
|
235 |
+
= 1.3.4 =
|
236 |
+
|
237 |
+
* Fixed: cas_walker_checklist now follows walker declaration for wp3.6
|
238 |
+
* Fixed: content list in accordion now not scrollable
|
239 |
+
* Fixed: only terms from public taxonomies are included for content recognition.
|
240 |
+
* Fixed: polylang fully supported again
|
241 |
+
* Fixed: consistent css across wp versions
|
242 |
+
* Removed: flushing rewrite rules on activation/deactivation is needless
|
243 |
+
|
244 |
+
= 1.3.3 =
|
245 |
+
|
246 |
+
* Added: html placeholder in search field
|
247 |
+
* Added: items already displayed in edit page moved to top and checked when found in search
|
248 |
+
* Fixed: private and scheduled singulars included in search results
|
249 |
+
* Fixed: search results displayed in ascending order
|
250 |
+
|
251 |
+
= 1.3.2 =
|
252 |
+
|
253 |
+
* Added: items found in search now added to list directly on select
|
254 |
+
* Fixed: some terms found by search could not be saved
|
255 |
+
* Fixed: widget locations are saved again for each theme
|
256 |
+
|
257 |
+
= 1.3.1 =
|
258 |
+
|
259 |
+
* Added: authors and bbpress user profiles now searchable on edit page
|
260 |
+
* Added: items found in search on edit page are prepended and checked by default
|
261 |
+
* Added: updated edit page gui
|
262 |
+
* Added: search field only visible when quantity is above 20
|
263 |
+
* Fixed: select all checkbox will now disable all input in container
|
264 |
+
* Fixed: host sidebar could sometimes not be found in sidebar list
|
265 |
+
|
266 |
+
= 1.3 =
|
267 |
+
|
268 |
+
* Added: post type posts and taxonomy terms now searchable on edit page
|
269 |
+
* Added: sidebar handle and host shown on widgets page
|
270 |
+
* Added: slovak translation
|
271 |
+
* Fixed: sidebar meta boxes more robust to external modifications
|
272 |
+
* Fixed: admin column headers more robust to external modifications
|
273 |
+
* Fixed: sidebar menu now always hidden for users without right cap
|
274 |
+
* Fixed: code optimization and refactor for performance
|
275 |
+
* Removed: support for sidebar excerpt
|
276 |
+
|
277 |
= 1.2 =
|
278 |
|
279 |
* Added: polylang support
|
421 |
= 0.1 =
|
422 |
|
423 |
* First stable release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
screenshot-4.png
CHANGED
Binary file
|
screenshot-5.png
CHANGED
Binary file
|
uninstall.php
CHANGED
@@ -1,26 +1,20 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Content Aware Sidebars
|
|
|
4 |
*/
|
5 |
|
6 |
if(!defined('WP_UNINSTALL_PLUGIN')) {
|
7 |
exit();
|
8 |
}
|
9 |
|
|
|
|
|
10 |
// Remove db version
|
11 |
delete_option('cas_db_version');
|
12 |
|
13 |
-
//
|
14 |
-
$posts =
|
15 |
-
'numberposts' => -1,
|
16 |
-
'post_type' => 'sidebar',
|
17 |
-
'post_status' => 'any'
|
18 |
-
));
|
19 |
-
foreach($posts as $post) {
|
20 |
-
wp_delete_post($post->ID, true);
|
21 |
-
}
|
22 |
|
23 |
// Remove user meta
|
24 |
-
global $wpdb;
|
25 |
$wpdb->query("DELETE FROM $wpdb->usermeta WHERE meta_key IN('metaboxhidden_sidebar','closedpostboxes_sidebar')");
|
26 |
-
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Content Aware Sidebars
|
4 |
+
* @author Joachim Jensen <jv@intox.dk>
|
5 |
*/
|
6 |
|
7 |
if(!defined('WP_UNINSTALL_PLUGIN')) {
|
8 |
exit();
|
9 |
}
|
10 |
|
11 |
+
global $wpdb;
|
12 |
+
|
13 |
// Remove db version
|
14 |
delete_option('cas_db_version');
|
15 |
|
16 |
+
//Remove sidebars, sidebar groups and (if not null) their terms and metadata
|
17 |
+
$wpdb->query("DELETE p.*,pm.*,tr.* FROM $wpdb->posts AS p LEFT JOIN $wpdb->postmeta AS pm ON p.ID = pm.post_id LEFT JOIN $wpdb->term_relationships AS tr ON p.ID = tr.object_id WHERE p.post_type = 'sidebar' OR p.post_type = 'sidebar_group'");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
// Remove user meta
|
|
|
20 |
$wpdb->query("DELETE FROM $wpdb->usermeta WHERE meta_key IN('metaboxhidden_sidebar','closedpostboxes_sidebar')");
|
|
update_db.php
CHANGED
@@ -1,58 +1,115 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Content Aware Sidebars
|
|
|
4 |
*/
|
5 |
|
6 |
/**
|
7 |
-
*
|
8 |
* Run updates
|
9 |
-
*
|
10 |
-
* @
|
11 |
-
* @return boolean
|
12 |
*/
|
13 |
function cas_run_db_update($current_version) {
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
if($installed_version
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
return true;
|
26 |
-
|
27 |
-
$versions = array(0.8,1.1);
|
28 |
-
|
29 |
//Launch updates
|
30 |
foreach($versions as $version) {
|
|
|
31 |
$return = false;
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
$return = $function();
|
38 |
-
|
39 |
-
|
40 |
-
if($return) {
|
41 |
update_option('cas_db_version',$installed_version = $version);
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
}
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
/**
|
52 |
* Version 0.8 -> 1.1
|
53 |
* Serialized metadata gets their own rows
|
54 |
-
*
|
55 |
-
* @param boolean $return
|
56 |
*/
|
57 |
function cas_update_to_11() {
|
58 |
|
@@ -68,7 +125,7 @@ function cas_update_to_11() {
|
|
68 |
// Get all sidebars
|
69 |
$posts = get_posts(array(
|
70 |
'numberposts' => -1,
|
71 |
-
'post_type' =>
|
72 |
'post_status' => 'publish,pending,draft,future,private,trash'
|
73 |
));
|
74 |
|
@@ -76,11 +133,11 @@ function cas_update_to_11() {
|
|
76 |
foreach($posts as $post) {
|
77 |
foreach($moduledata as $field) {
|
78 |
// Remove old serialized data and insert it again properly
|
79 |
-
$old = get_post_meta($post->ID, ContentAwareSidebars::
|
80 |
if($old != '') {
|
81 |
-
delete_post_meta($post->ID, ContentAwareSidebars::
|
82 |
foreach((array)$old as $new_single) {
|
83 |
-
add_post_meta($post->ID, ContentAwareSidebars::
|
84 |
}
|
85 |
}
|
86 |
}
|
@@ -91,19 +148,16 @@ function cas_update_to_11() {
|
|
91 |
}
|
92 |
|
93 |
/**
|
94 |
-
*
|
95 |
* Version 0 -> 0.8
|
96 |
* Introduces database version management, adds preficed keys to metadata
|
97 |
-
*
|
98 |
* @global object $wpdb
|
99 |
-
* @
|
100 |
*/
|
101 |
function cas_update_to_08() {
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
'post_types',
|
107 |
'taxonomies',
|
108 |
'authors',
|
109 |
'page_templates',
|
@@ -112,30 +166,31 @@ function cas_update_to_08() {
|
|
112 |
'handle',
|
113 |
'host',
|
114 |
'merge-pos'
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
",
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
// Clear cache for new meta keys
|
136 |
wp_cache_flush();
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
}
|
|
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Content Aware Sidebars
|
4 |
+
* @author Joachim Jensen <jv@intox.dk>
|
5 |
*/
|
6 |
|
7 |
/**
|
|
|
8 |
* Run updates
|
9 |
+
* @param float $current_version
|
10 |
+
* @return boolean
|
|
|
11 |
*/
|
12 |
function cas_run_db_update($current_version) {
|
13 |
+
|
14 |
+
if(current_user_can('update_plugins')) {
|
15 |
+
// Get current plugin db version
|
16 |
+
$installed_version = get_option('cas_db_version',0);
|
17 |
+
|
18 |
+
// Database is up to date
|
19 |
+
if($installed_version == $current_version)
|
20 |
+
return true;
|
21 |
+
|
22 |
+
$versions = array('0.8','1.1','2.0');
|
23 |
+
|
|
|
|
|
|
|
|
|
24 |
//Launch updates
|
25 |
foreach($versions as $version) {
|
26 |
+
|
27 |
$return = false;
|
28 |
+
|
29 |
+
if(version_compare($installed_version,$version,'<')) {
|
30 |
+
$function = 'cas_update_to_'.str_replace('.','',$version);
|
31 |
+
if(function_exists($function)) {
|
|
|
32 |
$return = $function();
|
33 |
+
// Update database on success
|
34 |
+
if($return) {
|
|
|
35 |
update_option('cas_db_version',$installed_version = $version);
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
39 |
}
|
40 |
+
return $return;
|
41 |
+
}
|
42 |
+
return false;
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Version 1.1 -> 2.0
|
47 |
+
* Moves module data for each sidebar to a condition group
|
48 |
+
* @author Joachim Jensen <jv@intox.dk>
|
49 |
+
* @since 2.0
|
50 |
+
* @return boolean
|
51 |
+
*/
|
52 |
+
function cas_update_to_20() {
|
53 |
+
global $wpdb;
|
54 |
+
|
55 |
+
$module_keys = array(
|
56 |
+
'static',
|
57 |
+
'post_types',
|
58 |
+
'authors',
|
59 |
+
'page_templates',
|
60 |
+
'taxonomies',
|
61 |
+
'language',
|
62 |
+
'bb_profile',
|
63 |
+
'bp_member'
|
64 |
+
);
|
65 |
+
|
66 |
+
// Get all sidebars
|
67 |
+
$posts = get_posts(array(
|
68 |
+
'numberposts' => -1,
|
69 |
+
'post_type' => ContentAwareSidebars::TYPE_SIDEBAR,
|
70 |
+
'post_status' => 'publish,pending,draft,future,private,trash'
|
71 |
+
));
|
72 |
+
if(!empty($posts)) {
|
73 |
+
foreach($posts as $post) {
|
74 |
+
|
75 |
+
//Create new condition group
|
76 |
+
$group_id = wp_insert_post(array(
|
77 |
+
'post_status' => $post->post_status,
|
78 |
+
'post_type' => ContentAwareSidebars::TYPE_CONDITION_GROUP,
|
79 |
+
'post_author' => $post->post_author,
|
80 |
+
'post_parent' => $post->ID,
|
81 |
+
));
|
82 |
+
|
83 |
+
if($group_id) {
|
84 |
+
|
85 |
+
//Move module data to condition group
|
86 |
+
$wpdb->query("
|
87 |
+
UPDATE $wpdb->postmeta
|
88 |
+
SET post_id = '".$group_id."'
|
89 |
+
WHERE meta_key IN ('".ContentAwareSidebars::PREFIX.implode("','".ContentAwareSidebars::PREFIX,$module_keys)."')
|
90 |
+
AND post_id = '".$post->ID."'
|
91 |
+
");
|
92 |
+
|
93 |
+
//Move term data to condition group
|
94 |
+
$wpdb->query("
|
95 |
+
UPDATE $wpdb->term_relationships
|
96 |
+
SET object_id = '".$group_id."'
|
97 |
+
WHERE object_id = '".$post->ID."'
|
98 |
+
");
|
99 |
+
|
100 |
+
}
|
101 |
+
|
102 |
+
}
|
103 |
+
}
|
104 |
+
|
105 |
+
return true;
|
106 |
+
|
107 |
}
|
108 |
|
109 |
/**
|
110 |
* Version 0.8 -> 1.1
|
111 |
* Serialized metadata gets their own rows
|
112 |
+
* @return boolean
|
|
|
113 |
*/
|
114 |
function cas_update_to_11() {
|
115 |
|
125 |
// Get all sidebars
|
126 |
$posts = get_posts(array(
|
127 |
'numberposts' => -1,
|
128 |
+
'post_type' => ContentAwareSidebars::TYPE_SIDEBAR,
|
129 |
'post_status' => 'publish,pending,draft,future,private,trash'
|
130 |
));
|
131 |
|
133 |
foreach($posts as $post) {
|
134 |
foreach($moduledata as $field) {
|
135 |
// Remove old serialized data and insert it again properly
|
136 |
+
$old = get_post_meta($post->ID, ContentAwareSidebars::PREFIX.$field, true);
|
137 |
if($old != '') {
|
138 |
+
delete_post_meta($post->ID, ContentAwareSidebars::PREFIX.$field, $old);
|
139 |
foreach((array)$old as $new_single) {
|
140 |
+
add_post_meta($post->ID, ContentAwareSidebars::PREFIX.$field, $new_single);
|
141 |
}
|
142 |
}
|
143 |
}
|
148 |
}
|
149 |
|
150 |
/**
|
|
|
151 |
* Version 0 -> 0.8
|
152 |
* Introduces database version management, adds preficed keys to metadata
|
|
|
153 |
* @global object $wpdb
|
154 |
+
* @return boolean
|
155 |
*/
|
156 |
function cas_update_to_08() {
|
157 |
+
global $wpdb;
|
158 |
+
|
159 |
+
$metadata = array(
|
160 |
+
'post_types',
|
|
|
161 |
'taxonomies',
|
162 |
'authors',
|
163 |
'page_templates',
|
166 |
'handle',
|
167 |
'host',
|
168 |
'merge-pos'
|
169 |
+
);
|
170 |
+
|
171 |
+
// Get all sidebars
|
172 |
+
$posts = $wpdb->get_col($wpdb->prepare("
|
173 |
+
SELECT ID
|
174 |
+
FROM $wpdb->posts
|
175 |
+
WHERE post_type = %s
|
176 |
+
",ContentAwareSidebars::TYPE_SIDEBAR));
|
177 |
+
|
178 |
+
//Check if there is any
|
179 |
+
if(!empty($posts)) {
|
180 |
+
//Update the meta keys
|
181 |
+
foreach($metadata as $meta) {
|
182 |
+
$wpdb->query("
|
183 |
+
UPDATE $wpdb->postmeta
|
184 |
+
SET meta_key = '".ContentAwareSidebars::PREFIX.$meta."'
|
185 |
+
WHERE meta_key = '".$meta."'
|
186 |
+
AND post_id IN(".implode(',',$posts).")
|
187 |
+
");
|
188 |
+
}
|
189 |
// Clear cache for new meta keys
|
190 |
wp_cache_flush();
|
191 |
+
}
|
192 |
+
|
193 |
+
return true;
|
|
|
194 |
}
|
195 |
+
|
196 |
+
//eol
|
walker.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Content Aware Sidebars
|
|
|
4 |
*/
|
5 |
|
6 |
/**
|
@@ -11,8 +12,9 @@
|
|
11 |
class CAS_Walker_Checklist extends Walker {
|
12 |
|
13 |
/**
|
14 |
-
*
|
15 |
-
* @param
|
|
|
16 |
*/
|
17 |
function __construct($tree_type, $db_fields) {
|
18 |
|
@@ -22,225 +24,85 @@ class CAS_Walker_Checklist extends Walker {
|
|
22 |
}
|
23 |
|
24 |
/**
|
25 |
-
*
|
26 |
-
* @param
|
27 |
-
* @param
|
|
|
|
|
28 |
*/
|
29 |
-
public function start_lvl(&$output, $depth, $args) {
|
30 |
$indent = str_repeat("\t", $depth);
|
31 |
-
$output .= "
|
32 |
}
|
33 |
|
34 |
/**
|
35 |
-
*
|
36 |
-
* @param
|
37 |
-
* @param
|
|
|
|
|
38 |
*/
|
39 |
-
public function end_lvl(&$output, $depth, $args) {
|
40 |
$indent = str_repeat("\t", $depth);
|
41 |
-
$output .= "$indent</ul>\n";
|
42 |
}
|
43 |
|
44 |
/**
|
45 |
-
*
|
46 |
-
* @param
|
47 |
-
* @param
|
48 |
-
* @param
|
49 |
-
* @
|
|
|
|
|
50 |
*/
|
51 |
-
public function start_el(&$output, $term, $depth, $args) {
|
52 |
-
extract($args);
|
53 |
|
54 |
if(isset($post_type)) {
|
55 |
-
|
56 |
-
if (
|
57 |
$output .= "\n<li>";
|
58 |
return;
|
59 |
}
|
60 |
-
|
61 |
-
$
|
|
|
|
|
62 |
|
63 |
} else {
|
64 |
-
|
65 |
-
if (
|
66 |
$output .= "\n<li>";
|
67 |
return;
|
68 |
}
|
69 |
-
|
70 |
-
$name = $taxonomy->name == 'category' ? 'post_category' : 'tax_input['.$taxonomy->name.']';
|
71 |
-
$value = $taxonomy->hierarchical ? 'term_id' : 'slug';
|
72 |
-
$class = in_array( $term->term_id, $popular_terms ) ? ' class="popular-category"' : '';
|
73 |
-
|
74 |
-
$output .= "\n".'<li id="'.$taxonomy->name.'-'.$term->term_id.'"'.$class.'><label class="selectit"><input class="cas-taxonomies-'.$taxonomy->name.'" value="'.$term->$value.'" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy->name.'-'.$term->term_id.'"'.checked(in_array($term->term_id,$selected_terms),true,false).disabled(empty($disabled),false,false).'/> '.esc_html( apply_filters('the_category', $term->name )) . '</label>';
|
75 |
-
|
76 |
-
}
|
77 |
-
|
78 |
-
}
|
79 |
-
|
80 |
-
/**
|
81 |
-
* @param string $output
|
82 |
-
* @param type $term
|
83 |
-
* @param type $depth
|
84 |
-
* @param type $args
|
85 |
-
*/
|
86 |
-
public function end_el(&$output, $term, $depth, $args) {
|
87 |
-
$output .= "</li>\n";
|
88 |
-
}
|
89 |
-
|
90 |
-
}
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
*
|
96 |
-
* @param type $post_id
|
97 |
-
* @param type $args
|
98 |
-
*/
|
99 |
-
function cas_terms_checklist($post_id = 0, $args = array()) {
|
100 |
-
$defaults = array(
|
101 |
-
'popular_terms' => false,
|
102 |
-
'taxonomy' => 'category',
|
103 |
-
'terms' => null,
|
104 |
-
'checked_ontop' => true
|
105 |
-
);
|
106 |
-
extract(wp_parse_args($args, $defaults), EXTR_SKIP);
|
107 |
-
|
108 |
-
$walker = new CAS_Walker_Checklist('category',array ('parent' => 'parent', 'id' => 'term_id'));
|
109 |
-
|
110 |
-
if(!is_object($taxonomy))
|
111 |
-
$taxonomy = get_taxonomy($taxonomy);
|
112 |
-
|
113 |
-
$args = array(
|
114 |
-
'taxonomy' => $taxonomy,
|
115 |
-
'disabled' => !current_user_can($taxonomy->cap->assign_terms)
|
116 |
-
);
|
117 |
-
|
118 |
-
if ($post_id)
|
119 |
-
$args['selected_terms'] = wp_get_object_terms($post_id, $taxonomy->name, array_merge($args, array('fields' => 'ids')));
|
120 |
-
else
|
121 |
-
$args['selected_terms'] = array();
|
122 |
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
$args['popular_terms'] = get_terms( $taxonomy->name, array( 'fields' => 'ids', 'orderby' => 'count', 'order' => 'DESC', 'number' => 10, 'hierarchical' => false ) );
|
127 |
|
128 |
-
if(!$terms)
|
129 |
-
$terms = (array) get_terms($taxonomy->name, array('get' => 'all'));
|
130 |
-
|
131 |
-
if ($checked_ontop) {
|
132 |
-
$checked_terms = array();
|
133 |
-
$keys = array_keys( $terms );
|
134 |
-
|
135 |
-
foreach($keys as $k) {
|
136 |
-
if (in_array($terms[$k]->term_id, $args['selected_terms'])) {
|
137 |
-
$checked_terms[] = $terms[$k];
|
138 |
-
unset($terms[$k]);
|
139 |
-
}
|
140 |
}
|
141 |
|
142 |
-
|
143 |
-
echo call_user_func_array(array(&$walker, 'walk'), array($checked_terms, 0, $args));
|
144 |
-
}
|
145 |
-
// Then the rest of them
|
146 |
-
echo call_user_func_array(array(&$walker, 'walk'), array($terms, 0, $args));
|
147 |
-
}
|
148 |
-
|
149 |
-
/**
|
150 |
-
*
|
151 |
-
* Show checklist for popular terms
|
152 |
-
*
|
153 |
-
* @global type $post_ID
|
154 |
-
* @param type $taxonomy
|
155 |
-
* @param type $default
|
156 |
-
* @param type $number
|
157 |
-
* @param type $echo
|
158 |
-
* @return type
|
159 |
-
*/
|
160 |
-
function cas_popular_terms_checklist( $taxonomy, $default = 0, $number = 10, $echo = true ) {
|
161 |
-
global $post_ID;
|
162 |
-
|
163 |
-
if ( $post_ID )
|
164 |
-
$checked_terms = wp_get_object_terms($post_ID, $taxonomy->name, array('fields'=>'ids'));
|
165 |
-
else
|
166 |
-
$checked_terms = array();
|
167 |
|
168 |
-
$terms = get_terms( $taxonomy->name, array( 'orderby' => 'count', 'order' => 'DESC', 'number' => $number, 'hierarchical' => false ) );
|
169 |
-
|
170 |
-
$disabled = current_user_can($taxonomy->cap->assign_terms) ? '' : ' disabled="disabled"';
|
171 |
-
|
172 |
-
$popular_ids = array();
|
173 |
-
foreach ( (array) $terms as $term ) {
|
174 |
-
$popular_ids[] = $term->term_id;
|
175 |
-
if ( !$echo ) // hack for AJAX use
|
176 |
-
continue;
|
177 |
-
$id = "popular-$taxonomy->name-$term->term_id";
|
178 |
-
?>
|
179 |
-
|
180 |
-
<li id="<?php echo $id; ?>" class="popular-category">
|
181 |
-
<label class="selectit">
|
182 |
-
<input class="cas-taxonomies-<?php echo $taxonomy->name; ?>" id="in-<?php echo $id; ?>" type="checkbox"<?php echo in_array( $term->term_id, $checked_terms ) ? ' checked="checked"' : ''; ?> value="<?php echo $term->term_id; ?>"<?php echo $disabled ?>/>
|
183 |
-
<?php echo esc_html( apply_filters( 'the_category', $term->name ) ); ?>
|
184 |
-
</label>
|
185 |
-
</li>
|
186 |
-
|
187 |
-
<?php
|
188 |
}
|
189 |
-
return $popular_ids;
|
190 |
-
}
|
191 |
-
|
192 |
-
/**
|
193 |
-
*
|
194 |
-
* Show posts checklist
|
195 |
-
*
|
196 |
-
* @param type $post_id
|
197 |
-
* @param type $args
|
198 |
-
*/
|
199 |
-
function cas_posts_checklist($post_id = 0, $args = array()) {
|
200 |
-
$defaults = array(
|
201 |
-
'post_type' => 'post',
|
202 |
-
'posts' => null,
|
203 |
-
'checked_ontop' => true
|
204 |
-
);
|
205 |
-
extract(wp_parse_args($args, $defaults), EXTR_SKIP);
|
206 |
-
|
207 |
-
$walker = new CAS_Walker_Checklist('post',array ('parent' => 'post_parent', 'id' => 'ID'));
|
208 |
-
|
209 |
-
if(!is_object($post_type))
|
210 |
-
$post_type = get_post_type_object($post_type);
|
211 |
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
if(!$posts)
|
223 |
-
$posts = get_posts(array(
|
224 |
-
'numberposts' => -1,
|
225 |
-
'post_type' => $post_type->name,
|
226 |
-
'post_status' => array('publish','private','future'),
|
227 |
-
));
|
228 |
-
|
229 |
-
if ( $checked_ontop ) {
|
230 |
-
$checked_posts = array();
|
231 |
-
$keys = array_keys($posts);
|
232 |
-
|
233 |
-
foreach( $keys as $k ) {
|
234 |
-
if (in_array($posts[$k]->ID, $args['selected_cats'])) {
|
235 |
-
$checked_posts[] = $posts[$k];
|
236 |
-
unset($posts[$k]);
|
237 |
-
}
|
238 |
-
}
|
239 |
-
|
240 |
-
//Put checked posts on top
|
241 |
-
echo call_user_func_array(array(&$walker, 'walk'), array($checked_posts, 0, $args));
|
242 |
}
|
243 |
|
244 |
-
// Then the rest of them
|
245 |
-
echo call_user_func_array(array(&$walker, 'walk'), array($posts, 0, $args));
|
246 |
}
|
|
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Content Aware Sidebars
|
4 |
+
* @author Joachim Jensen <jv@intox.dk>
|
5 |
*/
|
6 |
|
7 |
/**
|
12 |
class CAS_Walker_Checklist extends Walker {
|
13 |
|
14 |
/**
|
15 |
+
* Constructor
|
16 |
+
* @param string $tree_type
|
17 |
+
* @param array $db_fields
|
18 |
*/
|
19 |
function __construct($tree_type, $db_fields) {
|
20 |
|
24 |
}
|
25 |
|
26 |
/**
|
27 |
+
* Start outputting level
|
28 |
+
* @param string $output
|
29 |
+
* @param int $depth
|
30 |
+
* @param array $args
|
31 |
+
* @return void
|
32 |
*/
|
33 |
+
public function start_lvl(&$output, $depth = 0, $args = array()) {
|
34 |
$indent = str_repeat("\t", $depth);
|
35 |
+
$output .= "</li>$indent<li><ul class='children'>\n";
|
36 |
}
|
37 |
|
38 |
/**
|
39 |
+
* End outputting level
|
40 |
+
* @param string $output
|
41 |
+
* @param int $depth
|
42 |
+
* @param array $args
|
43 |
+
* @return void
|
44 |
*/
|
45 |
+
public function end_lvl(&$output, $depth = 0, $args = array()) {
|
46 |
$indent = str_repeat("\t", $depth);
|
47 |
+
$output .= "$indent</ul></li>\n";
|
48 |
}
|
49 |
|
50 |
/**
|
51 |
+
* Start outputting element
|
52 |
+
* @param string $output
|
53 |
+
* @param object $term
|
54 |
+
* @param int $depth
|
55 |
+
* @param array $args
|
56 |
+
* @param int $current_object_id
|
57 |
+
* @return void
|
58 |
*/
|
59 |
+
public function start_el(&$output, $term, $depth = 0, $args = array(), $current_object_id = 0 ) {
|
60 |
+
extract($args);
|
61 |
|
62 |
if(isset($post_type)) {
|
63 |
+
|
64 |
+
if (empty($post_type)) {
|
65 |
$output .= "\n<li>";
|
66 |
return;
|
67 |
}
|
68 |
+
|
69 |
+
$value = $term->ID;
|
70 |
+
$title = $term->post_title;
|
71 |
+
$name = 'cas_condition[post_types][]';
|
72 |
|
73 |
} else {
|
74 |
+
|
75 |
+
if (empty($taxonomy)) {
|
76 |
$output .= "\n<li>";
|
77 |
return;
|
78 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
+
//Hierarchical taxonomies use ids instead of slugs
|
81 |
+
//see http://codex.wordpress.org/Function_Reference/wp_set_post_terms
|
82 |
+
$value_var = ($taxonomy->hierarchical ? 'term_id' : 'slug');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
|
84 |
+
$value = $term->$value_var;
|
85 |
+
$title = $term->name;
|
86 |
+
$name = 'cas_condition[tax_input]['.$taxonomy->name.'][]';
|
|
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
}
|
89 |
|
90 |
+
$output .= "\n".'<li><label class="selectit"><input value="'.$value.'" type="checkbox" title="'.esc_attr( $title ).'" name="'.$name.'"'.checked(in_array($value,$selected_terms),true,false).'/> '.esc_html( $title ).'</label>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
+
/**
|
95 |
+
* End outputting element
|
96 |
+
* @param string $output
|
97 |
+
* @param object $object
|
98 |
+
* @param int $depth
|
99 |
+
* @param array $args
|
100 |
+
* @return void
|
101 |
+
*/
|
102 |
+
public function end_el(&$output, $object, $depth = 0, $args = array() ) {
|
103 |
+
$output .= "</li>\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
}
|
105 |
|
|
|
|
|
106 |
}
|
107 |
+
|
108 |
+
//eol
|
wpml-config.xml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<wpml-config>
|
2 |
+
<custom-fields>
|
3 |
+
<custom-field action="ignore">_cas_post_types</custom-field>
|
4 |
+
<custom-field action="ignore">_cas_taxonomies</custom-fields>
|
5 |
+
</custom-fields>
|
6 |
+
<custom-types>
|
7 |
+
<custom-type translate="0">sidebar</custom-type>
|
8 |
+
<custom-type translate="0">sidebar_group</custom-type>
|
9 |
+
</custom-types>
|
10 |
+
</wpml-config>
|