Plugin Directory

Changeset 196376


Ignore:
Timestamp:
01/21/2010 08:00:42 PM (16 years ago)
Author:
Ikki24
Message:

Version 2.0.1:

  • Post title excerpt now includes html entities. Characters like ÄÖ should display properly now.
  • Post excerpt has been improved. Now it supports the following HTML tags: <a><b><i><strong><em>.
  • Template tag wpp_get_views() added. Retrieves the views count of a single post.
  • Template tag get_mostpopular() re-added. Parameter support included.
  • Shortcode bug fixed (range was always "daily" no matter what option was being selected by the user).
Location:
wordpress-popular-posts
Files:
17 added
8 edited

Legend:

Unmodified
Added
Removed
  • wordpress-popular-posts/trunk/maintenance.php

    r194265 r196376  
    2424        .wpp-ans {display:none; width:100%;}
    2525       
    26         #attr_table {
     26        .attr_table {
    2727            width:99%;
    2828            border-top:#ccc 1px solid;
     
    3131        }
    3232       
    33             #attr_table td {
     33            .attr_table td {
    3434                padding:3px;
    3535                font-size:11px;
     
    128128                    <p><?php _e('If checked, you can decide the order of the items displayed on each entry. For example, setting it to "{title}: {summary}" (without the quotes) would display "Post title: excerpt of the post here". Available tags: {image}, {title}, {summary}, {stats} and {rating}. Disabled by default.', 'wordpress-popular-posts'); ?></p>
    129129                </div>
     130                <h4><a href="#" rel="q-15"><?php _e('What are "Template Tags"?', 'wordpress-popular-posts'); ?></a></h4>
     131                <div class="wpp-ans" id="q-15">
     132                    <p><?php _e('Template Tags are simply php functions that allow you to perform certain actions. For example, Wordpress Popular Posts currently supports two different template tags: get_mostpopular() and wpp_get_views().', 'wordpress-popular-posts'); ?></p>
     133                </div>
     134                <h4><a href="#" rel="q-16"><?php _e('What are the template tags that Wordpress Popular Posts supports?', 'wordpress-popular-posts'); ?></a></h4>
     135                <div class="wpp-ans" id="q-16">
     136                    <p><?php _e('The following are the template tags supported by Wordpress Popular Posts:', 'wordpress-popular-posts'); ?></p>
     137                    <table cellpadding="0" cellspacing="0" class="attr_table">
     138                        <tr>
     139                            <td class="attr_heading"><?php _e('Template tag', 'wordpress-popular-posts'); ?></td>
     140                            <td class="attr_heading"><?php _e('What it does ', 'wordpress-popular-posts'); ?></td>
     141                            <td class="attr_heading"><?php _e('Parameters', 'wordpress-popular-posts'); ?></td>
     142                            <td class="attr_heading"><?php _e('Example', 'wordpress-popular-posts'); ?></td>
     143                        </tr>
     144                        <tr>
     145                            <td><strong>get_mostpopular()</strong></td>
     146                            <td><?php _e('Similar to the widget functionality, this tag retrieves the most popular posts on your blog. While it can be customized via parameters, these are not needed for it to work.', 'wordpress-popular-posts'); ?></td>
     147                            <td><?php _e('Please refer to "What attributes does Wordpress Popular Posts shortcode [wpp] have?"', 'wordpress-popular-posts'); ?></td>
     148                            <td>&lt;?php get_mostpopular(); ?&gt;<br />&lt;?php get_mostpopular("range=weekly&amp;limit=7"); ?&gt;</td>
     149                        </tr>
     150                        <tr>
     151                            <td><strong>wpp_get_views()</strong></td>
     152                            <td><?php _e('Displays the number of views of a single post. Post ID required, or it will return false.', 'wordpress-popular-posts'); ?></td>
     153                            <td><?php _e('Post ID', 'wordpress-popular-posts'); ?></td>
     154                            <td>&lt;?php wpp_get_views($post->ID); ?&gt;<br />&lt;?php wpp_get_views(15); ?&gt;</td>
     155                        </tr>
     156                    </table>
     157                </div>
    130158                <h4><a href="#" rel="q-12"><?php _e('What are "shortcodes"?', 'wordpress-popular-posts'); ?></a></h4>
    131159                <div class="wpp-ans" id="q-12">
     
    134162                <h4><a href="#" rel="q-13"><?php _e('What attributes does Wordpress Popular Posts shortcode [wpp] have?', 'wordpress-popular-posts'); ?></a></h4>
    135163                <div class="wpp-ans" id="q-13">
    136                     <p><?php _e('There are a number of attributes Wordpress Popular Posts currently supports', 'wordpress-popular-posts'); ?>:</p>
    137                     <table cellpadding="0" cellspacing="0" id="attr_table">
     164                    <p><?php _e('There are a number of attributes Wordpress Popular Posts currently supports:', 'wordpress-popular-posts'); ?>:</p>
     165                    <table cellpadding="0" cellspacing="0" class="attr_table">
    138166                        <tr>
    139167                            <td class="attr_heading"><?php _e('Attributes', 'wordpress-popular-posts'); ?></td>
     
    181209                            <td><strong>pages</strong></td>
    182210                            <td><?php _e('Tells Wordpress Popular Posts whether to consider or not pages while building the popular list', 'wordpress-popular-posts'); ?></td>
    183                             <td>true, false</td>
    184                             <td>pages=true</td>
     211                            <td>1 (true), (0) false</td>
     212                            <td>pages=1</td>
    185213                        </tr>
    186214                        <tr>
     
    217245                            <td><strong>rating</strong></td>
    218246                            <td><?php _e('If set, and if the WP-PostRatings plugin is installed and enabled on your blog, Wordpress Popular Posts will show how your visitors are rating your entries', 'wordpress-popular-posts'); ?></td>
    219                             <td>true, false</td>
    220                             <td>rating=true</td>
     247                            <td>1 (true), (0) false</td>
     248                            <td>rating=1</td>
    221249                        </tr>
    222250                        <tr>
    223251                            <td><strong>stats_comments</strong></td>
    224252                            <td><?php _e('If set, Wordpress Popular Posts will show how many comments each popular post has got until now', 'wordpress-popular-posts'); ?></td>
    225                             <td>true, false</td>
    226                             <td>stats_comments=true</td>
     253                            <td>1 (true), 0 (false)</td>
     254                            <td>stats_comments=1</td>
    227255                        </tr>
    228256                        <tr>
    229257                            <td><strong>stats_views</strong></td>
    230258                            <td><?php _e('If set, Wordpress Popular Posts will show how many views each popular post has got since it was installed', 'wordpress-popular-posts'); ?></td>
    231                             <td>true, false</td>
    232                             <td>stats_views=true</td>
     259                            <td>1 (true), (0) false</td>
     260                            <td>stats_views=1</td>
    233261                        </tr>
    234262                        <tr>
    235263                            <td><strong>stats_author</strong></td>
    236264                            <td><?php _e('If set, Wordpress Popular Posts will show who published each popular post on the list', 'wordpress-popular-posts'); ?></td>
    237                             <td>true, false</td>
    238                             <td>stats_author=true</td>
     265                            <td>1 (true), (0) false</td>
     266                            <td>stats_author=1</td>
    239267                        </tr>
    240268                        <tr>
    241269                            <td><strong>stats_date</strong></td>
    242270                            <td><?php _e('If set, Wordpress Popular Posts will when each popular post on the list was published', 'wordpress-popular-posts'); ?></td>
    243                             <td>true, false</td>
    244                             <td>stats_date=true</td>
     271                            <td>1 (true), (0) false</td>
     272                            <td>stats_date=1</td>
    245273                        </tr>
    246274                        <tr>
     
    271299                            <td><strong>do_pattern</strong></td>
    272300                            <td><?php _e('If set, this option will allow you to decide the order of the contents within each item on the list.', 'wordpress-popular-posts'); ?></td>
    273                             <td>true, false</td>
    274                             <td>do_pattern=true</td>
     301                            <td>1 (true), (0) false</td>
     302                            <td>do_pattern=1</td>
    275303                        </tr>
    276304                        <tr>
     
    307335    <p><?php _e('Do you like this plugin?', 'wordpress-popular-posts'); ?> <a title="<?php _e('Rate Wordpress Popular Posts!', 'wordpress-popular-posts'); ?>" href="http://wordpress.org/extend/plugins/wordpress-popular-posts/#rate-response" target="_blank"><strong><?php _e('Rate it 5', 'wordpress-popular-posts'); ?></strong></a> <?php _e('on the official Plugin Directory!', 'wordpress-popular-posts'); ?></p>
    308336    <p><?php _e('Do you love this plugin?', 'wordpress-popular-posts'); ?> <a title="<?php _e('Buy me a beer!', 'wordpress-popular-posts'); ?>" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dadslayer%40gmail%2ecom&lc=GB&item_name=Wordpress%20Popular%20Posts%20Plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted" target="_blank"><strong><?php _e('Buy me a beer!', 'wordpress-popular-posts'); ?></strong></a>. <?php _e('Each donation motivates me to keep releasing free stuff for the Wordpress community!', 'wordpress-popular-posts'); ?></p>
    309     <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dadslayer%40gmail%2ecom&lc=GB&item_name=Wordpress%20Popular%20Posts%20Plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted" target="_blank" rel="external nofollow"><img src="<?php echo get_bloginfo('url') . "/" . PLUGINDIR; ?>/wordpress-popular-posts/btn_donateCC_LG_global.gif" width="122" height="47" alt="<?php _e('Buy me a beer!', 'wordpress-popular-posts'); ?>" border="0" /></a>   
     337    <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=dadslayer%40gmail%2ecom&lc=GB&item_name=Wordpress%20Popular%20Posts%20Plugin&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted" target="_blank" rel="external nofollow"><img src="<?php echo get_bloginfo('url') . "/" . PLUGINDIR; ?>/wordpress-popular-posts/btn_donateCC_LG_global.gif" width="122" height="47" alt="<?php _e('Buy me a beer!', 'wordpress-popular-posts'); ?>" border="0" /></a>
     338    <?php
     339       
     340    ?>
    310341</div>
  • wordpress-popular-posts/trunk/readme.txt

    r194270 r196376  
    55Requires at least: 2.8
    66Tested up to: 2.9.1
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88
    99With Wordpress Popular Posts, you can show your visitors what are the most popular entries on your blog.
     
    1111== Description ==
    1212
    13 Wordpress Popular Posts  is a sidebar widget that displays the most popular posts on your blog.
     13Wordpress Popular Posts  is a sidebar widget that displays the most popular posts on your blog. You can use it as a template tag, too!
    1414
    1515**IMPORTANT ANNOUNCEMENT:** from **version 2.0** and on, **Wordpress Popular Posts** requires at least **Wordpress 2.8** in order to function correctly. If you are not running Wordpress 2.8 or can't update your blog right now, please don't upgrade to/install version 2.x!
     
    2525* **[WP-PostRatings](http://wordpress.org/extend/plugins/wp-postratings/)** support added!  Show your visitors how your readers are rating your posts!
    2626* **Database improvements** - Wordpress Popular Posts will now use a lot less space to cache your most popular posts!
     27* **Template tags** - Don't feel like using widgets? No problem! You can still embed your most popular entries on your theme using the **get_mostpopular()** template tag. Additionally, a *new* tag has been included on this release: **wpp_gets_views()**. For usage and instructions, please refer to the [instalation section](http://wordpress.org/extend/plugins/wordpress-popular-posts/installation/).
    2728* Use **your own layout**! Control how your most popular posts are shown on your templates.
    2829* You can now include a **thumbnail** of your posts! (*see the [FAQ section](http://wordpress.org/extend/plugins/wordpress-popular-posts/faq/) for technical requirements*)
    2930
    30 ** Other features **
     31**Other features**
    3132
    3233* Post excerpts feature is also available!
     
    5051If you want to use Wordpress Popular Posts on your pages (a "Hall of Fame" page, for example) please use the shortcode `[wpp]`. Attributes are **optional**, however you can use them if needed. You can find a complete list of the attributes Wordpress Popular Posts currently supports at your *wp-admin > Settings > Wordpress Popular Posts* page.
    5152
    52 **Usages:**
     53**Usage:**
    5354
    5455`[wpp]`
    5556
    5657`[wpp attribute='value']`
     58
     59= Template Tags =
     60
     61***get_mostpopular()***
     62
     63Due to the fact that some themes are not widget-ready, or that some blog users don't like widgets at all, there's another choice: the **get_mostpopular** template tag. With it, you can embed the most popular posts of your blog on your site's sidebar without using a widget. This function also accepts parameters (optional) so you can customize the look and feel of the listing.
     64
     65**Usage:**
     66
     67Without any parameters:
     68
     69`<?php get_mostpopular(); ?>`
     70
     71Using parameters:
     72
     73`<?php get_mostpopular("range=weekly&order_by=comments"); ?>`
     74
     75For a complete list of parameters (also known as "attributes"), please check your wp-admin > Settings > Wordpress Popular Posts page.
     76
     77***wpp_get_views()***
     78
     79The **wpp_get_views** template tag retrieves the views count of a single post since the plugin was installed. It only accepts one parameter: the post ID (eg. wpp_get_views(15)). If no parameter is passed to the function, it will return false.
     80
     81**Usage:**
     82
     83`<?php wpp_get_views(YOUR_POST_ID_HERE); ?>`
    5784
    5885== Frequently Asked Questions ==
     
    6289
    6390* *I'm unable to activate the "Display post thumbnail" option. Why?*
    64 You should check that: your host is running **PHP 4.3+**; the GD library is installed and enabled by your host; your "wordpress-popular-posts/scripts/cache" directory **exists** and is **writable**; there are images on your posts.
     91You should check that: your host is running **PHP 4.3+**; the **GD library** is installed and enabled by your host; your "wordpress-popular-posts/scripts/cache" directory **exists** and is **writable**; there are images on your posts.
     92
     93* *What are the parameters that the get_popularpost() template tag accepts?*
     94You can find a complete list of parameters via wp-admin > Settings > Wordpress Popular Posts under the section "What attributes does Wordpress Popular Posts shortcode [wpp] have?".
    6595
    6696* *Does your plugin include any css stylesheets?*
     
    86116
    87117== Changelog ==
     118
     119= 2.0.1 =
     120* Post title excerpt now includes html entities. Characters like ÄÖ should display properly now.
     121* Post excerpt has been improved. Now it supports the following HTML tags: <a><b><i><strong><em>.
     122* Template tag wpp_get_views() added. Retrieves the views count of a single post.
     123* Template tag get_mostpopular() re-added. Parameter support included.
     124* Shortcode bug fixed (range was always "daily" no matter what option was being selected by the user).
    88125
    89126= 2.0.0 =
  • wordpress-popular-posts/trunk/style/wpp.css

    r194265 r196376  
    77
    88/* title styles */
    9 .wpp-post-title {}
     9.wpp-post-title {
     10}
    1011
    1112/* thumbnail styles */
    12 img.wpp-thumbnail {}
     13img.wpp-thumbnail {
     14}
    1315
    1416/* excerpt styles */
    15 .wpp-excerpt {}
     17.wpp-excerpt {
     18}
    1619
    1720/* Stats tag styles */
     
    2124}
    2225   
    23     .wpp-comments {}
     26    .wpp-comments {
     27    }
    2428   
    25     .wpp-views {}
     29    .wpp-views {
     30    }
    2631   
    2732    .wpp-author {
     
    2934    }
    3035   
    31     .wpp-date {}
     36    .wpp-date {
     37    }
    3238
    3339/* WP-PostRatings styles */
    34 .wpp-rating {}
     40.wpp-rating {
     41}
  • wordpress-popular-posts/trunk/wordpress-popular-posts-es_ES.po

    r194265 r196376  
    33"Project-Id-Version: Wordpress Popular Posts\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2010-01-15 11:07-0430\n"
     5"POT-Creation-Date: 2010-01-21 15:15-0430\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: Héctor Cabrera <[email protected]>\n"
     
    147147
    148148#: maintenance.php:130
     149msgid "What are \"Template Tags\"?"
     150msgstr "&iquest;Qu&eacute; son los \"Template Tags\"?"
     151
     152#: maintenance.php:132
     153msgid "Template Tags are simply php functions that allow you to perform certain actions. For example, Wordpress Popular Posts currently supports two different template tags: get_mostpopular() and wpp_get_views()."
     154msgstr "Los Template Tags son simplemente funciones php que te permiten realizar ciertas acciones. Por ejemplo, Wordpress Popular Posts actualmante soporte dos template tags diferentes: get_mostpopular y wpp_get_views()."
     155
     156#: maintenance.php:134
     157msgid "What are the template tags that Wordpress Popular Posts supports?"
     158msgstr "&iquest;Cu&aacute;les template tags soporta Wordpress Popular Posts?"
     159
     160#: maintenance.php:136
     161msgid "The following are the template tags supported by Wordpress Popular Posts:"
     162msgstr "Los siguientes son los template tags soportados por Wordpress Popular Posts:"
     163
     164#: maintenance.php:139
     165msgid "Template tag"
     166msgstr "Template tag"
     167
     168#: maintenance.php:140
     169#: maintenance.php:168
     170msgid "What it does "
     171msgstr "Qu&eacute; hace"
     172
     173#: maintenance.php:141
     174msgid "Parameters"
     175msgstr "Par&aacute;metros"
     176
     177#: maintenance.php:142
     178#: maintenance.php:170
     179msgid "Example"
     180msgstr "Ejemplo"
     181
     182#: maintenance.php:146
     183msgid "Similar to the widget functionality, this tag retrieves the most popular posts on your blog. While it can be customized via parameters, these are not needed for it to work."
     184msgstr "Al igual que la funcionalidad tipo widget, este tag obtiene los posts m&aacute;s populares de tu blog. Puede ser personalizado via par&aacute;metros, pero no son necesarios para que funcione."
     185
     186#: maintenance.php:147
     187msgid "Please refer to \"What attributes does Wordpress Popular Posts shortcode [wpp] have?\""
     188msgstr "Favor leer \"&iquest;Cu&aacute;les template tags soporta Wordpress Popular Posts?\""
     189
     190#: maintenance.php:152
     191msgid "Displays the number of views of a single post. Post ID required, or it will return false."
     192msgstr "Muestra el n&uacute;mero de vistas de un post. Se requiere el ID del post, o la funci&oacute;n retornar&aacute; falso."
     193
     194#: maintenance.php:153
     195msgid "Post ID"
     196msgstr "ID del Post"
     197
     198#: maintenance.php:158
    149199msgid "What are \"shortcodes\"?"
    150200msgstr "&iquest;Qu&eacute; son los \"shortcodes\"?"
    151201
    152 #: maintenance.php:132
     202#: maintenance.php:160
    153203msgid "Shortcodes are hooks that allow us to call a php function by simply typing something like [shortcode]. With Wordpress Popular Posts, the shortcode [wpp] will let you insert a list of the most popular posts in posts content and pages too! For more information about shortcodes, please visit"
    154204msgstr "Los shortcodes son hooks que nos permiten llamar a una funci&oacute;n php simplemente escribiendo algo como [shortcode]. Con Wordpress Popular Posts, el shortcode [wpp] te permitir&aacute; insertar una lista de los posts m&aacute;s populares en p&aacute;ginas y en los contenidos de los posts. Para m&aacute;s informaci&oacute; visita"
    155205
    156 #: maintenance.php:134
     206#: maintenance.php:162
    157207msgid "What attributes does Wordpress Popular Posts shortcode [wpp] have?"
    158208msgstr "&iquest;Qu&eacute; atributos tiene el shortcode [wpp] de Wordpress Popular Posts?"
    159209
    160 #: maintenance.php:136
    161 msgid "There are a number of attributes Wordpress Popular Posts currently supports"
    162 msgstr "Hay un n&uacute;mero de atributos que Wordpress Popular Posts actualmente soporta"
    163 
    164 #: maintenance.php:139
     210#: maintenance.php:164
     211msgid "There are a number of attributes Wordpress Popular Posts currently supports:"
     212msgstr "Hay un n&uacute;mero de atributos que Wordpress Popular Posts actualmente soporta:"
     213
     214#: maintenance.php:167
    165215msgid "Attributes"
    166216msgstr "Atributos"
    167217
    168 #: maintenance.php:140
    169 msgid "What it does "
    170 msgstr "Qu&eacute; hace"
    171 
    172 #: maintenance.php:141
     218#: maintenance.php:169
    173219msgid "Possible values"
    174220msgstr "Valores Posibles"
    175221
    176 #: maintenance.php:142
    177 msgid "Example"
    178 msgstr "Ejemplo"
    179 
    180 #: maintenance.php:146
     222#: maintenance.php:174
    181223msgid "Sets a heading for the list"
    182224msgstr "Setea el encabezado de la lista"
    183225
    184 #: maintenance.php:147
    185 #: maintenance.php:153
    186 #: maintenance.php:159
    187 #: maintenance.php:201
    188 #: maintenance.php:249
    189 #: maintenance.php:255
    190 #: maintenance.php:261
    191 #: maintenance.php:267
     226#: maintenance.php:175
     227#: maintenance.php:181
     228#: maintenance.php:187
     229#: maintenance.php:229
     230#: maintenance.php:277
     231#: maintenance.php:283
     232#: maintenance.php:289
     233#: maintenance.php:295
    192234msgid "Text string"
    193235msgstr "Cadena de texto"
    194236
    195 #: maintenance.php:152
     237#: maintenance.php:180
    196238msgid "Set the opening tag for the heading of the list"
    197239msgstr "Setea la etiqueta html de apertura del encabezado de la lista"
    198240
    199 #: maintenance.php:158
     241#: maintenance.php:186
    200242msgid "Set the closing tag for the heading of the list"
    201243msgstr "Setea la etiqueta de cierre del encabezado de la lista"
    202244
    203 #: maintenance.php:164
     245#: maintenance.php:192
    204246msgid "Sets the maximum number of popular posts to be shown on the listing"
    205247msgstr "Setea el n&uacute;mero m&aacute;ximo de posts populares a mostrarse en la lista"
    206248
    207 #: maintenance.php:165
    208 #: maintenance.php:189
    209 #: maintenance.php:195
    210 #: maintenance.php:207
    211 #: maintenance.php:213
     249#: maintenance.php:193
     250#: maintenance.php:217
     251#: maintenance.php:223
     252#: maintenance.php:235
     253#: maintenance.php:241
    212254msgid "Positive integer"
    213255msgstr "Entero positivo"
    214256
    215 #: maintenance.php:170
     257#: maintenance.php:198
    216258msgid "Tells Wordpress Popular Posts to retrieve the most popular entries within the time range specified by you"
    217259msgstr "Le dice a Wordpress Popular Posts que debe traer los posts m&aacute;s populares que est&eacute;n dentro del tiempo especificado por t&iacute;."
    218260
    219 #: maintenance.php:176
     261#: maintenance.php:204
    220262msgid "Sets the sorting option of the popular posts"
    221263msgstr "Setea el valor por el cual deben ordenarse los posts populares"
    222264
    223 #: maintenance.php:177
     265#: maintenance.php:205
    224266msgid "(for average views per day)"
    225267msgstr "(vistas promedio por d&iacute;a)"
    226268
    227 #: maintenance.php:182
     269#: maintenance.php:210
    228270msgid "Tells Wordpress Popular Posts whether to consider or not pages while building the popular list"
    229271msgstr "Le dice a Wordpress Popular Posts si debe considerar o no las p&aacute;ginas mientras construye la lista popular"
    230272
    231 #: maintenance.php:188
     273#: maintenance.php:216
    232274msgid "If set, Wordpress Popular Posts will shorten each post title to \"n\" characters whenever possible"
    233275msgstr "Si se setea, Wordpress Popular Posts acortar&aacute; cada t&iacute;tulo a \"n\" caracteres cuando sea posible"
    234276
    235 #: maintenance.php:194
     277#: maintenance.php:222
    236278msgid "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" characters long from the content of each post listed as popular"
    237279msgstr "Si se setea, Wordpress Popular Posts construir&aacute; e insertar&aacute; un extracto de \"n\" caracteres de largo del contenido de cada post listado como popular"
    238280
    239 #: maintenance.php:200
     281#: maintenance.php:228
    240282msgid "If set, Wordpress Popular Posts will exclude all entries that belong to the specified category(ies)."
    241283msgstr "Si se setea, Wordpress Popular Posts excluir&aacute; todas las entradas que pertenezcan a las categor&iacute;as especificadas."
    242284
    243 #: maintenance.php:206
     285#: maintenance.php:234
    244286msgid "If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the width for thumbnails"
    245287msgstr "Si se setea, y si la configuraci&oacute;n actual de tu servidor lo permite, podr&aacute;s mostrar miniaturas (thumbnails) de tus posts. Este atributo setea el ancho de las miniaturas"
    246288
    247 #: maintenance.php:212
     289#: maintenance.php:240
    248290msgid "If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the height for thumbnails"
    249291msgstr "Si se setea, y si la configuraci&oacute;n actual de tu servidor lo permite, podr&aacute;s mostrar miniaturas (thumbnails) de tus posts. Este atributo setea el alto de las miniaturas"
    250292
    251 #: maintenance.php:218
     293#: maintenance.php:246
    252294msgid "If set, and if the WP-PostRatings plugin is installed and enabled on your blog, Wordpress Popular Posts will show how your visitors are rating your entries"
    253295msgstr "Si se setea, y si el plugin WP-PostRatings est&aacute; instalado y activo en tu blog, Wordpress Popular Posts mostrar&aacute; c&oacute;mo tus visitantes califican tus entradas"
    254296
    255 #: maintenance.php:224
     297#: maintenance.php:252
    256298msgid "If set, Wordpress Popular Posts will show how many comments each popular post has got until now"
    257299msgstr "Si se setea, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntos comentarios ha obtenido cada post popular hasta ahora"
    258300
    259 #: maintenance.php:230
     301#: maintenance.php:258
    260302msgid "If set, Wordpress Popular Posts will show how many views each popular post has got since it was installed"
    261303msgstr "Si se setea, Wordpress Popular Posts mostrar&aacute; cu&aacute;ntas vistas ha obtenido cada post popular desde que se instal&oacute; el plugin"
    262304
    263 #: maintenance.php:236
     305#: maintenance.php:264
    264306msgid "If set, Wordpress Popular Posts will show who published each popular post on the list"
    265307msgstr "Si se setea, Wordpress Popular Posts mostrar&aacute; qui&eacute;n public&oacute; cada uno de los posts populares de la lista"
    266308
    267 #: maintenance.php:242
     309#: maintenance.php:270
    268310msgid "If set, Wordpress Popular Posts will when each popular post on the list was published"
    269311msgstr "Si se setea, Wordpress Popular Posts mostra&aacute; cuando fue publicado cada post en la lista"
    270312
    271 #: maintenance.php:248
     313#: maintenance.php:276
    272314msgid "Sets the opening tag for the listing"
    273315msgstr "Setea la etiqueta de apertura de la lista"
    274316
    275 #: maintenance.php:254
     317#: maintenance.php:282
    276318msgid "Sets the closing tag for the listing"
    277319msgstr "Setea la etiqueta de cierre de la lista"
    278320
    279 #: maintenance.php:260
     321#: maintenance.php:288
    280322msgid "Sets the opening tag for each item on the list"
    281323msgstr "Setea la etiqueta de apertura de cada item en la lista"
    282324
    283 #: maintenance.php:266
     325#: maintenance.php:294
    284326msgid "Sets the closing tag for each item on the list"
    285327msgstr "Setea la etiqueta de cierre de cada item en la lista"
    286328
    287 #: maintenance.php:272
     329#: maintenance.php:300
    288330msgid "If set, this option will allow you to decide the order of the contents within each item on the list."
    289331msgstr "Si se setea, esta opci&oacute;n te permitir&aacute; decidir el orden de los contenidos de cada item en la lista"
    290332
    291 #: maintenance.php:278
     333#: maintenance.php:306
    292334msgid "If set, you can decide the order of each content inside a single item on the list. For example, setting it to \"{title}: {summary}\" would output something like \"Your Post Title: summary here\""
    293335msgstr "Si se setea, puedes decidir el orden de los contenidos de cada item en la lista. Por ejemplo, configurarlo como \"{title}: {summary}\" mostrar&iacute;a algo como \"Tu t&iacute;tulo: extracto del post aqu&iacute;\" "
    294336
    295 #: maintenance.php:279
     337#: maintenance.php:307
    296338msgid "Available tags"
    297339msgstr "Etiquetas disponibles"
    298340
    299 #: maintenance.php:287
     341#: maintenance.php:315
    300342msgid "Maintenance Settings"
    301343msgstr "Opciones de Mantenimiento"
    302344
    303 #: maintenance.php:288
     345#: maintenance.php:316
    304346msgid "Wordpress Popular Posts keeps historical data of your most popular entries for up to 30 days. If for some reason you need to clear the cache table, or even both historical and cache tables, please use the buttons below to do so."
    305347msgstr "Wordpress Popular Posts guarda data hist&oacute;rica de tus posts m&aacute;s populares por hasta 30 d&iacute;as. Si por alguna raz&oacute;n necesitas limpiar el cache, o inclusive tanto el cache como la tabla hist&oacute;rica, por favor utiliza los botones de abajo."
    306348
    307 #: maintenance.php:291
     349#: maintenance.php:319
    308350msgid "Empty cache"
    309351msgstr "Vaciar cache"
    310352
    311 #: maintenance.php:292
     353#: maintenance.php:320
    312354msgid "Use this button to manually clear entries from WPP cache only"
    313355msgstr "Utiliza este bot&oacute;n para limpiar manualmente todas las entradas del cache de Wordpress Popular Posts"
    314356
    315 #: maintenance.php:298
     357#: maintenance.php:326
    316358msgid "Clear all data"
    317359msgstr "Eliminar toda la data"
    318360
    319 #: maintenance.php:299
     361#: maintenance.php:327
    320362msgid "Use this button to manually clear entries from all WPP data tables"
    321363msgstr "Utiliza este bot&oacute;n para limpiar toda la data de Wordpress Popular Posts"
    322364
    323 #: maintenance.php:307
     365#: maintenance.php:335
    324366msgid "Do you like this plugin?"
    325367msgstr "&iquest;Te gusta este plugin?"
    326368
    327 #: maintenance.php:307
     369#: maintenance.php:335
    328370msgid "Rate Wordpress Popular Posts!"
    329371msgstr "&iexcl;Califica Wordpress Popular Posts!"
    330372
    331 #: maintenance.php:307
     373#: maintenance.php:335
    332374msgid "Rate it 5"
    333375msgstr "&iexcl;Dale un 5"
    334376
    335 #: maintenance.php:307
     377#: maintenance.php:335
    336378msgid "on the official Plugin Directory!"
    337379msgstr "en el directorio oficial de plugins!"
    338380
    339 #: maintenance.php:308
     381#: maintenance.php:336
    340382msgid "Do you love this plugin?"
    341383msgstr "&iquest;Te encanta este plugin?"
    342384
    343 #: maintenance.php:308
    344 #: maintenance.php:309
     385#: maintenance.php:336
     386#: maintenance.php:337
    345387msgid "Buy me a beer!"
    346388msgstr "&iexcl;C&oacute;mprame una cerveza!"
    347389
    348 #: maintenance.php:308
     390#: maintenance.php:336
    349391msgid "Each donation motivates me to keep releasing free stuff for the Wordpress community!"
    350392msgstr "&iexcl;Cada donativo me motiva a seguir contribuyendo con la comunidad Wordpress!"
     
    532574msgstr "Lo lamento, no hay informaci&oacute;n a&uacute;n."
    533575
    534 #: wordpress-popular-posts.php:550
     576#: wordpress-popular-posts.php:552
    535577msgid " comment(s)"
    536578msgstr "comentario(s)"
    537579
    538 #: wordpress-popular-posts.php:553
     580#: wordpress-popular-posts.php:555
    539581msgid " view(s)"
    540582msgstr "vista(s)"
    541583
    542 #: wordpress-popular-posts.php:558
     584#: wordpress-popular-posts.php:560
    543585msgid " view(s) per day"
    544586msgstr "vista(s) por d&iacute;a"
    545587
    546 #: wordpress-popular-posts.php:740
     588#: wordpress-popular-posts.php:865
    547589msgid "Your Wordpress version is too old. Wordpress Popular Posts Plugin requires at least version 2.8 to function correctly. Please update your blog via Tools &gt; Upgrade."
    548590msgstr "Tu versi&oacute;n de Wordpress es muy antigua. El plugin Wordpress Popular Posts requiere al menos la versi&oacute;n 2.8 para funcionar correctamente. Por favor actualiza tu blog via Herramientas &gt; Actualizar."
  • wordpress-popular-posts/trunk/wordpress-popular-posts.php

    r194270 r196376  
    44Plugin URI: http://rauru.com/wordpress-popular-posts
    55Description: Retrieves the most active entries of your blog and displays them with your own formatting (<em>optional</em>). Use it as a widget or place it in your templates using  <strong>&lt;?php get_mostpopular(); ?&gt;</strong>
    6 Version: 2.0.0
     6Version: 2.0.1
    77Author: H&eacute;ctor Cabrera
    88Author URI: http://rauru.com/
     
    2626    class WordpressPopularPosts extends WP_Widget {
    2727        // plugin global variables
    28         var $version = "2.0.0";
     28        var $version = "2.0.1";
    2929        var $qTrans = false;
    3030        var $postRating = false;
     
    399399</script>
    400400<!-- End Wordpress Popular Posts v<?php echo $this->version; ?> -->
    401             <?php           
     401            <?php
    402402            }
    403403        }       
     
    527527                    $data = array();
    528528                   
    529                     // qTranslate integration check
     529                    // get post title
     530                    /* qTranslate integration check */
    530531                    ($this->qTrans) ? $tit = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($wppost->post_title) : $tit = $wppost->post_title;
    531532                   
    532533                    if ( $instance['shorten_title']['active'] && (strlen($tit) > $instance['shorten_title']['length'])) {
    533                         $post_title = "<span class=\"wpp-post-title\">" . substr(htmlspecialchars(stripslashes($tit)),0,$instance['shorten_title']['length']) . "...</span>";
    534                     } else {
    535                         $post_title = "<span class=\"wpp-post-title\">" . htmlspecialchars(stripslashes($tit)) . "</span>";
    536                     }                   
     534                        $tit = $this->truncate($tit, $instance['shorten_title']['length'] + 3, '', true, true) . "...";
     535                    }
     536                    $post_title = "<span class=\"wpp-post-title\">" . stripslashes($tit) . "</span>";
    537537                   
     538                    // get post excerpt
    538539                    if ( $instance['post-excerpt']['active'] ) {
    539540                        if ($instance['markup']['pattern']['active']) {
     
    546547                    }
    547548                   
     549                    // build stats tag
    548550                    if ( $instance['stats_tag']['comment_count'] ) {
    549551                        $comment_count = (int) $wppost->comment_count;
     
    561563                        }           
    562564                       
    563                         if ($post_stats != " ") {
     565                        if ($post_stats != "") {
    564566                            $post_stats .= " | <span class=\"wpp-views\">$pageviews $views_text</span>";
    565567                        } else {                           
     
    568570                    }
    569571                    if ( $instance['stats_tag']['author'] ) {
    570                         if ($post_stats != " ") {
     572                        if ($post_stats != "") {
    571573                            $post_stats .= " | by <span class=\"wpp-author\">".$wppost->display_name."</span>";
    572574                        } else {                   
     
    575577                    }
    576578                    if ( $instance['stats_tag']['date'] ) {
    577                         if ($post_stats != " ") {
     579                        if ($post_stats != "") {
    578580                            $post_stats .= " | <span class=\"wpp-date\">posted on ".date("F, j",strtotime($wppost->date_gmt))."</span>";
    579581                        } else {                   
     
    586588                    }
    587589                   
     590                    // get thumbnail
    588591                    if ($instance['thumbnail']['active'] && $this->thumb ) {
    589592                        // let's try to retrieve the first image of the current post
     
    597600                    }
    598601                   
     602                    // get rating
    599603                    if ($instance['rating'] && $this->postRating) {
    600604                        $rating = '<span class="wpp-rating">'.the_ratings_results($wppost->ID).'</span>';
     
    611615                    );     
    612616                   
    613                    
     617                    // build custom layout
    614618                    if ($instance['markup']['custom_html']) {
    615619                        if ($instance['markup']['pattern']['active']) {
     
    637641        function get_summary($id, $instance){
    638642            if (!is_numeric($id)) return false;
    639             global $wpdb;
    640             $excerpt = $wpdb->get_results("SELECT post_excerpt FROM $wpdb->posts WHERE ID = " . $id, ARRAY_A);
    641             if (empty($excerpt[0]['post_excerpt'])) {
    642                 $excerpt = $wpdb->get_results("SELECT post_content FROM $wpdb->posts WHERE ID = " . $id, ARRAY_A);
    643                 $excerpt[0]['post_content'] = preg_replace("/\[caption.*\[\/caption\]/", "", $excerpt[0]['post_content']);
    644                 return substr(strip_tags($excerpt[0]['post_content']), 0, $instance['post-excerpt']['length']);
     643            global $wpdb;           
     644            $excerpt = "";
     645            $result = "";
     646           
     647            $result = $wpdb->get_results("SELECT post_excerpt FROM $wpdb->posts WHERE ID = " . $id, ARRAY_A);
     648           
     649            if (empty($result[0]['post_excerpt'])) {
     650                // no custom excerpt defined, how lazy of you!
     651               
     652                $result = $wpdb->get_results("SELECT post_content FROM $wpdb->posts WHERE ID = " . $id, ARRAY_A);
     653                $excerpt = preg_replace("/\[caption.*\[\/caption\]/", "", $result[0]['post_content']);
    645654            } else {
    646                 $excerpt[0]['post_excerpt'] = preg_replace("/\[caption.*\[\/caption\]/", "", $excerpt[0]['post_excerpt']);;
    647                 return substr(strip_tags($excerpt[0]['post_excerpt']), 0, $instance['post-excerpt']['length']);             
    648             }
     655                // user has defined a custom excerpt, yay!
     656                $excerpt = preg_replace("/\[caption.*\[\/caption\]/", "", $result[0]['post_excerpt']);
     657            }
     658           
     659            if (strlen($excerpt) <= $instance['post-excerpt']['length']) {
     660                $excerpt = strip_tags($excerpt, '<a><b><i><strong><em>');
     661            } else {               
     662                $excerpt = $this->truncate($excerpt, $instance['post-excerpt']['length'], '', true, true);
     663            }
     664           
     665            return $excerpt;
    649666        }
    650667       
     
    660677            $source = strip_tags($raw[0]["post_content"], "<img>");
    661678       
    662             $count = substr_count($source, '<img');
     679            $count = substr_count($source, '<img');         
    663680           
    664681            if ($count > 0) { // images have been found
    665                 $p = substr( $source, strpos($source, "<img", 0), (strpos($source, '>') - strpos($source, "<img", 0) + 1) );
     682                $p = substr( $source, strpos($source, "<img", 0), (strpos($source, '>') - strpos($source, "<img", 0) + 1) );               
    666683               
    667684                $img_pattern = '/<\s*img [^\>]*src\s*=\s*[\""\']?([^\""\'\s>]*)/i';         
     
    716733           
    717734            return $string;
     735        }       
     736       
     737        // code seen at http://www.gsdesign.ro/blog/cut-html-string-without-breaking-the-tags/
     738        // slightly modified by Hector Cabrera
     739        // Since 2.0.1
     740        /**
     741        * Truncates text.
     742        *
     743        * Cuts a string to the length of $length and replaces the last characters
     744        * with the ending if the text is longer than length.
     745        *
     746        * @param string  $text String to truncate.
     747        * @param integer $length Length of returned string, including ellipsis.
     748        * @param string  $ending Ending to be appended to the trimmed string.
     749        * @param boolean $exact If false, $text will not be cut mid-word
     750        * @param boolean $considerHtml If true, HTML tags would be handled correctly
     751        * @return string Trimmed string.
     752        */     
     753        function truncate($text, $length = 100, $ending = '...', $exact = true, $considerHtml = false) {
     754            if ($considerHtml) {
     755                // if the plain text is shorter than the maximum length, return the whole text
     756                if (strlen(preg_replace('/<.*?>/', '', $text)) <= $length) {
     757                    return $text;
     758                }
     759                // splits all html-tags to scanable lines
     760                preg_match_all('/(<.+?>)?([^<>]*)/s', $text, $lines, PREG_SET_ORDER);
     761                $total_length = strlen($ending);
     762                $open_tags = array();
     763                $truncate = '';
     764                foreach ($lines as $line_matchings) {
     765                    // if there is any html-tag in this line, handle it and add it (uncounted) to the output
     766                    if (!empty($line_matchings[1])) {
     767                        // if it's an "empty element" with or without xhtml-conform closing slash (f.e. <br/>)
     768                        if (preg_match('/^<(\s*.+?\/\s*|\s*(img|br|input|hr|area|base|basefont|col|frame|isindex|link|meta|param)(\s.+?)?)>$/is', $line_matchings[1])) {
     769                            // do nothing
     770                        // if tag is a closing tag (f.e. </b>)
     771                        } else if (preg_match('/^<\s*\/([^\s]+?)\s*>$/s', $line_matchings[1], $tag_matchings)) {
     772                            // delete tag from $open_tags list
     773                            $pos = array_search($tag_matchings[1], $open_tags);
     774                            if ($pos !== false) {
     775                                unset($open_tags[$pos]);
     776                            }
     777                        // if tag is an opening tag (f.e. <b>)
     778                        } else if (preg_match('/^<\s*([^\s>!]+).*?>$/s', $line_matchings[1], $tag_matchings)) {
     779                            // add tag to the beginning of $open_tags list
     780                            array_unshift($open_tags, strtolower($tag_matchings[1]));
     781                        }
     782                        // add html-tag to $truncate'd text
     783                        $truncate .= $line_matchings[1];
     784                    }
     785                    // calculate the length of the plain text part of the line; handle entities as one character
     786                    $content_length = strlen(preg_replace('/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i', ' ', $line_matchings[2]));
     787                    if ($total_length+$content_length> $length) {
     788                        // the number of characters which are left
     789                        $left = $length - $total_length;
     790                        $entities_length = 0;
     791                        // search for html entities
     792                        if (preg_match_all('/&[0-9a-z]{2,8};|&#[0-9]{1,7};|&#x[0-9a-f]{1,6};/i', $line_matchings[2], $entities, PREG_OFFSET_CAPTURE)) {
     793                            // calculate the real length of all entities in the legal range
     794                            foreach ($entities[0] as $entity) {
     795                                if ($entity[1]+1-$entities_length <= $left) {
     796                                    $left--;
     797                                    $entities_length += strlen($entity[0]);
     798                                } else {
     799                                    // no more characters left
     800                                    break;
     801                                }
     802                            }
     803                        }
     804                        $truncate .= substr($line_matchings[2], 0, $left+$entities_length);
     805                        // maximum lenght is reached, so get off the loop
     806                        break;
     807                    } else {
     808                        $truncate .= $line_matchings[2];
     809                        $total_length += $content_length;
     810                    }
     811                    // if the maximum length is reached, get off the loop
     812                    if($total_length>= $length) {
     813                        break;
     814                    }
     815                }
     816            } else {
     817                if (strlen($text) <= $length) {
     818                    return $text;
     819                } else {
     820                    //$truncate = substr($text, 0, $length - strlen($ending));                 
     821                    $truncate = substr($text, 0, $length); // modified by Hector Cabrera
     822                }
     823            }
     824            // if the words shouldn't be cut in the middle...
     825            if (!$exact) {
     826                // ...search the last occurance of a space...
     827                $spacepos = strrpos($truncate, ' ');
     828                if (isset($spacepos)) {
     829                    // ...and cut the text in this position
     830                    $truncate = substr($truncate, 0, $spacepos);
     831                }
     832            }
     833            // add the defined ending to the text
     834            $truncate .= $ending;
     835            if($considerHtml) {
     836                // close all unclosed html-tags
     837                foreach ($open_tags as $tag) {
     838                    $truncate .= '</' . $tag . '>';
     839                }               
     840                $truncate = strip_tags($truncate, '<a><b><i><strong><em>'); // added by Hector Cabrera
     841            }
     842            return $truncate;
    718843        }
    719844       
     
    790915                'do_pattern' => false,
    791916                'pattern_form' => '{image} {title}: {summary} {stats}'
    792             ), $atts ) );
     917            ), $atts ) );           
    793918           
    794919            $shortcode_ops = array(
    795920                'title' => strip_tags($header),
    796921                'limit' => empty($limit) ? 10 : (is_numeric($limit)) ? (($limit > 0) ? $limit : 10) : 10,
    797                 'range' => empty($range) ? 'daily' : ($range != 'daily' || $range =! 'weekly' || $range =! 'monthly' || $range = 'all') ? 'daily' : $range,
     922                'range' => empty($range) ? 'daily' : $range,
    798923                'order_by' => empty($order_by) ? 'comments' : ($order_by != 'comments' || $order_by =! 'views' || $order_by =! 'avg') ? 'comments' : $range,
    799924                'pages' => empty($pages) ? false : $pages,
     
    817942                'rating' => empty($rating) ? false : is_bool($rating) ? $rating : false,
    818943                'stats_tag' => array(
    819                     'comment_count' => empty($stats_comments) ? true : $stats_comments,
     944                    'comment_count' => empty($stats_comments) ? false : $stats_comments,
    820945                    'views' => empty($stats_views) ? false : $stats_views,
    821946                    'author' => empty($stats_author) ? false : $stats_author,
     
    843968           
    844969            // print popular posts list
    845             echo $this->get_popular_posts($shortcode_ops, false);           
     970            echo $this->get_popular_posts($shortcode_ops, false);
    846971           
    847972        }
     
    850975
    851976/**
    852  * Wordpress Popular Posts functions for use in themes.
     977 * Wordpress Popular Posts template tags for use in themes.
    853978 */
    854979
     
    872997}
    873998
     999// gets popular posts
     1000function get_mostpopular($args = NULL) {
     1001
     1002    if (is_null($args)) {
     1003        return do_shortcode('[wpp]');
     1004    } else {
     1005        $atts = trim(str_replace("&", " ", $args));
     1006        return do_shortcode('[wpp '.$atts.']');
     1007    }
     1008}
     1009
     1010
    8741011/**
    875  * Wordpress Popular Posts 2.0.0 Changelog.
     1012 * Wordpress Popular Posts 2.0.1 Changelog.
    8761013 */
    877  
    878 /*
    879  = 2.0.0 =
    880 * Plugin rewritten to support Multi-Widget capabilities
    881 * Cache table implemented
    882 * Shortcode support added
    883 * Category exclusion feature added
    884 * Ajax update added - plugin is now compatible with caching plugins such as WP Super Cache
    885 * Thumbnail feature improved - some bugs were fixed, too
    886 * Maintenance page added
     1014
     1015/*
     1016 = 2.0.1 =
     1017* Post title excerpt now includes html entities. Characters like AÄÖ should display properly now.
     1018* Post excerpt has been improved. Now it supports the following HTML tags: <a><b><i><strong><em>.
     1019* Template tag wpp_get_views() added. Retrieves the views count of a single post.
     1020* Template tag get_mostpopular() re-added. Parameter support included.
     1021* Shortcode bug fixed (range was always "daily" no matter what option was being selected by the user).
    8871022*/
  • wordpress-popular-posts/trunk/wordpress-popular-posts.po

    r194265 r196376  
    33"Project-Id-Version: Wordpress Popular Posts\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2010-01-15 11:07-0430\n"
     5"POT-Creation-Date: 2010-01-21 15:15-0430\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: Héctor Cabrera <[email protected]>\n"
     
    147147
    148148#: maintenance.php:130
     149msgid "What are \"Template Tags\"?"
     150msgstr ""
     151
     152#: maintenance.php:132
     153msgid "Template Tags are simply php functions that allow you to perform certain actions. For example, Wordpress Popular Posts currently supports two different template tags: get_mostpopular() and wpp_get_views()."
     154msgstr ""
     155
     156#: maintenance.php:134
     157msgid "What are the template tags that Wordpress Popular Posts supports?"
     158msgstr ""
     159
     160#: maintenance.php:136
     161msgid "The following are the template tags supported by Wordpress Popular Posts:"
     162msgstr ""
     163
     164#: maintenance.php:139
     165msgid "Template tag"
     166msgstr ""
     167
     168#: maintenance.php:140
     169#: maintenance.php:168
     170msgid "What it does "
     171msgstr ""
     172
     173#: maintenance.php:141
     174msgid "Parameters"
     175msgstr ""
     176
     177#: maintenance.php:142
     178#: maintenance.php:170
     179msgid "Example"
     180msgstr ""
     181
     182#: maintenance.php:146
     183msgid "Similar to the widget functionality, this tag retrieves the most popular posts on your blog. While it can be customized via parameters, these are not needed for it to work."
     184msgstr ""
     185
     186#: maintenance.php:147
     187msgid "Please refer to \"What attributes does Wordpress Popular Posts shortcode [wpp] have?\""
     188msgstr ""
     189
     190#: maintenance.php:152
     191msgid "Displays the number of views of a single post. Post ID required, or it will return false."
     192msgstr ""
     193
     194#: maintenance.php:153
     195msgid "Post ID"
     196msgstr ""
     197
     198#: maintenance.php:158
    149199msgid "What are \"shortcodes\"?"
    150200msgstr ""
    151201
    152 #: maintenance.php:132
     202#: maintenance.php:160
    153203msgid "Shortcodes are hooks that allow us to call a php function by simply typing something like [shortcode]. With Wordpress Popular Posts, the shortcode [wpp] will let you insert a list of the most popular posts in posts content and pages too! For more information about shortcodes, please visit"
    154204msgstr ""
    155205
    156 #: maintenance.php:134
     206#: maintenance.php:162
    157207msgid "What attributes does Wordpress Popular Posts shortcode [wpp] have?"
    158208msgstr ""
    159209
    160 #: maintenance.php:136
    161 msgid "There are a number of attributes Wordpress Popular Posts currently supports"
    162 msgstr ""
    163 
    164 #: maintenance.php:139
     210#: maintenance.php:164
     211msgid "There are a number of attributes Wordpress Popular Posts currently supports:"
     212msgstr ""
     213
     214#: maintenance.php:167
    165215msgid "Attributes"
    166216msgstr ""
    167217
    168 #: maintenance.php:140
    169 msgid "What it does "
    170 msgstr ""
    171 
    172 #: maintenance.php:141
     218#: maintenance.php:169
    173219msgid "Possible values"
    174220msgstr ""
    175221
    176 #: maintenance.php:142
    177 msgid "Example"
    178 msgstr ""
    179 
    180 #: maintenance.php:146
     222#: maintenance.php:174
    181223msgid "Sets a heading for the list"
    182224msgstr ""
    183225
    184 #: maintenance.php:147
    185 #: maintenance.php:153
    186 #: maintenance.php:159
    187 #: maintenance.php:201
    188 #: maintenance.php:249
    189 #: maintenance.php:255
    190 #: maintenance.php:261
    191 #: maintenance.php:267
     226#: maintenance.php:175
     227#: maintenance.php:181
     228#: maintenance.php:187
     229#: maintenance.php:229
     230#: maintenance.php:277
     231#: maintenance.php:283
     232#: maintenance.php:289
     233#: maintenance.php:295
    192234msgid "Text string"
    193235msgstr ""
    194236
    195 #: maintenance.php:152
     237#: maintenance.php:180
    196238msgid "Set the opening tag for the heading of the list"
    197239msgstr ""
    198240
    199 #: maintenance.php:158
     241#: maintenance.php:186
    200242msgid "Set the closing tag for the heading of the list"
    201243msgstr ""
    202244
    203 #: maintenance.php:164
     245#: maintenance.php:192
    204246msgid "Sets the maximum number of popular posts to be shown on the listing"
    205247msgstr ""
    206248
    207 #: maintenance.php:165
    208 #: maintenance.php:189
    209 #: maintenance.php:195
    210 #: maintenance.php:207
    211 #: maintenance.php:213
     249#: maintenance.php:193
     250#: maintenance.php:217
     251#: maintenance.php:223
     252#: maintenance.php:235
     253#: maintenance.php:241
    212254msgid "Positive integer"
    213255msgstr ""
    214256
    215 #: maintenance.php:170
     257#: maintenance.php:198
    216258msgid "Tells Wordpress Popular Posts to retrieve the most popular entries within the time range specified by you"
    217259msgstr ""
    218260
    219 #: maintenance.php:176
     261#: maintenance.php:204
    220262msgid "Sets the sorting option of the popular posts"
    221263msgstr ""
    222264
    223 #: maintenance.php:177
     265#: maintenance.php:205
    224266msgid "(for average views per day)"
    225267msgstr ""
    226268
    227 #: maintenance.php:182
     269#: maintenance.php:210
    228270msgid "Tells Wordpress Popular Posts whether to consider or not pages while building the popular list"
    229271msgstr ""
    230272
    231 #: maintenance.php:188
     273#: maintenance.php:216
    232274msgid "If set, Wordpress Popular Posts will shorten each post title to \"n\" characters whenever possible"
    233275msgstr ""
    234276
    235 #: maintenance.php:194
     277#: maintenance.php:222
    236278msgid "If set, Wordpress Popular Posts will build and include an excerpt of \"n\" characters long from the content of each post listed as popular"
    237279msgstr ""
    238280
    239 #: maintenance.php:200
     281#: maintenance.php:228
    240282msgid "If set, Wordpress Popular Posts will exclude all entries that belong to the specified category(ies)."
    241283msgstr ""
    242284
    243 #: maintenance.php:206
     285#: maintenance.php:234
    244286msgid "If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the width for thumbnails"
    245287msgstr ""
    246288
    247 #: maintenance.php:212
     289#: maintenance.php:240
    248290msgid "If set, and if your current server configuration allows it, you will be able to display thumbnails of your posts. This attribute sets the height for thumbnails"
    249291msgstr ""
    250292
    251 #: maintenance.php:218
     293#: maintenance.php:246
    252294msgid "If set, and if the WP-PostRatings plugin is installed and enabled on your blog, Wordpress Popular Posts will show how your visitors are rating your entries"
    253295msgstr ""
    254296
    255 #: maintenance.php:224
     297#: maintenance.php:252
    256298msgid "If set, Wordpress Popular Posts will show how many comments each popular post has got until now"
    257299msgstr ""
    258300
    259 #: maintenance.php:230
     301#: maintenance.php:258
    260302msgid "If set, Wordpress Popular Posts will show how many views each popular post has got since it was installed"
    261303msgstr ""
    262304
    263 #: maintenance.php:236
     305#: maintenance.php:264
    264306msgid "If set, Wordpress Popular Posts will show who published each popular post on the list"
    265307msgstr ""
    266308
    267 #: maintenance.php:242
     309#: maintenance.php:270
    268310msgid "If set, Wordpress Popular Posts will when each popular post on the list was published"
    269311msgstr ""
    270312
    271 #: maintenance.php:248
     313#: maintenance.php:276
    272314msgid "Sets the opening tag for the listing"
    273315msgstr ""
    274316
    275 #: maintenance.php:254
     317#: maintenance.php:282
    276318msgid "Sets the closing tag for the listing"
    277319msgstr ""
    278320
    279 #: maintenance.php:260
     321#: maintenance.php:288
    280322msgid "Sets the opening tag for each item on the list"
    281323msgstr ""
    282324
    283 #: maintenance.php:266
     325#: maintenance.php:294
    284326msgid "Sets the closing tag for each item on the list"
    285327msgstr ""
    286328
    287 #: maintenance.php:272
     329#: maintenance.php:300
    288330msgid "If set, this option will allow you to decide the order of the contents within each item on the list."
    289331msgstr ""
    290332
    291 #: maintenance.php:278
     333#: maintenance.php:306
    292334msgid "If set, you can decide the order of each content inside a single item on the list. For example, setting it to \"{title}: {summary}\" would output something like \"Your Post Title: summary here\""
    293335msgstr ""
    294336
    295 #: maintenance.php:279
     337#: maintenance.php:307
    296338msgid "Available tags"
    297339msgstr ""
    298340
    299 #: maintenance.php:287
     341#: maintenance.php:315
    300342msgid "Maintenance Settings"
    301343msgstr ""
    302344
    303 #: maintenance.php:288
     345#: maintenance.php:316
    304346msgid "Wordpress Popular Posts keeps historical data of your most popular entries for up to 30 days. If for some reason you need to clear the cache table, or even both historical and cache tables, please use the buttons below to do so."
    305347msgstr ""
    306348
    307 #: maintenance.php:291
     349#: maintenance.php:319
    308350msgid "Empty cache"
    309351msgstr ""
    310352
    311 #: maintenance.php:292
     353#: maintenance.php:320
    312354msgid "Use this button to manually clear entries from WPP cache only"
    313355msgstr ""
    314356
    315 #: maintenance.php:298
     357#: maintenance.php:326
    316358msgid "Clear all data"
    317359msgstr ""
    318360
    319 #: maintenance.php:299
     361#: maintenance.php:327
    320362msgid "Use this button to manually clear entries from all WPP data tables"
    321363msgstr ""
    322364
    323 #: maintenance.php:307
     365#: maintenance.php:335
    324366msgid "Do you like this plugin?"
    325367msgstr ""
    326368
    327 #: maintenance.php:307
     369#: maintenance.php:335
    328370msgid "Rate Wordpress Popular Posts!"
    329371msgstr ""
    330372
    331 #: maintenance.php:307
     373#: maintenance.php:335
    332374msgid "Rate it 5"
    333375msgstr ""
    334376
    335 #: maintenance.php:307
     377#: maintenance.php:335
    336378msgid "on the official Plugin Directory!"
    337379msgstr ""
    338380
    339 #: maintenance.php:308
     381#: maintenance.php:336
    340382msgid "Do you love this plugin?"
    341383msgstr ""
    342384
    343 #: maintenance.php:308
    344 #: maintenance.php:309
     385#: maintenance.php:336
     386#: maintenance.php:337
    345387msgid "Buy me a beer!"
    346388msgstr ""
    347389
    348 #: maintenance.php:308
     390#: maintenance.php:336
    349391msgid "Each donation motivates me to keep releasing free stuff for the Wordpress community!"
    350392msgstr ""
     
    532574msgstr ""
    533575
    534 #: wordpress-popular-posts.php:550
     576#: wordpress-popular-posts.php:552
    535577msgid " comment(s)"
    536578msgstr ""
    537579
    538 #: wordpress-popular-posts.php:553
     580#: wordpress-popular-posts.php:555
    539581msgid " view(s)"
    540582msgstr ""
    541583
    542 #: wordpress-popular-posts.php:558
     584#: wordpress-popular-posts.php:560
    543585msgid " view(s) per day"
    544586msgstr ""
    545587
    546 #: wordpress-popular-posts.php:740
     588#: wordpress-popular-posts.php:865
    547589msgid "Your Wordpress version is too old. Wordpress Popular Posts Plugin requires at least version 2.8 to function correctly. Please update your blog via Tools &gt; Upgrade."
    548590msgstr ""
Note: See TracChangeset for help on using the changeset viewer.