Plugin Directory

Changeset 409082


Ignore:
Timestamp:
07/13/2011 06:36:09 AM (15 years ago)
Author:
camaleo
Message:

1.0.1

Location:
noprofeedorg/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • noprofeedorg/trunk/class.noprofeed.php

    r403247 r409082  
    12671267                     * full
    12681268                     */
    1269                     $html .= strip_tags($value['content'], '<br><p>');
     1269/* 1.0.1: BEG */
     1270//                  $html .= strip_tags($value['content'], '<br><p>');
     1271   
     1272                    $tmp = explode(' ', strip_tags($value['content'], '<br><p>'));
     1273
     1274                    $t = count($tmp);
     1275                    $tm = (int)NOPROFEED_WID_MAX_WORDS + 1;
     1276
     1277                    if($t < $tm) {
     1278
     1279                        $html .= $value['content'];
     1280                    }
     1281                    else {
     1282
     1283                        for($i=0; $i<$tm; $i++) {
     1284
     1285                            $html .= $tmp[$i] . ' ';
     1286                        }
     1287                        $html = substr($html, 0, -1) . '...<br />';
     1288                    }
     1289/* 1.0.1: END */
    12701290            }
    12711291
  • noprofeedorg/trunk/noprofeed.php

    r403247 r409082  
    44Plugin URI: http://noprofeed.org/
    55Description: Help non-profit organizations to spread the word about their activities on the largest possible number of WordPress blogs/sites.
    6 Version: 1.0.0
     6Version: 1.0.1
    77Author: Ugo Grandolini aka "camaleo"
    88Author URI: http://grandolini.com
     
    3131
    3232
    33 define('NOP_VERSION', '1.0.0');
     33define('NOP_VERSION', '1.0.1');
    3434define('NOP_DB_VERSION', '1.0.0');
    3535// TODO automatically upgrade the db structure when needed!
     36
     37define('NOPROFEED_WID_MAX_WORDS', 20); /* 1.0.1 */
    3638
    3739
  • noprofeedorg/trunk/readme.txt

    r403270 r409082  
    22Contributors: camaleo
    33Donate link:
    4 Tags: myeasy, update, admin, administration, ajax, comments, google, facebook, image, images, links, jquery, plugin, plugins, post, posts, rss, seo, sidebar, social, twitter, video, widget, wordpress, youtube
     4Tags: social, help, update, comments, links, plugin, plugins, rss, sidebar, google, facebook, twitter, widget, wordpress
    55Requires at least: 2.8
    66Tested up to: 3.2
    7 Stable tag: 3.2
     7Stable tag: trunk
    88
    99Help non-profit organizations to spread the word about their activities on the largest possible number of WordPress blogs/sites.
     
    5858== Changelog ==
    5959
     60= 1.0.1 =
     61Limiting the number of words to 20 in the widget feed content - even when the "The title and the entire feed content" option is selected.
     62Minor fixes in the code.
     63
    6064= 1.0.0 =
    6165This is the first release.
     
    6367== Upgrade Notice ==
    6468
    65 = 1.0.0 =
    66 This is the first release.
     69= 1.0.1 =
     70Simply upgrade ad usual.
Note: See TracChangeset for help on using the changeset viewer.