WordPress.org

Plugin Directory

Changeset 460540


Ignore:
Timestamp:
11/08/11 11:22:39 (2 years ago)
Author:
ab-tools
Message:

Content filter priority can now be changed.

Location:
facebook-twitter-google-social-widgets/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • facebook-twitter-google-social-widgets/trunk/SocialWidgets.php

    r458692 r460540  
    55Plugin URI: http://www.ab-weblog.com/en/wordpress-plug-ins/social-widgets/ 
    66Description: Simple plugin that displays the most important social widgets from Facebook, Twitter and Google+ below your posts. Very easy to setup: just activate the plug-in and the social widgets are displayed immediately - no complicated configuration! 
    7 Version: 1.2.2 
     7Version: 1.3.0 
    88Author: Andreas Breitschopp 
    99Author URI: http://www.ab-weblog.com 
  • facebook-twitter-google-social-widgets/trunk/includes/SWAdmin.php

    r451363 r460540  
    2424    $cssstyleall = $_POST['sw_cssstyleall']; 
    2525    $cssstylewidget = $_POST['sw_cssstylewidget']; 
     26    $contentfilterpriority = $_POST['sw_contentfilterpriority']; 
    2627    $supportplugin = $_POST['sw_supportplugin']; 
    27  
    2828    ?>   
    2929    <div class="updated"> 
     
    4949      echo '<strong>' . __('Error while saving options.', SW_DEF_STRING) . '</strong><br />'; 
    5050      _e('The widgets need to be displayed either above the posts, below them or both!', SW_DEF_STRING); 
     51    } elseif (!is_numeric($contentfilterpriority)) { 
     52      echo '<strong>' . __('Error while saving options.', SW_DEF_STRING) . '</strong><br />'; 
     53      _e('The content filter priority needs to be an integer value!', SW_DEF_STRING); 
    5154    } else { 
    5255      update_option('sw_facebook', $facebook); 
     
    6770      update_option('sw_cssstyleall', $cssstyleall); 
    6871      update_option('sw_cssstylewidget', $cssstylewidget); 
     72      update_option('sw_contentfilterpriority', $contentfilterpriority); 
    6973      update_option('sw_supportplugin', $supportplugin); 
    7074      ?>   
     
    108112  $cssstyleall = get_option('sw_cssstyleall'); 
    109113  $cssstylewidget = get_option('sw_cssstylewidget'); 
     114  $contentfilterpriority = get_option('sw_contentfilterpriority'); 
    110115  $supportplugin = get_option('sw_supportplugin'); 
    111116  if ($facebook == '') { 
     
    125130  if ($displayabovepost == '' && $displaybelowpost == '') 
    126131    $displaybelowpost = 1; 
     132  if ($contentfilterpriority == '') $contentfilterpriority = 10; 
    127133  ?> 
    128134    <form name="sw_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> 
     
    237243              </tr> 
    238244              <tr> 
     245                <td><?php _e("Content filter priority:", SW_DEF_STRING); ?></td> 
     246                <td><input type="text" name="sw_contentfilterpriority" value="<?php echo $contentfilterpriority; ?>" size="20"> <?php _e('(plug-in priority (default: 10))', SW_DEF_STRING); ?></td> 
     247              </tr> 
     248              <tr> 
    239249                <td colspan="2"><input type="checkbox" name="sw_supportplugin" value="1"<?php if ($supportplugin == 1) echo ' checked'; ?>> <?php _e("Support this free plug-in with a small powered by link at your page footer. Thank you!", SW_DEF_STRING); ?></td> 
    240250              </tr> 
  • facebook-twitter-google-social-widgets/trunk/includes/SWOutput.php

    r451363 r460540  
    9696    return $content; 
    9797} 
    98 add_filter('the_content', 'sw_content_filter'); 
     98$contentfilterpriority = get_option('sw_contentfilterpriority'); 
     99if ($contentfilterpriority == '') $contentfilterpriority = 10; 
     100add_filter('the_content', 'sw_content_filter', $contentfilterpriority); 
    99101 
    100102function sw_footer() { 
  • facebook-twitter-google-social-widgets/trunk/languages/sw-de_DE.po

    r451363 r460540  
    99"Project-Id-Version: Facebook, Twitter & Google+ Social Widgets\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2011-10-15 16:38+0100\n" 
    12 "PO-Revision-Date: 2011-10-15 16:43+0100\n" 
     11"POT-Creation-Date: 2011-11-08 12:15+0100\n" 
     12"PO-Revision-Date: 2011-11-08 12:21+0100\n" 
    1313"Last-Translator: Andreas Breitschopp <a-breitschopp@ab-tools.com>\n" 
    1414"Language-Team: Andreas Breitschopp <a-breitschopp@ab-tools.com>\n" 
     
    2424msgstr "Optionen von Social Widgets" 
    2525 
    26 #: SWAdmin.php:36 
    27 #: SWAdmin.php:39 
    28 #: SWAdmin.php:46 
    29 #: SWAdmin.php:49 
     26#: SWAdmin.php:37 
     27#: SWAdmin.php:40 
     28#: SWAdmin.php:47 
     29#: SWAdmin.php:50 
     30#: SWAdmin.php:53 
    3031msgid "Error while saving options." 
    3132msgstr "Fehler beim Speichern der Optionen." 
    3233 
    33 #: SWAdmin.php:37 
     34#: SWAdmin.php:38 
    3435msgid "Please make sure that each position for a widget is only chosen once!" 
    3536msgstr "Bitte stellen Sie sicher, dass jede Position für ein Widget nur einmal gewählt wurde!" 
    3637 
    37 #: SWAdmin.php:40 
     38#: SWAdmin.php:41 
    3839msgid "At least one widget needs to be displayed!" 
    3940msgstr "Mindestens ein Widget muss angezeigt werden!" 
    4041 
    41 #: SWAdmin.php:47 
     42#: SWAdmin.php:48 
    4243msgid "The widgets need to be displayed at least on one page!" 
    4344msgstr "Die Widgets müssen mindestens auf einer Seite angezeigt werden!" 
    4445 
    45 #: SWAdmin.php:50 
     46#: SWAdmin.php:51 
    4647msgid "The widgets need to be displayed either above the posts, below them or both!" 
    4748msgstr "Die Widgets müssen entweder oberhalb der Artikel, unterhalb dieser oder an beiden Position angezeigt werden!" 
    4849 
    49 #: SWAdmin.php:71 
     50#: SWAdmin.php:54 
     51msgid "The content filter priority needs to be an integer value!" 
     52msgstr "Die Priorität des Inhaltsfilters muss ein Integer-Wert sein!" 
     53 
     54#: SWAdmin.php:76 
    5055msgid "Options saved." 
    5156msgstr "Optionen gespeichert." 
    5257 
    53 #: SWAdmin.php:82 
     58#: SWAdmin.php:87 
    5459#, php-format 
    5560msgid "If you like this plug-in, please <a href=\"%s\">consider a donation</a> to keep it free. Thank you!" 
    5661msgstr "Wenn Ihnen dieses Plug-In gefällt, <a href=\"%s\">erwägen Sie bitte eine Spende</a>, damit es kostenlos bleibt. Vielen Dank!" 
    5762 
    58 #: SWAdmin.php:133 
     63#: SWAdmin.php:140 
    5964msgid "Display Order of Social Widgets" 
    6065msgstr "Anzeigereihenfolge der Social Widgets" 
    6166 
    62 #: SWAdmin.php:140 
     67#: SWAdmin.php:147 
    6368msgid "Facebook:" 
    6469msgstr "Facebook:" 
    6570 
    66 #: SWAdmin.php:143 
    67 #: SWAdmin.php:154 
    68 #: SWAdmin.php:165 
     71#: SWAdmin.php:150 
     72#: SWAdmin.php:161 
     73#: SWAdmin.php:172 
    6974msgid "Don't display" 
    7075msgstr "Nicht anzeigen" 
    7176 
    72 #: SWAdmin.php:144 
    73 #: SWAdmin.php:155 
    74 #: SWAdmin.php:166 
     77#: SWAdmin.php:151 
     78#: SWAdmin.php:162 
     79#: SWAdmin.php:173 
    7580msgid "Position 1" 
    7681msgstr "Position 1" 
    7782 
    78 #: SWAdmin.php:145 
    79 #: SWAdmin.php:156 
    80 #: SWAdmin.php:167 
     83#: SWAdmin.php:152 
     84#: SWAdmin.php:163 
     85#: SWAdmin.php:174 
    8186msgid "Position 2" 
    8287msgstr "Position 2" 
    8388 
    84 #: SWAdmin.php:146 
    85 #: SWAdmin.php:157 
    86 #: SWAdmin.php:168 
     89#: SWAdmin.php:153 
     90#: SWAdmin.php:164 
     91#: SWAdmin.php:175 
    8792msgid "Position 3" 
    8893msgstr "Position 3" 
    8994 
    90 #: SWAdmin.php:151 
     95#: SWAdmin.php:158 
    9196msgid "Twitter:" 
    9297msgstr "Twitter:" 
    9398 
    94 #: SWAdmin.php:162 
     99#: SWAdmin.php:169 
    95100msgid "Google+:" 
    96101msgstr "Google+:" 
    97102 
    98 #: SWAdmin.php:178 
     103#: SWAdmin.php:185 
    99104msgid "Display social widgets on these pages" 
    100105msgstr "Social Widgets auf diesen Seiten anzeigen" 
    101106 
    102 #: SWAdmin.php:186 
     107#: SWAdmin.php:193 
    103108msgid "Posts" 
    104109msgstr "Artikeln" 
    105110 
    106 #: SWAdmin.php:187 
     111#: SWAdmin.php:194 
    107112msgid "Pages" 
    108113msgstr "Seiten" 
    109114 
    110 #: SWAdmin.php:188 
     115#: SWAdmin.php:195 
    111116msgid "Homepage" 
    112117msgstr "Startseite" 
    113118 
    114 #: SWAdmin.php:189 
     119#: SWAdmin.php:196 
    115120msgid "Categories" 
    116121msgstr "Kategorien" 
    117122 
    118 #: SWAdmin.php:190 
     123#: SWAdmin.php:197 
    119124msgid "Tags" 
    120125msgstr "Schlagwörtern" 
    121126 
    122 #: SWAdmin.php:191 
     127#: SWAdmin.php:198 
    123128msgid "Taxonomies" 
    124129msgstr "Taxonomien" 
    125130 
    126 #: SWAdmin.php:192 
     131#: SWAdmin.php:199 
    127132msgid "Dates" 
    128133msgstr "Daten" 
    129134 
    130 #: SWAdmin.php:193 
     135#: SWAdmin.php:200 
    131136msgid "Authors" 
    132137msgstr "Autoren" 
    133138 
    134 #: SWAdmin.php:194 
     139#: SWAdmin.php:201 
    135140msgid "Searches" 
    136141msgstr "Suchen" 
    137142 
    138 #: SWAdmin.php:195 
     143#: SWAdmin.php:202 
    139144msgid "Attachments" 
    140145msgstr "Anhänge" 
    141146 
    142 #: SWAdmin.php:197 
     147#: SWAdmin.php:204 
    143148msgid "Tip: Don't display the social widgets on pages with excerpts as this leads to broken code." 
    144149msgstr "Tipp: Zeigen Sie keine Social Widgets auf Seiten mit Textausschnitten an, da dies zu fehlerhaftem Quelltext führt." 
    145150 
    146 #: SWAdmin.php:206 
     151#: SWAdmin.php:213 
    147152msgid "Display position of social widgets" 
    148153msgstr "Anzeigeposition der Social Widgets" 
    149154 
    150 #: SWAdmin.php:214 
     155#: SWAdmin.php:221 
    151156msgid "Display social widgets above posts" 
    152157msgstr "Social Widgets oberhalb Artikel anzeigen" 
    153158 
    154 #: SWAdmin.php:215 
     159#: SWAdmin.php:222 
    155160msgid "Display social widgets below posts" 
    156161msgstr "Social Widgets unterhalb Artikel anzeigen" 
    157162 
    158 #: SWAdmin.php:224 
     163#: SWAdmin.php:231 
    159164msgid "Other Settings" 
    160165msgstr "Weitere Einstellungen" 
    161166 
    162 #: SWAdmin.php:231 
     167#: SWAdmin.php:238 
    163168msgid "Additional CSS styles applied to whole widget box:" 
    164169msgstr "Zusätzliche CSS-Styles, die auf die gesamte Widget-Box angewendet werden:" 
    165170 
    166 #: SWAdmin.php:232 
     171#: SWAdmin.php:239 
    167172msgid "(e. g. \"margin-bottom:20px\")" 
    168173msgstr "(z. B. \"margin-bottom:20px\")" 
    169174 
    170 #: SWAdmin.php:235 
     175#: SWAdmin.php:242 
    171176msgid "Additional CSS styles applied to every widget:" 
    172177msgstr "Zusätzliche CSS-Styles, die auf jedes einzelne Widget angewendet werden:" 
    173178 
    174 #: SWAdmin.php:236 
     179#: SWAdmin.php:243 
    175180msgid "(e. g. \"margin-right:10px\")" 
    176181msgstr "(z. B. \"margin-right:10px\")" 
    177182 
    178 #: SWAdmin.php:239 
     183#: SWAdmin.php:246 
     184msgid "Content filter priority:" 
     185msgstr "Priorität des Inhaltsfilters:" 
     186 
     187#: SWAdmin.php:247 
     188msgid "(plug-in priority (default: 10))" 
     189msgstr "(Plug-In-Priorität (Standard: 10))" 
     190 
     191#: SWAdmin.php:250 
    179192msgid "Support this free plug-in with a small powered by link at your page footer. Thank you!" 
    180193msgstr "Unterstützen Sie dieses kostenlose Plug-in mit einem kleinen Powered-By-Link in der Seitenfußzeile. Danke!" 
    181194 
    182 #: SWAdmin.php:246 
     195#: SWAdmin.php:257 
    183196msgid "Save options" 
    184197msgstr "Optionen speichern" 
    185198 
    186 #: SWAdmin.php:267 
     199#: SWAdmin.php:278 
    187200msgid "Settings" 
    188201msgstr "Einstellungen" 
     
    192205msgstr "Twittern" 
    193206 
    194 #~ msgid "Display social widgets on post pages" 
    195 #~ msgstr "Social Widgets auf Artikelseiten anzeigen" 
  • facebook-twitter-google-social-widgets/trunk/readme.txt

    r458692 r460540  
    66Requires at least: 3.0 
    77Tested up to: 3.2.1 
    8 Stable tag: 1.2.2 
     8Stable tag: 1.3.0 
    99 
    1010Simple plug-in that displays the most important social widgets from Facebook, Twitter and Google+ below your posts. Very easy to setup: just activate the plug-in and the social widgets are displayed immediately - no complicated configuration! 
     
    4444== Changelog == 
    4545 
     46= 1.3.0 = 
     47* *New:* Content filter priority can now be changed. 
     48 
    4649= 1.2.2 = 
    4750* *New:* Japanese translation added thanks to [redcocker](http://www.near-mint.com/blog/ "redcocker"). 
Note: See TracChangeset for help on using the changeset viewer.