From 56f67550117818f36570331fb153e7cc33c62221 Mon Sep 17 00:00:00 2001 From: xaviernietosanchez Date: Fri, 3 Jun 2016 08:44:07 +0200 Subject: [PATCH] Show more setting options add-to-any to users admin xtecbloc. Replace languages files. Fix show tabs for superadmins. Preselected options to all users except superadmin --- addtoany.admin.php | 104 +++++++++++++--- languages/add-to-any-ca.mo | Bin 6164 -> 6221 bytes languages/add-to-any-ca.po | 246 ++++++++++++++++++------------------- 3 files changed, 211 insertions(+), 139 deletions(-) diff --git a/addtoany.admin.php b/addtoany.admin.php index a07180f..0b7127f 100644 --- a/addtoany.admin.php +++ b/addtoany.admin.php @@ -372,13 +372,17 @@ function A2A_SHARE_SAVE_options_page() { } $options = get_option( 'addtoany_options' ); -// XTEC ************ AFEGIT - Define default values + +// XTEC ************ AFEGIT - Define default values. The xtecblock users default other options // 2016.03.16 @sarjona - if (!isset($options['display_in_posts_on_front_page'])) { +// 2016.06.02 @xavinieto + if( is_xtec_super_admin() ){ + if (!isset($options['display_in_posts_on_front_page'])) { $options['display_in_posts_on_front_page'] = -1; - } - if (!isset($options['display_in_posts_on_archive_pages'])) { - $options['display_in_posts_on_archive_pages'] = -1; + } + if (!isset($options['display_in_posts_on_archive_pages'])) { + $options['display_in_posts_on_archive_pages'] = -1; + } } if (!isset($options['display_in_feed'])) { $options['display_in_feed'] = -1; @@ -441,12 +445,24 @@ function position_in_content( $options, $option_box = false ) { + + + + - - + + -->
@@ -640,7 +656,16 @@ function position_in_content( $options, $option_box = false ) {
- + + + + +
@@ -665,6 +690,15 @@ function position_in_content( $options, $option_box = false ) { ?> value="1"/> + + + +
+ + +
+ + + + true, '_builtin' => false ), 'objects' ) ); @@ -722,9 +773,28 @@ function position_in_content( $options, $option_box = false ) {
Widgets and Floating for additional placement options. For advanced placement, see the FAQs.", 'add-to-any'); ?>
+ + + + +
+ + + +
@@ -811,14 +881,16 @@ function position_in_content( $options, $option_box = false ) {

- - + + value="1"/> + + --> diff --git a/languages/add-to-any-ca.mo b/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!{uQt*9kFiR$1r4B~05!p~4EwuCx#zq|hJ>fukv zr|&H< z(@OtlpIhod%|!ce5lUUeeZ(Wgy@Zx@FR_xeB{~mEI)1wr$*V_oCETW0HM+K73gFd@7#;m=%vDZ1W#g6!NzK diff --git a/languages/add-to-any-ca.po b/languages/add-to-any-ca.po index a761429..8c3aef1 100644 --- a/languages/add-to-any-ca.po +++ b/languages/add-to-any-ca.po @@ -2,139 +2,143 @@ # This file is distributed under the same license as the Stable (latest release) package. msgid "" msgstr "" -"PO-Revision-Date: 2016-03-17 10:08+0100\n" +"PO-Revision-Date: 2016-05-25 16:52+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Poedit 1.8.4\n" +"X-Generator: Poedit 1.8.7.1\n" "Project-Id-Version: Stable (latest release)\n" "POT-Creation-Date: \n" "Last-Translator: Mònica Grau \n" "Language-Team: \n" "Language: ca\n" -#: addtoany.admin.php:680 +#. Description of the plugin/theme +msgid "Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more." +msgstr "" + +#: addtoany.admin.php:694 msgid "Height" msgstr "Alt" -#: addtoany.admin.php:678 +#: addtoany.admin.php:692 msgid "Width" msgstr "Ample" -#: addtoany.admin.php:639 +#: addtoany.admin.php:653 msgid "Additional JavaScript" msgstr "JavaScript Addicional" -#: addtoany.admin.php:656 +#: addtoany.admin.php:670 msgid "Additional CSS" msgstr "CSS Addicional" -#: addtoany.admin.php:659 +#: addtoany.admin.php:673 msgid "Below you can add special CSS code for AddToAny." msgstr "A sota, podeu afegir codi CSS especial per a l'AddToAny." #. Plugin Name of the plugin/theme msgid "AddToAny Share Buttons" -msgstr "" +msgstr "Botons de compartició de l'AddToAny" -#: addtoany.admin.php:696 +#: addtoany.admin.php:710 msgid "Cache AddToAny locally with daily cache updates" msgstr "" -#: addtoany.admin.php:699 +#: addtoany.admin.php:713 msgid "Most sites should not use this option. By default, AddToAny loads asynchronously and most efficiently. Since many visitors will have AddToAny cached in their browser already, serving AddToAny locally from your site will be slower for those visitors. If local caching is enabled, be sure to set far future cache/expires headers for image files in your uploads/addtoany directory." msgstr "" -#: addtoany.admin.php:709 +#: addtoany.admin.php:723 msgid "AddToAny "floating" share buttons stay in a fixed position even when the user scrolls." msgstr "" -#: addtoany.admin.php:710 +#: addtoany.admin.php:724 msgid "Large icons from your currently selected buttons are displayed in your floating bar(s). 3rd party buttons (Like, Tweet, etc.) are not displayed." msgstr "" -#: addtoany.admin.php:712 +#: addtoany.admin.php:726 msgid "Vertical Buttons" msgstr "Botons en vertical" -#: addtoany.admin.php:717 addtoany.admin.php:753 +#: addtoany.admin.php:731 addtoany.admin.php:767 msgid "Left docked" msgstr "" -#: addtoany.admin.php:719 addtoany.admin.php:755 +#: addtoany.admin.php:733 addtoany.admin.php:769 msgid "Right docked" msgstr "" -#: addtoany.admin.php:725 addtoany.admin.php:761 +#: addtoany.admin.php:739 addtoany.admin.php:775 msgid "Responsiveness" msgstr "" -#: addtoany.admin.php:735 addtoany.admin.php:771 +#: addtoany.admin.php:749 addtoany.admin.php:785 msgid "Position" msgstr "Posició" -#: addtoany.admin.php:741 addtoany.admin.php:777 +#: addtoany.admin.php:755 addtoany.admin.php:791 msgid "Offset" msgstr "" -#: addtoany.admin.php:748 +#: addtoany.admin.php:762 msgid "Horizontal Buttons" msgstr "Botons horitzontals" -#: addtoany.admin.php:789 +#: addtoany.admin.php:803 msgid "Save Changes" msgstr "Desa els canvis" -#: addtoany.admin.php:790 +#: addtoany.admin.php:804 msgid "Are you sure you want to delete all AddToAny options?" msgstr "Esteu segurs que voleu esborrar totes les opcions de l'AddToAny?" -#: addtoany.admin.php:790 +#: addtoany.admin.php:804 msgid "Reset" msgstr "Reinicialitza" -#: addtoany.admin.php:795 +#: addtoany.admin.php:809 msgid "Like this plugin?" msgstr "Us agrada aquesta extensió?" -#: addtoany.admin.php:796 +#: addtoany.admin.php:810 msgid "Give it a 5 star rating on WordPress.org." msgstr "" -#: addtoany.admin.php:797 +#: addtoany.admin.php:811 msgid "Share it and follow AddToAny on Facebook & Twitter." msgstr "" -#: addtoany.admin.php:799 +#: addtoany.admin.php:813 msgid "Need support?" msgstr "Necessiteu suport?" -#: addtoany.admin.php:800 +#: addtoany.admin.php:814 msgid "See the FAQs." msgstr "Vegeu les Preguntes més freqüents." -#: addtoany.admin.php:801 +#: addtoany.admin.php:815 msgid "Search the support forums." -msgstr "Cerqueu als fòrums de suport." +msgstr "Cerca als fòrums de suport." -#: addtoany.admin.php:1102 +#: addtoany.admin.php:1116 msgid "Add/Remove Services" -msgstr "Afegeix/elimina serveis" +msgstr "Afegeix/Elimina serveis" -#: addtoany.widgets.php:75 addtoany.widgets.php:173 +#: addtoany.widgets.php:88 addtoany.widgets.php:202 msgid "Title:" msgstr "Títol:" -#: addtoany.widgets.php:79 addtoany.widgets.php:189 +#: addtoany.widgets.php:92 addtoany.widgets.php:218 msgid "AddToAny Settings" msgstr "Configuració de l'AddToAny" -#: addtoany.widgets.php:179 +#: addtoany.widgets.php:208 msgid "%s URL:" msgstr "%s URL:" -#: addtoany.widgets.php:179 +#: addtoany.widgets.php:208 msgid "%s ID:" msgstr "%s ID:" @@ -143,281 +147,277 @@ msgstr "%s ID:" msgid "https://www.addtoany.com/" msgstr "" -#. Description of the plugin/theme -msgid "Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more. [Settings]" -msgstr "" - -#: add-to-any.php:590 addtoany.admin.php:298 addtoany.admin.php:491 -#: addtoany.admin.php:493 addtoany.admin.php:496 addtoany.admin.php:498 -#: addtoany.admin.php:527 +#: add-to-any.php:608 addtoany.admin.php:312 addtoany.admin.php:505 +#: addtoany.admin.php:507 addtoany.admin.php:510 addtoany.admin.php:512 +#: addtoany.admin.php:541 msgid "Share" msgstr "Comparteix" -#: add-to-any.php:591 +#: add-to-any.php:609 msgid "Save" msgstr "Desa" -#: add-to-any.php:592 +#: add-to-any.php:610 msgid "Subscribe" -msgstr "Subscriu-me" +msgstr "Subscriure's" -#: add-to-any.php:593 +#: add-to-any.php:611 msgid "Email" msgstr "Correu electrònic" -#: add-to-any.php:594 +#: add-to-any.php:612 msgid "Bookmark" msgstr "Preferit" -#: add-to-any.php:595 +#: add-to-any.php:613 msgid "Show all" -msgstr "Mostra'ls tots" +msgstr "Mostra tots" -#: add-to-any.php:596 +#: add-to-any.php:614 msgid "Show less" msgstr "Mostra menys" -#: add-to-any.php:597 +#: add-to-any.php:615 msgid "Find service(s)" -msgstr "Busca servei(s)" +msgstr "Cerca servei(s)" -#: add-to-any.php:598 +#: add-to-any.php:616 msgid "Instantly find any service to add to" -msgstr "Troba al moment qualsevol servei per a afegir a" +msgstr "Troba instantàniament qualsevol servei per a afegir a" -#: add-to-any.php:599 +#: add-to-any.php:617 msgid "Powered by" msgstr "Potenciat per" -#: add-to-any.php:600 +#: add-to-any.php:618 msgid "Share via email" msgstr "Comparteix per correu electrònic" -#: add-to-any.php:601 +#: add-to-any.php:619 msgid "Subscribe via email" msgstr "Subscriu-me per correu electrònic" -#: add-to-any.php:602 +#: add-to-any.php:620 msgid "Bookmark in your browser" msgstr "Afegiu l'adreça d'interès al vostre navegador" -#: add-to-any.php:603 +#: add-to-any.php:621 msgid "Press Ctrl+D or \\u2318+D to bookmark this page" msgstr "Premeu Ctrl+D o \\u2318+D per afegir als preferits aquesta pàgina" -#: add-to-any.php:604 +#: add-to-any.php:622 msgid "Add to your favorites" msgstr "Afegiu als vostres favorits" -#: add-to-any.php:605 +#: add-to-any.php:623 msgid "Send from any email address or email program" msgstr "Envia des de qualsevol adreça o programa de correu electrònic" -#: add-to-any.php:606 +#: add-to-any.php:624 msgid "Email program" msgstr "Programa de correu electrònic" -#: add-to-any.php:607 +#: add-to-any.php:625 msgid "More…" msgstr "Més…" -#: add-to-any.php:1070 +#: add-to-any.php:1091 msgid "Unable to create directory %s. Is its parent directory writable by the server?" msgstr "" -#: add-to-any.php:1148 +#: add-to-any.php:1169 msgid "Settings" msgstr "Preferències" #. Author of the plugin/theme -#: add-to-any.php:1116 addtoany.admin.php:10 +#: add-to-any.php:1137 addtoany.admin.php:12 msgid "AddToAny" msgstr "" -#: addtoany.admin.php:24 +#: addtoany.admin.php:38 msgid "Show sharing buttons." msgstr "Mostra els botons de compartició" -#: addtoany.admin.php:348 +#: addtoany.admin.php:362 msgid "Settings saved." msgstr "Preferències desades." -#: addtoany.admin.php:369 +#: addtoany.admin.php:383 msgid "bottom" -msgstr "avall" +msgstr "sota" -#: addtoany.admin.php:373 +#: addtoany.admin.php:387 msgid "top" -msgstr "amunt" +msgstr "sobre" -#: addtoany.admin.php:377 +#: addtoany.admin.php:391 msgid "top & bottom" msgstr "sobre i sota" -#: add-to-any.php:1115 addtoany.admin.php:404 +#: add-to-any.php:1136 addtoany.admin.php:418 msgid "AddToAny Share Settings" msgstr "Paràmetres de compartició de l'AddToAny" -#: addtoany.admin.php:407 +#: addtoany.admin.php:421 msgid "Standard" msgstr "Estàndard" -#: addtoany.admin.php:408 +#: addtoany.admin.php:422 msgid "Floating" msgstr "Flotant" -#: addtoany.admin.php:419 +#: addtoany.admin.php:433 msgid "Icon Size" msgstr "Mida de la icona" -#: addtoany.admin.php:421 +#: addtoany.admin.php:435 msgid "Large" msgstr "Gran" -#: addtoany.admin.php:423 +#: addtoany.admin.php:437 msgid "Small" msgstr "Petita" -#: addtoany.admin.php:425 +#: addtoany.admin.php:439 msgid "Custom" msgstr "Personalitzada" -#: addtoany.admin.php:432 +#: addtoany.admin.php:446 msgid "Standalone Buttons" msgstr "Botons independents" -#: addtoany.admin.php:437 +#: addtoany.admin.php:451 msgid "Choose the services you want below.  Click a chosen service again to remove.  Reorder services by dragging and dropping as they appear above." msgstr "Seleccioneu els serveis que voleu a continuació.  Cliqueu a un servei de nou per eliminar-lo.  Reordeneu els serveis arrossegant-los i deixant-los en l'ordre que desitgeu." -#: addtoany.admin.php:478 +#: addtoany.admin.php:492 msgid "Universal Button" msgstr "Botó universal" -#: addtoany.admin.php:519 +#: addtoany.admin.php:533 msgid "Image URL" msgstr "URL de la imatge" -#: addtoany.admin.php:525 +#: addtoany.admin.php:539 msgid "Text only" msgstr "Només text" -#: addtoany.admin.php:530 +#: addtoany.admin.php:544 msgid "This option will disable universal sharing. Are you sure you want to disable universal sharing?" msgstr "Aquesta opció desactivarà la compartició universal. Esteu segurs que ho voleu desactivar?" -#: addtoany.admin.php:531 addtoany.admin.php:721 addtoany.admin.php:757 +#: addtoany.admin.php:545 addtoany.admin.php:735 addtoany.admin.php:771 msgid "None" msgstr "Cap" -#: addtoany.admin.php:544 +#: addtoany.admin.php:558 msgid "Sharing Header" msgstr "Capçalera de compartició" -#: addtoany.admin.php:547 +#: addtoany.admin.php:561 msgid "Share this:" -msgstr "Comparteix:" +msgstr "Comparteix" -#: addtoany.admin.php:553 addtoany.admin.php:715 addtoany.admin.php:751 +#: addtoany.admin.php:567 addtoany.admin.php:729 addtoany.admin.php:765 msgid "Placement" msgstr "Emplaçament" # MODIFICAT XTEC -#: addtoany.admin.php:558 +#: addtoany.admin.php:572 msgid "Display at the %s of posts" -msgstr "Mostra a %s dels articles" +msgstr "Mostra %s els articles" # MODIFICAT XTEC -#: addtoany.admin.php:566 +#: addtoany.admin.php:580 msgid "Display at the %s of posts on the front page" -msgstr "Mostra a %s dels articles a la pàgina de portada" +msgstr "Mostra %s els articles de la pàgina de portada" # MODIFICAT XTEC -#: addtoany.admin.php:574 +#: addtoany.admin.php:588 msgid "Display at the %s of posts on archive pages" -msgstr "Mostra a %s dels articles a les pàgines d'arxiu" +msgstr "Mostra %s els articles de les pàgines d'arxiu" -#: addtoany.admin.php:582 +#: addtoany.admin.php:596 msgid "Display at the %s of posts in the feed" msgstr "" -#: addtoany.admin.php:589 +#: addtoany.admin.php:603 msgid "Display at the %s of excerpts" msgstr "" -#: addtoany.admin.php:594 +#: addtoany.admin.php:608 msgid "Display at the %s of pages" -msgstr "Mostra a %s de les pàgines" +msgstr "Mostra %s les pàgines" -#: addtoany.admin.php:606 +#: addtoany.admin.php:620 msgid "Display at the %s of %s" -msgstr "Mostra a %s de %s" +msgstr "Mostra %s de %s" -#: addtoany.admin.php:612 +#: addtoany.admin.php:626 msgid "See Widgets and Floating for additional placement options. For advanced placement, see the FAQs." msgstr "" -#: addtoany.admin.php:618 +#: addtoany.admin.php:632 msgid "Menu Options" msgstr "Opcions del menú" -#: addtoany.admin.php:622 +#: addtoany.admin.php:636 msgid "Only show the universal share menu when the user clicks the universal share button" -msgstr "Mostra el menú de compartir universal només quan l'usuari faci clic al botó de compartir universal" +msgstr "Mostra menú de compartir universal només quan l'usuari faci clic al botó de compartir universal" -#: addtoany.admin.php:627 +#: addtoany.admin.php:641 msgid "Show the title of the page within the universal share menu" -msgstr "Mostra el títol de la pàgina dins del menú de compartir universal" +msgstr "Mostra el títol de la pina dins del menú de compartir universal" -#: addtoany.admin.php:630 +#: addtoany.admin.php:644 msgid "You can use AddToAny's Menu Styler to customize the colors of your universal share menu. When you're done, be sure to paste the generated code in the Additional JavaScript box below." msgstr "" -#: addtoany.admin.php:633 +#: addtoany.admin.php:647 msgid "Open the AddToAny Menu Styler in a new window" msgstr "Obrir el personalitzador d'estil de AddToAny a una nova finestra" -#: addtoany.admin.php:633 +#: addtoany.admin.php:647 msgid "Open Menu Styler" msgstr "Obrir el personalitzador d'estils" -#: addtoany.admin.php:643 +#: addtoany.admin.php:657 msgid "Paste the code from AddToAny's Menu Styler in the box below!" -msgstr "Enganxeu el codi del personalitzador d'estil al següent requadre!" +msgstr "Enganxeu el codi del personalitzador d'estil al següent requadre!" -#: addtoany.admin.php:647 +#: addtoany.admin.php:661 msgid "Below you can add special JavaScript code for AddToAny." msgstr "" -#: addtoany.admin.php:648 addtoany.admin.php:660 +#: addtoany.admin.php:662 addtoany.admin.php:674 msgid "Advanced users should explore AddToAny's additional options." msgstr "" -#: addtoany.admin.php:668 +#: addtoany.admin.php:682 msgid "Advanced Options" msgstr "Opcions avançades" -#: addtoany.admin.php:672 +#: addtoany.admin.php:686 msgid "Use custom icons. URL:" msgstr "Utilitza icones personalitzades. URL:" -#: addtoany.admin.php:676 +#: addtoany.admin.php:690 msgid "Filename extension" msgstr "Extensió del fitxer" -#: addtoany.admin.php:683 +#: addtoany.admin.php:697 msgid "Specify the URL of the directory containing your custom icons. For example, a URL of //example.com/blog/uploads/addtoany/icons/custom/ containing facebook.png and twitter.png. Be sure that custom icon filenames match the icon filenames in plugins/add-to-any/icons. For AddToAny's Universal Button, select Image URL and specify the URL of your AddToAny universal share icon (above)." msgstr "" -#: addtoany.admin.php:688 +#: addtoany.admin.php:702 msgid "Use default CSS" msgstr "Fes servir el CSS per defecte" -#: addtoany.admin.php:691 +#: addtoany.admin.php:705 msgid "Only disable AddToAny's default stylesheet if you already have the necessary CSS code applied to your AddToAny buttons." msgstr "" # XTEC ************ AFEGIT - New strings for localization support # 2016.04.11 @sarjona msgid "Show count" -msgstr "Mostra recompte" \ No newline at end of file +msgstr "Mostra el recompte"