Plugin Directory

Changeset 500982


Ignore:
Timestamp:
02/06/2012 01:39:22 PM (14 years ago)
Author:
MakerBlock
Message:
 
Location:
simple-series
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • simple-series/trunk/readme.txt

    r500397 r500982  
    55Requires at least: 3.3
    66Tested up to: 3.3.1
    7 Stable tag: 1.4.4
     7Stable tag: 1.4.5
    88
    99An easy to use shortcode for automatically creating and organizing a series list for multiple posts on the same topic with appropriate SEO attributes.
     
    5757<br> `span.mbk_simple_series_title { font-weight:bold; }`
    5858<br> `div.mbk_simple_series_wrapper ol li.mbk_simple_series_list_item { font-size:smaller; line-height: 0.8em;}`
     59<br> `a.mbk_simple_series_list_current_item { font-weight:bold;}`
    5960
    6061= Wait!  I have more questions! =
     
    6970
    7071== Changelog ==
     72
     73= 1.4.5 =
     74* 2/6/2012: Now the plugin adds a class to the link to the current post in the series.  This makes it easy for you to highlight this link with CSS, if you wish.  I've added the example CSS to the FAQ.  This makes it a little easier for the reader to find where the post is in the series.  Thanks to insomnia for the inspiration!
    7175
    7276= 1.4.4 =
  • simple-series/trunk/simpleseries.php

    r500398 r500982  
    44Plugin URI: wordpress.org/extend/plugins/simple-series/
    55Description: Super simple post series organization
    6 Version: 1.4.4
    7 Date: 02-04-2012
     6Version: 1.4.5
     7Date: 02-06-2012
    88Author: MakerBlock
    99Author URI: http://www.makerblock.com
     
    4949        //  4.c. Create an OL list for the posts - appended to the end of the post
    5050            for ($i=0; $i<count($pageposts);$i++)
    51                 { $text .= "<li class='mbk_simple_series_list_item'><a href='". get_permalink($pageposts[$i]->ID) ."' title='". $pageposts[$i]->post_title ."'>". $pageposts[$i]->post_title ."</a></li>"; }
     51                {
     52                if ($pageposts[$i]->ID == $postID)
     53                    { $linkClass = " class='mbk_simple_series_list_current_item'"; }
     54                $text .= "<li class='mbk_simple_series_list_item'><a href='". get_permalink($pageposts[$i]->ID) ."' title='". $pageposts[$i]->post_title ."' $linkClass>". $pageposts[$i]->post_title ."</a></li>";
     55                }
    5256            $text .= "</ol></div>";
    5357            }
Note: See TracChangeset for help on using the changeset viewer.