| 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 | | */ |
|---|
| 127 | | $options = array('title'=>'Vor einem Jahr', 'day'=>0, 'month'=>0, 'year'=>1, 'showdate'=>1, 'dateformat'=>'d.m.Y', 'notfound'=>'Kein Beitrag an diesem Tag'); |
|---|
| | 118 | $options = array('title'=>__('Vor einem Jahr',$ayb_posts_domain), 'day'=>0, 'month'=>0, 'year'=>1, 'showdate'=>1, 'dateformat'=>'d.m.Y', 'notfound'=>__('Kein Beitrag an diesem Tag.',$ayb_posts_domain)); |
|---|
| 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. |
|---|
| 156 | | 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>'; |
|---|
| 157 | | 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>'; |
|---|
| 158 | | echo '<p style="text-align:right;"><label for="ayb_posts_month">' . __('Monate zuvor:') . ' <input style="width: 30px;" id="ayb_posts_month" name="ayb_posts_month" type="text" value="'.$month.'" /></label></p>'; |
|---|
| 159 | | echo '<p style="text-align:right;"><label for="ayb_posts_year">' . __('Jahre zuvor:') . ' <input style="width: 30px;" id="ayb_posts_year" name="ayb_posts_year" type="text" value="'.$year.'" /></label></p>'; |
|---|
| 160 | | echo '<p style="text-align:right;"><label for="ayb_posts_showdate">' . __('Zeige Datum an:') . ' <input style="width: 15px;" id="ayb_posts_showdate" name="ayb_posts_showdate" type="checkbox" value="1"'.(($showdate==0)?'':'checked').' /></label></p>'; |
|---|
| 161 | | echo '<p style="text-align:right;"><label for="ayb_posts_dateformat">' . __('Datumsformat:') . ' <input style="width: 30px;" id="ayb_posts_dateformat" name="ayb_posts_dateformat" type="text" value="'.$dateformat.'" /></label></p>'; |
|---|
| 162 | | echo '<p style="text-align:right;"><label for="ayb_posts_notfound">' . __('Text wenn kein gefundener Beitrag:') . ' <input style="width: 200px;" id="ayb_posts_notfound" name="ayb_posts_notfound" type="text" value="'.$notfound.'" /></label></p>'; |
|---|
| 163 | | echo '<input type="hidden" id="ayb_posts_submit" name="ayb_posts_submit" value="1" />'; |
|---|
| | 143 | echo '<p style="text-align:right;"><label for="ayb_posts_title">' . __('Titel:',$ayb_posts_domain) . ' <input style="width: 200px;" id="ayb_posts_title" name="ayb_posts_title" type="text" value="'.$title.'" /></label></p>'; |
|---|
| | 144 | echo '<p style="text-align:right;"><label for="ayb_posts_day">' . __('Tage zuvor:',$ayb_posts_domain) . ' <input style="width: 30px;" id="ayb_posts_day" name="ayb_posts_day" type="text" value="'.$day.'" /></label></p>'; |
|---|
| | 145 | echo '<p style="text-align:right;"><label for="ayb_posts_month">' . __('Monate zuvor:',$ayb_posts_domain) . ' <input style="width: 30px;" id="ayb_posts_month" name="ayb_posts_month" type="text" value="'.$month.'" /></label></p>'; |
|---|
| | 146 | echo '<p style="text-align:right;"><label for="ayb_posts_year">' . __('Jahre zuvor:',$ayb_posts_domain) . ' <input style="width: 30px;" id="ayb_posts_year" name="ayb_posts_year" type="text" value="'.$year.'" /></label></p>'; |
|---|
| | 147 | echo '<p style="text-align:right;"><label for="ayb_posts_showdate">' . __('Zeige Datum an:',$ayb_posts_domain) . ' <input style="width: 15px;" id="ayb_posts_showdate" name="ayb_posts_showdate" type="checkbox" value="1"'.(($showdate==0)?'':'checked').' /></label></p>'; |
|---|
| | 148 | echo '<p style="text-align:right;"><label for="ayb_posts_dateformat">' . __('Datumsformat:',$ayb_posts_domain) . ' <input style="width: 45px;" id="ayb_posts_dateformat" name="ayb_posts_dateformat" type="text" value="'.$dateformat.'" /></label></p>'; |
|---|
| | 149 | echo '<p style="text-align:right;"><label for="ayb_posts_notfound">' . __('Text, wenn kein Beitrag gefunden:',$ayb_posts_domain) . ' <input style="width: 200px;" id="ayb_posts_notfound" name="ayb_posts_notfound" type="text" value="'.$notfound.'" /></label></p>'; |
|---|
| | 150 | echo '<p style="text-align:right;"><input type="submit" id="ayb_posts_submit" name="ayb_posts_submit" value="'. __('Aktualisieren',$ayb_posts_domain) . '" /></p>'; |
|---|