Changeset 17316

Show
Ignore:
Timestamp:
08/23/07 10:31:49 (11 months ago)
Author:
wuerzblog
Message:

Lock 0.6

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • a-year-before/tags/0.6/ayb_posts.php

    r17249 r17316  
    22/* 
    33Plugin Name: A Year Before 
    4 Version: 0.6beta4 
     4Version: 0.6 
    55Plugin URI: http://wuerzblog.de/2006/12/27/wordpress-plugin-a-year-before/ 
    66Author: Ralf Thees 
     
    1212$ayb_install_dir=basename(dirname(__FILE__)); 
    1313load_plugin_textdomain($ayb_posts_domain, "wp-content/plugins/$ayb_install_dir"); 
    14  
    15  
    1614 
    1715function ayb_posts_init() { 
  • a-year-before/tags/0.6/readme.txt

    r17245 r17316  
    55Requires at least: 2.0.0 
    66Tested up to: 2.2.2 
    7 Stable tag: 0.5.3 
     7Stable tag: 0.6 
    88 
    99== Description == 
     
    6969== Changelog == 
    7070 
     710.6 
     72 
     73* Minor clean-up 
     74 
    71750.6beta4 
    7276 
  • a-year-before/tags/0.6beta2/ayb_posts.php

    r16351 r17316  
    22/* 
    33Plugin Name: A Year Before 
    4 Version: 0.6beta2 
     4Version: 0.6beta3 
    55Plugin URI: http://wuerzblog.de/2006/12/27/wordpress-plugin-a-year-before/ 
    66Author: Ralf Thees 
     
    1515            if (preg_match("/sidebar/i",$para["name"])) $ayb_posts_is_widget=true; 
    1616 
    17             //print_r( $para); 
    1817            global $wpdb; 
    1918            if ($ayb_posts_is_widget) extract($para); 
     
    2827                        $para.="$key=$val&"; 
    2928            } 
    30             //echo $para; 
    3129            } 
    3230 
     
    7977      $datum  = getdate(mktime(0, 0, 0, date("m")-$dmonth, date("d")-$dday, date("Y")-$dyear)); 
    8078 
    81  
    82       $q="SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status='publish' AND post_password='' AND YEAR(post_date_gmt)=YEAR(NOW()- INTERVAL $dyear YEAR) AND MONTH(post_date_gmt)=MONTH(NOW()- INTERVAL $dmonth MONTH) AND DAYOFMONTH(post_date_gmt)=DAYOFMONTH(NOW()- INTERVAL $dday DAY) ORDER BY post_date_gmt"; 
    8379      $q="SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status='publish' AND post_password='' AND YEAR(post_date_gmt)=".$datum['year']." AND MONTH(post_date_gmt)=".$datum['mon']." AND DAYOFMONTH(post_date_gmt)=".$datum['mday']." ORDER BY post_date_gmt"; 
    84       //echo $q; 
    8580      $result = $wpdb->get_results($q, OBJECT); 
    86       //print_r($result); 
    8781 
    8882      //Ausgabe für's Widget 
     
    117111            $options = get_option("ayb_posts"); 
    118112            if ( !is_array($options) ) { 
    119                   /*$options = array('title'=>'Vor einem Jahr'); 
    120                   $options = array('day'=>0); 
    121                   $options = array('month'=>0); 
    122                   $options = array('year'=>1); 
    123                   $options = array('showdate'=>1); 
    124                   $options = array('dateformat'=>'d.m.Y'); 
    125                   $options = array('notfound'=>'Kein Beitrag an diesem Tag'); 
    126                   */ 
    127113                  $options = array('title'=>'Vor einem Jahr', 'day'=>0, 'month'=>0, 'year'=>1, 'showdate'=>1, 'dateformat'=>'d.m.Y', 'notfound'=>'Kein Beitrag an diesem Tag'); 
    128114 
     
    138124            if ( $_POST['ayb_posts_submit'] ) { 
    139125 
    140                   // Remember to sanitize and format use input appropriately. 
    141126                  $options['title'] = strip_tags(stripslashes($_POST['ayb_posts_title'])); 
    142127                  $options["day"]=strip_tags(stripslashes($_POST['ayb_posts_day'])); 
     
    149134            } 
    150135 
    151             // Be sure you format your options to be valid HTML attributes. 
    152136            $title = htmlspecialchars($options['title'], ENT_QUOTES); 
    153137 
    154             // Here is our little form segment. Notice that we don't need a 
    155             // complete form. This will be embedded into the existing form. 
    156138            echo '<p style="text-align:right;"><label for="ayb_posts_title">' . __('Title:') . ' <input style="width: 200px;" id="ayb_posts_title" name="ayb_posts_title" type="text" value="'.$title.'" /></label></p>'; 
    157139            echo '<p style="text-align:right;"><label for="ayb_posts_day">' . __('Tage zuvor:') . ' <input style="width: 30px;" id="ayb_posts_day" name="ayb_posts_day" type="text" value="'.$day.'" /></label></p>'; 
  • a-year-before/tags/0.6beta3/readme.txt

    r17220 r17316  
    44Tags: date, posts, history 
    55Requires at least: 2.0.0 
    6 Tested up to: 2.2.1 
     6Tested up to: 2.2.2 
    77Stable tag: trunk 
    88 
     
    6262The 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.« 
    6363 
    64 == Styling == 
     64=== Styling === 
    6565If 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`. 
    6666 
  • a-year-before/trunk/ayb_posts.php

    r17249 r17316  
    22/* 
    33Plugin Name: A Year Before 
    4 Version: 0.6beta4 
     4Version: 0.6 
    55Plugin URI: http://wuerzblog.de/2006/12/27/wordpress-plugin-a-year-before/ 
    66Author: Ralf Thees 
     
    1212$ayb_install_dir=basename(dirname(__FILE__)); 
    1313load_plugin_textdomain($ayb_posts_domain, "wp-content/plugins/$ayb_install_dir"); 
    14  
    15  
    1614 
    1715function ayb_posts_init() { 
  • a-year-before/trunk/readme.txt

    r17245 r17316  
    55Requires at least: 2.0.0 
    66Tested up to: 2.2.2 
    7 Stable tag: 0.5.3 
     7Stable tag: 0.6 
    88 
    99== Description == 
     
    6969== Changelog == 
    7070 
     710.6 
     72 
     73* Minor clean-up 
     74 
    71750.6beta4 
    7276