From 1c8808f7c1b82ba395985f4e6fe07a2317f1aa8a Mon Sep 17 00:00:00 2001 From: lucha <lucha@paranoici.org> Date: Fri, 5 Sep 2014 18:51:14 +0200 Subject: [PATCH] [auto] Plugin: widget-logic 0.57 --- .../languages/widget-logic-es_ES.mo | Bin 2790 -> 2844 bytes .../languages/widget-logic-es_ES.po | 9 +- .../languages/widget-logic-pt_BR.mo | Bin 0 -> 2654 bytes .../languages/widget-logic-pt_BR.po | 110 ++++++++++++++++++ wp-content/plugins/widget-logic/readme.txt | 9 +- .../plugins/widget-logic/widget_logic.php | 14 ++- 6 files changed, 129 insertions(+), 13 deletions(-) create mode 100644 wp-content/plugins/widget-logic/languages/widget-logic-pt_BR.mo create mode 100644 wp-content/plugins/widget-logic/languages/widget-logic-pt_BR.po diff --git a/wp-content/plugins/widget-logic/languages/widget-logic-es_ES.mo b/wp-content/plugins/widget-logic/languages/widget-logic-es_ES.mo index c10cf6b8102167116089ab44ec584d3bc062f054..6cbc4e4cb1e00650669725c16663ccdaa88ac497 100755 GIT binary patch delta 549 zcmaDRI!CPjo)F7a1_lNOF$M+(83qQ1GYkw2vJ4CiHH;up28Iue3=Gl?3=AI`85oin z7#Mh&7#Kns7#Iqe7#R2%7#NO0>8nf(3?d8+3{RLC7z`O07=AJ_FmN$2FlaL~Fi0>k zFqknjFgP<XF!(bwFz_=lFid7<V9;k^sApKr%)lVYz`$^snSnu$fq~&IR09tS#6VRR z1_oXR1_mn@1_nU}1_lon1_mJp28JjW1_ogU28LV~h{GFM7#M7r7#QZUFfb@FFfiO^ zV_=xZz`*d2je#MLfq`KvJ48PV2ZR>m0NGd1z@Wjwz>v+rz~IgS35CrZ3=Fyq3=F3@ z7#I>67#MzVFfb^9EaYTh$Yfw(sODr~P-I|Wc*+U!DLWU$1D0G6p9XU=Fo-iSFyuh# z7A}Z+bGR57G(hG;>CapY42+X=8O3=)-T-+K6yidYCo&4lf?@*{njjGn28A>z)L0o9 z7(_Q8WXxpZ4bMzTPc2c%$xqKrwwkQTveDF7*T7KMz+Az|z{=E2+rZGkfGfaXHz>6% zvp6$9PuC@}B-Kj6$iNV;&d|!hVlzLh1FKkmUP@+iW`163u|i5}jzT%uY^%w>Tr&YV Cy+~~U delta 512 zcmbOu_Dr<?o)F7a1_lNOQ3eJE83qQ1BMb}-vJ4CiIgB7t28IWW3=Gl?3=9t$85oin z7#RLCGBAWPFfb%AF);8kFfeR`(npyX7(^Ht7_KleFc>m0FuY`9VBlh4V31~JV31&7 zU{GUbU~pz&V6bOqVBlw9U}$D$V9;k^sArhW%)lVYz`$^rnSnu$fq~&JRKp);h=HOk z3=Dz{3=CQ<3=BdH3=B3b3=F~y3=IA(5C<o-FfiCKF)%c+Ffb@FFfi<8V_=xZz`*c; zje#MLfq|i%9ismkl>WgEv4@L;fgziro`FG=gMmSefq`Kv2LppH0|Ubv4hDuq1_p*( z91IK!APYGe7%~|c7-BgY7!(;87>;v7eaH!MxHK2Uho)Q%4B`w741Qb?bJDmN7&I6d z7^Xn!y<7|o&_HEiXMi|LU~(@bJ1@vvypZ5#V3@p+QCJof8z4`@1VJGU3N=;+1_qJM z7a22|CVQ}KFg4OOG}1LPP%t#KGB(mSFf=gW3h>trN-fJQ&dkr#bxABqwNfxLFho(e NS(nv;b#g1$bO4rgJ8l2~ diff --git a/wp-content/plugins/widget-logic/languages/widget-logic-es_ES.po b/wp-content/plugins/widget-logic/languages/widget-logic-es_ES.po index 166d969b6..5c75f6db8 100755 --- a/wp-content/plugins/widget-logic/languages/widget-logic-es_ES.po +++ b/wp-content/plugins/widget-logic/languages/widget-logic-es_ES.po @@ -2,8 +2,8 @@ msgid "" msgstr "" "Project-Id-Version: Widget Logic en español\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-12-20 11:32+0100\n" -"PO-Revision-Date: 2012-12-20 11:32+0100\n" +"POT-Creation-Date: 2013-01-07 20:56+0100\n" +"PO-Revision-Date: 2013-01-07 21:08+0100\n" "Last-Translator: Eduardo Larequi <elarequi@gmail.com>\n" "Language-Team: PNTE <blogs@educacion.navarra.es>\n" "MIME-Version: 1.0\n" @@ -96,8 +96,9 @@ msgstr "Permite cargar todas las opciones del plugin Widget Logic desde un fiche msgid "Select file for importing" msgstr "Seleccionar fichero para importar" -#~ msgid "Widget logic" -#~ msgstr "Condiciones del widget" +#: widget_logic.php:239 +msgid "Widget logic:" +msgstr "Condiciones del widget:" #~ msgid "Save" #~ msgstr "Guardar" diff --git a/wp-content/plugins/widget-logic/languages/widget-logic-pt_BR.mo b/wp-content/plugins/widget-logic/languages/widget-logic-pt_BR.mo new file mode 100644 index 0000000000000000000000000000000000000000..a20fc9eaae89bccdd9be88ee9baca5a4d1ca39c9 GIT binary patch literal 2654 zcmca7#4?qEfq_Acfq_AWfq~%+0|SFB0|P@1BS@5i;R7QBgERvJ!$(F2h9m|C23{rx z1~Uc*h5{xAhEN6uhUH8Q415d>41b|C4>JRU2m=FyG&2K(Ap--00W$*w7Xt%B5;FsX z1Oo#@E;9pzGXn!d8#4m~KLZ29DP{%+eFg@GTg(g$k_-$CTr3O>atsU%Dl8E7&MXk~ zVptd$1Q{3@3RxH!gcukYnpqeagc%qZrm;ZWy^4i_;Q%88!*Lb{24w~Yh7L9chDi(z z3~SgJ7~B{b80^^@7~(<pvO~;y2Bm+nL;TCd!NB0hz`&rv!N4HEz`#(>!N8ybGKYhK z!Iy!7VJ!y(gD3+7!*31-1}_E%20=~+1_cHNh8Ru;1|0?lhFU0p6(_{qr#T`1dBVxS zAkV<S@Q)MXFF7uVK3gsZ251m7a4<mp1o9s!tU&$(g((jt3g9FQ0|Ns$G_F8l43hwb zBgoBc3=lW6LM50P7#P?=amK*Fz{J47zzGs}Oi58tFV9R#Pc4a0&d)1J%_~t?NXyJA zNiAY<Oi3wLNL0v6EmsH+fC?&9=9elYC*~=X7N;s?=7G3H3i;)E3d#8?sd@^2`6UW@ zsi`TcDGF)%MGCoznRyD~VAB<R^3yYu71B!cl1no4^AdA1ODgpkob&Tait=+5ATB6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^KO1Zz$Nmsudk<YcBK zrhu|(W?ph;L1K;q$R?!14PKlj!ppPd{9H)s1uo9OUdk*6>w~*6IX^caR=DYaN;f?Q z$C9GN;zWf+g+x%1lX!SJ$ZaY4P*b7hU23jE8Q7Vik}a<!zgQtJA5?^ZoS(0dlB$rL zSX7jno|v1OSCWrnCA6SREK<lXIK2Gu)>K$ohb-b)R9Ko>1~v$$N+C0^?C`>z%#?fv zXNcKF3MKg|iNy+u#c-p*Hu-?;FU?g*L>Q8spO==IURnh8O=>PU6XYutlolZwmveY? zdS-GWgI{W12C9A}N2KK!<tC=&LyE~nc&V5SE+jLn5<xCXNmVFG%>_9vuOzh?q(&hh zxd_NpC{E2vR47X=%1p~l2ALL|m{W!n01$sLKt*wRGY{2~cs&U&Q9<db2p%rr1O_QN z6N^9vYie<EzM_IZTtP}IB4E?<GZmm}Q}P)?L8&<(RJ9bR7L|aq2WpYa;17*kut$(m zDMLzXK|UxE!czz+lYs&YRP-k1m82@<D<mf-r5;|Mn3IvOkdmlSaCl*QW?mvgVQFGs uN<Jvg^A++HK!x$)m9S)%k`I&4SAZ7FnR%JXnTZM-1&Jv|hZpB-G5`Py$v1fb literal 0 HcmV?d00001 diff --git a/wp-content/plugins/widget-logic/languages/widget-logic-pt_BR.po b/wp-content/plugins/widget-logic/languages/widget-logic-pt_BR.po new file mode 100644 index 000000000..4bd78740a --- /dev/null +++ b/wp-content/plugins/widget-logic/languages/widget-logic-pt_BR.po @@ -0,0 +1,110 @@ +# 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" diff --git a/wp-content/plugins/widget-logic/readme.txt b/wp-content/plugins/widget-logic/readme.txt index 1160febac..e8551cb51 100644 --- a/wp-content/plugins/widget-logic/readme.txt +++ b/wp-content/plugins/widget-logic/readme.txt @@ -3,8 +3,8 @@ Contributors: alanft Donate link: http://www.justgiving.com/widgetlogic_cancerresearchuk Tags: widget, admin, conditional tags, filter, context Requires at least: 2.8 -Tested up to: 3.5 -Stable tag: 0.56 +Tested up to: 3.9 +Stable tag: 0.57 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. @@ -12,7 +12,7 @@ Widget Logic lets you control on which pages widgets appear using WP's condition == 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. -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. @@ -182,6 +182,9 @@ function make_alternating_widget_styles($content='') == Changelog == += 0.57 = +Small fixes to satisfy some define('WP_DEBUG', true) errors + = 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. diff --git a/wp-content/plugins/widget-logic/widget_logic.php b/wp-content/plugins/widget-logic/widget_logic.php index a8e8a896f..c12e209c3 100644 --- a/wp-content/plugins/widget-logic/widget_logic.php +++ b/wp-content/plugins/widget-logic/widget_logic.php @@ -3,7 +3,7 @@ Plugin Name: Widget Logic Plugin URI: http://wordpress.org/extend/plugins/widget-logic/ Description: Control widgets with WP's conditional tags is_home etc -Version: 0.56 +Version: 0.57 Author: Alan Trewartha Author URI: http://freakytrigger.co.uk/author/alan/ @@ -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) foreach ( $wp_registered_widgets as $id => $widget ) { // 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_registered_widget_controls[$id]['callback_wl_redirect']=$wp_registered_widget_controls[$id]['callback']; $wp_registered_widget_controls[$id]['callback']='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 ) : ''; // 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; - 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 - 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>"; } -- GitLab