Plugin Directory

Changeset 325794


Ignore:
Timestamp:
12/24/2010 12:23:20 AM (15 years ago)
Author:
neop
Message:

Updating to version 2.9.3

Location:
postalicious/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • postalicious/trunk/readme.txt

    r292852 r325794  
    55Requires at least: 2.3
    66Tested up to: 3.0.1
    7 Stable tag: 2.9.1
     7Stable tag: 2.9.3
    88
    99Postalicious is a WordPress plugin that automatically posts your delicious, ma.gnolia, Google Reader, Reddit, Yahoo Pipes, or Jumptags bookmarks to your blog.
     
    7171
    7272== Changelog ==
     73
     74= Version 2.9.3 =
     75
     76* Add `%author_name%` and `%source_link%` template variables (in Delicious.com service only).
     77* Minor formatting improvements on settings page.
    7378
    7479= Version 2.9.2 =
  • postalicious/trunk/wp-postalicious.php

    r292852 r325794  
    44Plugin URI: http://neop.gbtopia.com/?p=108
    55Description: Automatically create posts with your delicious bookmarks.
    6 Version: 2.9.2
     6Version: 2.9.3
    77Author: Pablo Gomez
    88Author URI: http://neop.gbtopia.com
     
    616616        <td>
    617617        <input name="nd_linktemplate" type="text" id="nd_linktemplate" value="<?php echo $nd_linktemplate; ?>" size="75" onchange="this.form.nd_settingschanged.value=1" /><br />
    618         <span id="nd_linktemplate_content" class="setting-description">The following will be replaced with the bookmark's info: %href% - url, %title% - description, %description% - extended description %date% - date added and %tag% - tags <?php if(MAGPIE_MOD_VERSION != 'neop' && $nd_service == 1) echo '( %tags% will always be "none" )' ?></span>
     618        <span id="nd_linktemplate_content" class="setting-description">The following will be replaced with the bookmark's info: <code>%href%</code> - url, <code>%title%</code> - description, <code>%description%</code> - extended description, <code>%date%</code> - date added and <code>%tag%</code> - tags <?php if(MAGPIE_MOD_VERSION != 'neop' && $nd_service == 1) echo '( %tags% will always be "none" )' ?><br />If using Delicious.com only: <code>%author_name%</code> - delicious username, <code>%source_link%</code> - permalink to bookmark on Delicious.com</span>
    619619        </td></tr>
    620620        <tr valign="top">
     
    998998
    999999            foreach(array_reverse($feed->get_items()) as $item) {
     1000
     1001                $item_author = $item->get_author();
     1002
    10001003                // Consolidate the info from the feed in a single array so that we can use that instead of the service specific ones.
    10011004                switch($service) { // [SERVICE]
     
    10051008                        $bookmark['description'] = $item->get_description();
    10061009                        $bookmark['date'] = $item->get_date('Y-m-d H:i:s T');
     1010                        if (NULL !== $item_author) {
     1011                            $bookmark['author_name'] = $item_author->get_name();
     1012                            $bookmark['author_link'] = $item_author->get_link();
     1013                        }
     1014                        $bookmark['source_link'] = $item->get_id();
    10071015
    10081016                        $arr = $item->get_item_tags('', 'category');
     
    10161024                        $bookmark['description'] = $item->get_description();
    10171025                        $bookmark['date'] = $item->get_date('Y-m-d H:i:s T');
     1026                        if (NULL !== $item_author) {
     1027                            $bookmark['author_name'] = $item_author->get_name();
     1028                            $bookmark['author_link'] = $item_author->get_link();
     1029                        }
     1030                        $bookmark['source_link'] = $item->get_id();
    10181031
    10191032                        $arr = $item->get_item_tags('', 'category');
     
    10271040                        $bookmark['description'] = neop_pstlcs_arrelm($item->get_item_tags('http://www.google.com/schemas/reader/atom/', 'annotation'),0,'child','http://www.w3.org/2005/Atom','content',0,'data');
    10281041                        $bookmark['date'] = $item->get_date('Y-m-d H:i:s T');
     1042                        // No author_name, author_link, or source_link because Google Reader doesn't create individual pages from shared items.
    10291043                        $bookmark['tags'] = '';
    10301044                        break;
     
    10451059                        $bookmark['description'] = $item->get_description();
    10461060                        $bookmark['date'] = $item->get_date('Y-m-d H:i:s T');
     1061                        // No author_name, author_link, or source_link because Reddit doesn't offer this info in its feeds.
    10471062                        $bookmark['tags'] = '';
    10481063                        break;
     
    10521067                        $bookmark['description'] = $item->get_description();
    10531068                        $bookmark['date'] = $item->get_date('Y-m-d H:i:s T');
     1069                        if (NULL !== $item_author) {
     1070                            $bookmark['author_name'] = $item_author->get_name();
     1071                            $bookmark['author_link'] = $item_author->get_link();
     1072                        }
     1073                        $bookmark['source_link'] = $item->get_id();
    10541074                        $bookmark['tags'] = '';
    10551075                        break;
     
    10591079                        $bookmark['description'] = $item->get_description();
    10601080                        $bookmark['date'] = $item->get_date('Y-m-d H:i:s T');
     1081                        if (NULL !== $item_author) {
     1082                            $bookmark['author_name'] = $item_author->get_name();
     1083                            $bookmark['author_link'] = $item_author->get_link();
     1084                        }
     1085                        $bookmark['source_link'] = $item->get_id();
    10611086
    10621087                        $arr = $item->get_item_tags('', 'category');
     
    11191144                        $bookmark['description'] = preg_replace($pattern,$replacement,htmlentities($bookmark['description'],ENT_QUOTES,"UTF-8",FALSE));
    11201145                        $currentlink = str_replace("%description%",$bookmark['description'],$currentlink);
     1146                        // Add the author information to $currentlink
     1147                        $currentlink = str_replace("%author_name%",$bookmark['author_name'],$currentlink);
     1148                        $currentlink = str_replace("%author_link%",$bookmark['author_link'],$currentlink);
     1149                        $currentlink = str_replace("%source_link%",$bookmark['source_link'],$currentlink);
    11211150                    } else {
    11221151                        $bookmark['title'] = @html_entity_decode($bookmark['title'],ENT_QUOTES,"UTF-8");
     
    11271156                        $bookmark['description'] = preg_replace($pattern,$replacement,$bookmark['description']);
    11281157                        $currentlink = str_replace("%description%",$bookmark['description'],$currentlink);
     1158                        $currentlink = str_replace("%author_name%",$bookmark['author_name'],$currentlink);
     1159                        $currentlink = str_replace("%author_link%",$bookmark['author_link'],$currentlink);
     1160                        $currentlink = str_replace("%source_link%",$bookmark['source_link'],$currentlink);
    11291161                    }
    11301162                    // Replace dates
Note: See TracChangeset for help on using the changeset viewer.