Changeset 9829

Show
Ignore:
Timestamp:
03/29/07 22:46:39 (1 year ago)
Author:
wuerzblog
Message:

Hopefully in the right format

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • a-year-before/readme.txt

    r9826 r9829  
    1313== Installation == 
    1414 
    15 Download the plugin and put the file ayb_posts.php in the plugin-folder of your  Wordpress-installation. Then activate the plugin. 
    16  
    17 In your template — e.g. the sidebar — you can insert the following PHP-code: 
    18  
    19 <?php if (function_exists("ayb_posts")) { ?> 
    20 <div class="einjahr"> 
    21 <h2>Vor einem Jahr</h2> 
    22   <ul> 
    23      <?php ayb_posts(); ?> 
    24   </ul> 
    25 </div> 
    26 <?php } ?> 
     151. Download the plugin and put the file ayb_posts.php in the plugin-folder of your  Wordpress-installation. 
     162. Then activate the plugin. 
     173. In your template — e.g. the sidebar — you can insert the following PHP-code: 
     18        <?php if (function_exists("ayb_posts")) { ?> 
     19        <div class="einjahr"> 
     20        <h2>Vor einem Jahr</h2> 
     21          <ul> 
     22             <?php ayb_posts(); ?> 
     23          </ul> 
     24        </div> 
     25        <?php } ?> 
    2726 
    2827== Configuration == 
     
    3635* month : the number of month ago you want to show the articles. 
    3736* year : the number of years ago you want to show the articles. 
    38 * before : piece of HTML to insert before the title of the articles. Default <li> 
    39 * after: piece of HTML to insert after the title of the articles. Default </li> 
     37* before : piece of HTML to insert before the title of the articles. Default `<li>` 
     38* after: piece of HTML to insert after the title of the articles. Default `</li>` 
    4039* showdate: shows the date (showdate=1) before every title or not (showdate=0) 
    4140* dateformat : dateformat as used by PHP. Default ist the german shortform »d.m.y« 
     
    4342 
    4443== Examples == 
    45 ayb_posts("day=30&before=&after=<br />&showdate=0"); 
    46 Shows the titles of the articles written 30 days ago without showing the date. The articles will not been showed as a HTML-list but simply seperated by a linebreak <br />
     44`ayb_posts("day=30&before=&after=<br />&showdate=0");` 
     45Shows the titles of the articles written 30 days ago without showing the date. The articles will not been showed as a HTML-list but simply seperated by a linebreak `<br />`
    4746 
    48 ayb_posts("month=6&day=14&notfound=Nothing blogged on this day."); 
     47`ayb_posts("month=6&day=14&notfound=Nothing blogged on this day.");` 
    4948The titles of the articles written half a year and two weeks before, also showing the date . If there was no article written on that day, the output will be »Nothing blogged on this day.« 
    5049 
    51 If you like CSS, you can style the date with the class ayb_date, the link of the article with the class ayb_link and the notfound-message by using the class ayb_notfound
     50If you like CSS, you can style the date with the class `ayb_date`, the link of the article with the class `ayb_link` and the notfound-message by using the class `ayb_notfound`
    5251 
    5352== Changelog == 
     
    55540.5.3 
    5655 
    57     * XHTML-Bugfix (unnecessary span) 
    58     * Bugfix PHP 5 Error with empty function-parameter 
     56* XHTML-Bugfix (unnecessary span) 
     57* Bugfix PHP 5 Error with empty function-parameter 
    5958 
    60590.5.2 
    6160 
    62     * Bugfix for more tolerant date-values (e.g. day > 364). Thanks to AlohaDan for hinting and testing. 
     61* Bugfix for more tolerant date-values (e.g. day > 364). Thanks to AlohaDan for hinting and testing. 
    6362 
    64630.5.1 
    6564 
    66     * Adjustment for MySQL-versions older than MySQL 4.1.1 
     65* Adjustment for MySQL-versions older than MySQL 4.1.1 
    6766 
    68670.5 
    6968 
    70     * First public beta 
     69* First public beta