Commit 1c8808f7 authored by lucha's avatar lucha
Browse files

[auto] Plugin: widget-logic 0.57

parent 6255fbb4
...@@ -2,8 +2,8 @@ msgid "" ...@@ -2,8 +2,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Widget Logic en español\n" "Project-Id-Version: Widget Logic en español\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-12-20 11:32+0100\n" "POT-Creation-Date: 2013-01-07 20:56+0100\n"
"PO-Revision-Date: 2012-12-20 11:32+0100\n" "PO-Revision-Date: 2013-01-07 21:08+0100\n"
"Last-Translator: Eduardo Larequi <elarequi@gmail.com>\n" "Last-Translator: Eduardo Larequi <elarequi@gmail.com>\n"
"Language-Team: PNTE <blogs@educacion.navarra.es>\n" "Language-Team: PNTE <blogs@educacion.navarra.es>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
...@@ -96,8 +96,9 @@ msgstr "Permite cargar todas las opciones del plugin Widget Logic desde un fiche ...@@ -96,8 +96,9 @@ msgstr "Permite cargar todas las opciones del plugin Widget Logic desde un fiche
msgid "Select file for importing" msgid "Select file for importing"
msgstr "Seleccionar fichero para importar" msgstr "Seleccionar fichero para importar"
#~ msgid "Widget logic" #: widget_logic.php:239
#~ msgstr "Condiciones del widget" msgid "Widget logic:"
msgstr "Condiciones del widget:"
#~ msgid "Save" #~ msgid "Save"
#~ msgstr "Guardar" #~ msgstr "Guardar"
# Copyright (C) 2012
# This file is distributed under the same license as the package.
msgid ""
msgstr ""
"Project-Id-Version: Widget Logic\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wp\n"
"POT-Creation-Date: 2012-12-17 22:12:06+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2013-02-13 11:09-0300\n"
"Last-Translator: Paulino Michelazzo <paulino@michelazzo.com.br>\n"
"Language-Team: Paulino Michelazzo <michelazzo@me.com>\n"
"Language: pt_BR\n"
"X-Generator: Poedit 1.5.4\n"
"X-Poedit-SourceCharset: UTF-8\n"
#: widget_logic.php:5
msgid "Control widgets with WP's conditional tags is_home etc"
msgstr "Controla widgets com tags condicionais do WordPress como is_home, etc."
#: widget_logic.php:18
msgid "when plugin starts (default)"
msgstr "quando o plugin inicia (padrão)"
#: widget_logic.php:19
msgid "after theme loads"
msgstr "depois de carregar o tema"
#: widget_logic.php:20
msgid "when all PHP loaded"
msgstr "quando todo o PHP é carregado"
#: widget_logic.php:21
msgid "during page header"
msgstr "durante o cabeçalho da página"
#: widget_logic.php:96
msgid "Success! Options file imported"
msgstr "Sucesso! O arquivo de opções foi importado"
#: widget_logic.php:99
msgid "Invalid options file"
msgstr "Arquivo de opções inválido"
#: widget_logic.php:104
msgid "No options file provided"
msgstr "Nenhum arquivo de opções informado"
#: widget_logic.php:173
msgid "Widget Logic options"
msgstr "Opções do Widget Logic"
#: widget_logic.php:176
msgid ""
"Adds a new WP filter you can use in your own code. Not needed for main "
"Widget Logic functionality."
msgstr ""
"Adiciona um novo filtro do WordPress para você usar em seu próprio código. "
"Não é necessário para a funcionalidade principal do Widget Logic."
#: widget_logic.php:178
msgid "Add 'widget_content' filter"
msgstr "Adicionar o filtro 'widget_content'"
#: widget_logic.php:181
msgid "Resets a theme's custom queries before your Widget Logic is checked"
msgstr ""
"Reseta queries customizadas de temas antes que o Widget Login seja verificado"
#: widget_logic.php:183
msgid "Use 'wp_reset_query' fix"
msgstr "Usar o conserto 'wp_reset_query'"
#: widget_logic.php:186
msgid ""
"Delays widget logic code being evaluated til various points in the WP "
"loading process"
msgstr ""
"Atrasa a avaliação do widget logic em vários pontos no processo de "
"carregamento do WordPress"
#: widget_logic.php:186
msgid "Load logic"
msgstr "Carregar lógica"
#: widget_logic.php:199
msgid "Save WL options"
msgstr "Salvar opções do WL"
#: widget_logic.php:203
msgid "Save all WL options to a plain text config file"
msgstr "Salvar todas as opções do WL num arquivo de configuração em texto puro"
#: widget_logic.php:203
msgid "Export options"
msgstr "Exportar opções"
#: widget_logic.php:204
msgid "Import options"
msgstr "Importar opções"
#: widget_logic.php:204
msgid "Load all WL options from a plain text config file"
msgstr ""
"Carregar todas as opções do WL de um arquivo de configuração em texto puro"
#: widget_logic.php:205
msgid "Select file for importing"
msgstr "Selecionar arquivo para importar"
...@@ -3,8 +3,8 @@ Contributors: alanft ...@@ -3,8 +3,8 @@ Contributors: alanft
Donate link: http://www.justgiving.com/widgetlogic_cancerresearchuk Donate link: http://www.justgiving.com/widgetlogic_cancerresearchuk
Tags: widget, admin, conditional tags, filter, context Tags: widget, admin, conditional tags, filter, context
Requires at least: 2.8 Requires at least: 2.8
Tested up to: 3.5 Tested up to: 3.9
Stable tag: 0.56 Stable tag: 0.57
License: GPLv2 or later License: GPLv2 or later
Widget Logic lets you control on which pages widgets appear using WP's conditional tags. It also adds a 'widget_content' filter. 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,7 +12,7 @@ Widget Logic lets you control on which pages widgets appear using WP's condition
== Description == == Description ==
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. 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.
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/)). 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/)).
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. 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.
...@@ -182,6 +182,9 @@ function make_alternating_widget_styles($content='') ...@@ -182,6 +182,9 @@ function make_alternating_widget_styles($content='')
== Changelog == == Changelog ==
= 0.57 =
Small fixes to satisfy some define('WP_DEBUG', true) errors
= 0.56 = = 0.56 =
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. 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.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Plugin Name: Widget Logic Plugin Name: Widget Logic
Plugin URI: http://wordpress.org/extend/plugins/widget-logic/ Plugin URI: http://wordpress.org/extend/plugins/widget-logic/
Description: Control widgets with WP's conditional tags is_home etc Description: Control widgets with WP's conditional tags is_home etc
Version: 0.56 Version: 0.57
Author: Alan Trewartha Author: Alan Trewartha
Author URI: http://freakytrigger.co.uk/author/alan/ Author URI: http://freakytrigger.co.uk/author/alan/
...@@ -113,7 +113,7 @@ function widget_logic_expand_control() ...@@ -113,7 +113,7 @@ function widget_logic_expand_control()
// pop the widget id on the params array (as it's not in the main params so not provided to the callback) // pop the widget id on the params array (as it's not in the main params so not provided to the callback)
foreach ( $wp_registered_widgets as $id => $widget ) foreach ( $wp_registered_widgets as $id => $widget )
{ // controll-less widgets need an empty function so the callback function is called. { // controll-less widgets need an empty function so the callback function is called.
if (!$wp_registered_widget_controls[$id]) if (!isset($wp_registered_widget_controls[$id]))
wp_register_widget_control($id,$widget['name'], 'widget_logic_empty_control'); wp_register_widget_control($id,$widget['name'], 'widget_logic_empty_control');
$wp_registered_widget_controls[$id]['callback_wl_redirect']=$wp_registered_widget_controls[$id]['callback']; $wp_registered_widget_controls[$id]['callback_wl_redirect']=$wp_registered_widget_controls[$id]['callback'];
$wp_registered_widget_controls[$id]['callback']='widget_logic_extra_control'; $wp_registered_widget_controls[$id]['callback']='widget_logic_extra_control';
...@@ -230,13 +230,15 @@ function widget_logic_extra_control() ...@@ -230,13 +230,15 @@ function widget_logic_extra_control()
$value = !empty( $wl_options[$id ] ) ? htmlspecialchars( stripslashes( $wl_options[$id ] ),ENT_QUOTES ) : ''; $value = !empty( $wl_options[$id ] ) ? htmlspecialchars( stripslashes( $wl_options[$id ] ),ENT_QUOTES ) : '';
// dealing with multiple widgets - get the number. if -1 this is the 'template' for the admin interface // dealing with multiple widgets - get the number. if -1 this is the 'template' for the admin interface
$number=$params[0]['number'];
if ($number==-1) {$number="__i__"; $value="";}
$id_disp=$id; $id_disp=$id;
if (isset($number)) $id_disp=$wp_registered_widget_controls[$id]['id_base'].'-'.$number; if (!empty($params) && isset($params[0]['number']))
{ $number=$params[0]['number'];
if ($number==-1) {$number="__i__"; $value="";}
$id_disp=$wp_registered_widget_controls[$id]['id_base'].'-'.$number;
}
// output our extra widget logic field // output our extra widget logic field
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>"; 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>";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment