Version Description
Small fixes to satisfy some define('WP_DEBUG', true) errors
Download this release
Release Info
Developer | alanft |
Plugin | Widget Logic |
Version | 0.57 |
Comparing to | |
See all releases |
Code changes from version 0.56 to 0.57
- languages/widget-logic-es_ES.mo +0 -0
- languages/widget-logic-es_ES.po +5 -4
- languages/widget-logic-pt_BR.mo +0 -0
- languages/widget-logic-pt_BR.po +110 -0
- readme.txt +6 -3
- widget_logic.php +8 -6
languages/widget-logic-es_ES.mo
CHANGED
Binary file
|
languages/widget-logic-es_ES.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Widget Logic en español\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: Eduardo Larequi <elarequi@gmail.com>\n"
|
8 |
"Language-Team: PNTE <blogs@educacion.navarra.es>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -96,8 +96,9 @@ msgstr "Permite cargar todas las opciones del plugin Widget Logic desde un fiche
|
|
96 |
msgid "Select file for importing"
|
97 |
msgstr "Seleccionar fichero para importar"
|
98 |
|
99 |
-
|
100 |
-
|
|
|
101 |
|
102 |
#~ msgid "Save"
|
103 |
#~ msgstr "Guardar"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Widget Logic en español\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-01-07 20:56+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-01-07 21:08+0100\n"
|
7 |
"Last-Translator: Eduardo Larequi <elarequi@gmail.com>\n"
|
8 |
"Language-Team: PNTE <blogs@educacion.navarra.es>\n"
|
9 |
"MIME-Version: 1.0\n"
|
96 |
msgid "Select file for importing"
|
97 |
msgstr "Seleccionar fichero para importar"
|
98 |
|
99 |
+
#: widget_logic.php:239
|
100 |
+
msgid "Widget logic:"
|
101 |
+
msgstr "Condiciones del widget:"
|
102 |
|
103 |
#~ msgid "Save"
|
104 |
#~ msgstr "Guardar"
|
languages/widget-logic-pt_BR.mo
ADDED
Binary file
|
languages/widget-logic-pt_BR.po
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2012
|
2 |
+
# This file is distributed under the same license as the package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: Widget Logic\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp\n"
|
7 |
+
"POT-Creation-Date: 2012-12-17 22:12:06+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-02-13 11:09-0300\n"
|
12 |
+
"Last-Translator: Paulino Michelazzo <paulino@michelazzo.com.br>\n"
|
13 |
+
"Language-Team: Paulino Michelazzo <michelazzo@me.com>\n"
|
14 |
+
"Language: pt_BR\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
+
|
18 |
+
#: widget_logic.php:5
|
19 |
+
msgid "Control widgets with WP's conditional tags is_home etc"
|
20 |
+
msgstr "Controla widgets com tags condicionais do WordPress como is_home, etc."
|
21 |
+
|
22 |
+
#: widget_logic.php:18
|
23 |
+
msgid "when plugin starts (default)"
|
24 |
+
msgstr "quando o plugin inicia (padrão)"
|
25 |
+
|
26 |
+
#: widget_logic.php:19
|
27 |
+
msgid "after theme loads"
|
28 |
+
msgstr "depois de carregar o tema"
|
29 |
+
|
30 |
+
#: widget_logic.php:20
|
31 |
+
msgid "when all PHP loaded"
|
32 |
+
msgstr "quando todo o PHP é carregado"
|
33 |
+
|
34 |
+
#: widget_logic.php:21
|
35 |
+
msgid "during page header"
|
36 |
+
msgstr "durante o cabeçalho da página"
|
37 |
+
|
38 |
+
#: widget_logic.php:96
|
39 |
+
msgid "Success! Options file imported"
|
40 |
+
msgstr "Sucesso! O arquivo de opções foi importado"
|
41 |
+
|
42 |
+
#: widget_logic.php:99
|
43 |
+
msgid "Invalid options file"
|
44 |
+
msgstr "Arquivo de opções inválido"
|
45 |
+
|
46 |
+
#: widget_logic.php:104
|
47 |
+
msgid "No options file provided"
|
48 |
+
msgstr "Nenhum arquivo de opções informado"
|
49 |
+
|
50 |
+
#: widget_logic.php:173
|
51 |
+
msgid "Widget Logic options"
|
52 |
+
msgstr "Opções do Widget Logic"
|
53 |
+
|
54 |
+
#: widget_logic.php:176
|
55 |
+
msgid ""
|
56 |
+
"Adds a new WP filter you can use in your own code. Not needed for main "
|
57 |
+
"Widget Logic functionality."
|
58 |
+
msgstr ""
|
59 |
+
"Adiciona um novo filtro do WordPress para você usar em seu próprio código. "
|
60 |
+
"Não é necessário para a funcionalidade principal do Widget Logic."
|
61 |
+
|
62 |
+
#: widget_logic.php:178
|
63 |
+
msgid "Add 'widget_content' filter"
|
64 |
+
msgstr "Adicionar o filtro 'widget_content'"
|
65 |
+
|
66 |
+
#: widget_logic.php:181
|
67 |
+
msgid "Resets a theme's custom queries before your Widget Logic is checked"
|
68 |
+
msgstr ""
|
69 |
+
"Reseta queries customizadas de temas antes que o Widget Login seja verificado"
|
70 |
+
|
71 |
+
#: widget_logic.php:183
|
72 |
+
msgid "Use 'wp_reset_query' fix"
|
73 |
+
msgstr "Usar o conserto 'wp_reset_query'"
|
74 |
+
|
75 |
+
#: widget_logic.php:186
|
76 |
+
msgid ""
|
77 |
+
"Delays widget logic code being evaluated til various points in the WP "
|
78 |
+
"loading process"
|
79 |
+
msgstr ""
|
80 |
+
"Atrasa a avaliação do widget logic em vários pontos no processo de "
|
81 |
+
"carregamento do WordPress"
|
82 |
+
|
83 |
+
#: widget_logic.php:186
|
84 |
+
msgid "Load logic"
|
85 |
+
msgstr "Carregar lógica"
|
86 |
+
|
87 |
+
#: widget_logic.php:199
|
88 |
+
msgid "Save WL options"
|
89 |
+
msgstr "Salvar opções do WL"
|
90 |
+
|
91 |
+
#: widget_logic.php:203
|
92 |
+
msgid "Save all WL options to a plain text config file"
|
93 |
+
msgstr "Salvar todas as opções do WL num arquivo de configuração em texto puro"
|
94 |
+
|
95 |
+
#: widget_logic.php:203
|
96 |
+
msgid "Export options"
|
97 |
+
msgstr "Exportar opções"
|
98 |
+
|
99 |
+
#: widget_logic.php:204
|
100 |
+
msgid "Import options"
|
101 |
+
msgstr "Importar opções"
|
102 |
+
|
103 |
+
#: widget_logic.php:204
|
104 |
+
msgid "Load all WL options from a plain text config file"
|
105 |
+
msgstr ""
|
106 |
+
"Carregar todas as opções do WL de um arquivo de configuração em texto puro"
|
107 |
+
|
108 |
+
#: widget_logic.php:205
|
109 |
+
msgid "Select file for importing"
|
110 |
+
msgstr "Selecionar arquivo para importar"
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: alanft
|
|
3 |
Donate link: http://www.justgiving.com/widgetlogic_cancerresearchuk
|
4 |
Tags: widget, admin, conditional tags, filter, context
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter.
|
@@ -12,7 +12,7 @@ Widget Logic lets you control on which pages widgets appear using WP's condition
|
|
12 |
== Description ==
|
13 |
This plugin gives every widget an extra control field called "Widget logic" that lets you control the pages that the widget will appear on. The text field lets you use WP's [Conditional Tags](http://codex.wordpress.org/Conditional_Tags), or any general PHP code.
|
14 |
|
15 |
-
PLEASE NOTE The widget logic you introduce is EVAL'd directly. Anyone who has access to edit widget appearance will have the right to add any code, including malicious and possibly destructive functions. There is an optional filter 'widget_logic_eval_override' which you can use to bypass the EVAL with your own code if needed. (See [Other Notes](
|
16 |
|
17 |
There is also an option to add a wordpress 'widget_content' filter -- this lets you tweak any widget's HTML to suit your theme without editing plugins and core code.
|
18 |
|
@@ -182,6 +182,9 @@ function make_alternating_widget_styles($content='')
|
|
182 |
|
183 |
== Changelog ==
|
184 |
|
|
|
|
|
|
|
185 |
= 0.56 =
|
186 |
Small fix to the original WP3.5 fix in 0.54 that had the side effect of failing to save logic text on newly added widgets.
|
187 |
|
3 |
Donate link: http://www.justgiving.com/widgetlogic_cancerresearchuk
|
4 |
Tags: widget, admin, conditional tags, filter, context
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 0.57
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter.
|
12 |
== Description ==
|
13 |
This plugin gives every widget an extra control field called "Widget logic" that lets you control the pages that the widget will appear on. The text field lets you use WP's [Conditional Tags](http://codex.wordpress.org/Conditional_Tags), or any general PHP code.
|
14 |
|
15 |
+
PLEASE NOTE The widget logic you introduce is EVAL'd directly. Anyone who has access to edit widget appearance will have the right to add any code, including malicious and possibly destructive functions. There is an optional filter 'widget_logic_eval_override' which you can use to bypass the EVAL with your own code if needed. (See [Other Notes](other_notes/)).
|
16 |
|
17 |
There is also an option to add a wordpress 'widget_content' filter -- this lets you tweak any widget's HTML to suit your theme without editing plugins and core code.
|
18 |
|
182 |
|
183 |
== Changelog ==
|
184 |
|
185 |
+
= 0.57 =
|
186 |
+
Small fixes to satisfy some define('WP_DEBUG', true) errors
|
187 |
+
|
188 |
= 0.56 =
|
189 |
Small fix to the original WP3.5 fix in 0.54 that had the side effect of failing to save logic text on newly added widgets.
|
190 |
|
widget_logic.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Widget Logic
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/widget-logic/
|
5 |
Description: Control widgets with WP's conditional tags is_home etc
|
6 |
-
Version: 0.
|
7 |
Author: Alan Trewartha
|
8 |
Author URI: http://freakytrigger.co.uk/author/alan/
|
9 |
|
@@ -113,7 +113,7 @@ function widget_logic_expand_control()
|
|
113 |
// pop the widget id on the params array (as it's not in the main params so not provided to the callback)
|
114 |
foreach ( $wp_registered_widgets as $id => $widget )
|
115 |
{ // controll-less widgets need an empty function so the callback function is called.
|
116 |
-
if (
|
117 |
wp_register_widget_control($id,$widget['name'], 'widget_logic_empty_control');
|
118 |
$wp_registered_widget_controls[$id]['callback_wl_redirect']=$wp_registered_widget_controls[$id]['callback'];
|
119 |
$wp_registered_widget_controls[$id]['callback']='widget_logic_extra_control';
|
@@ -230,13 +230,15 @@ function widget_logic_extra_control()
|
|
230 |
$value = !empty( $wl_options[$id ] ) ? htmlspecialchars( stripslashes( $wl_options[$id ] ),ENT_QUOTES ) : '';
|
231 |
|
232 |
// dealing with multiple widgets - get the number. if -1 this is the 'template' for the admin interface
|
233 |
-
$number=$params[0]['number'];
|
234 |
-
if ($number==-1) {$number="__i__"; $value="";}
|
235 |
$id_disp=$id;
|
236 |
-
if (
|
|
|
|
|
|
|
|
|
237 |
|
238 |
// output our extra widget logic field
|
239 |
-
echo "<p><label for='".$id_disp."-widget_logic'>Widget logic: <textarea class='widefat' type='text' name='".$id_disp."-widget_logic' id='".$id_disp."-widget_logic' >".$value."</textarea></label></p>";
|
240 |
}
|
241 |
|
242 |
|
3 |
Plugin Name: Widget Logic
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/widget-logic/
|
5 |
Description: Control widgets with WP's conditional tags is_home etc
|
6 |
+
Version: 0.57
|
7 |
Author: Alan Trewartha
|
8 |
Author URI: http://freakytrigger.co.uk/author/alan/
|
9 |
|
113 |
// pop the widget id on the params array (as it's not in the main params so not provided to the callback)
|
114 |
foreach ( $wp_registered_widgets as $id => $widget )
|
115 |
{ // controll-less widgets need an empty function so the callback function is called.
|
116 |
+
if (!isset($wp_registered_widget_controls[$id]))
|
117 |
wp_register_widget_control($id,$widget['name'], 'widget_logic_empty_control');
|
118 |
$wp_registered_widget_controls[$id]['callback_wl_redirect']=$wp_registered_widget_controls[$id]['callback'];
|
119 |
$wp_registered_widget_controls[$id]['callback']='widget_logic_extra_control';
|
230 |
$value = !empty( $wl_options[$id ] ) ? htmlspecialchars( stripslashes( $wl_options[$id ] ),ENT_QUOTES ) : '';
|
231 |
|
232 |
// dealing with multiple widgets - get the number. if -1 this is the 'template' for the admin interface
|
|
|
|
|
233 |
$id_disp=$id;
|
234 |
+
if (!empty($params) && isset($params[0]['number']))
|
235 |
+
{ $number=$params[0]['number'];
|
236 |
+
if ($number==-1) {$number="__i__"; $value="";}
|
237 |
+
$id_disp=$wp_registered_widget_controls[$id]['id_base'].'-'.$number;
|
238 |
+
}
|
239 |
|
240 |
// output our extra widget logic field
|
241 |
+
echo "<p><label for='".$id_disp."-widget_logic'>". __('Widget logic:','widget-logic'). " <textarea class='widefat' type='text' name='".$id_disp."-widget_logic' id='".$id_disp."-widget_logic' >".$value."</textarea></label></p>";
|
242 |
}
|
243 |
|
244 |
|