Plugin Directory

Changeset 556707


Ignore:
Timestamp:
06/12/2012 02:20:43 PM (14 years ago)
Author:
omarke85
Message:

Fixed style and javascript errors

Location:
wp-birthday-users/trunk
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • wp-birthday-users/trunk/birthday-users-admin-css.css

    r556506 r556707  
    11/*
    2 WP Switch style sheet for admin
    3 */
    4 
     2 * WP Birthday Users style sheet for admin
     3 * */
    54
    65#icon-wp-birthday-users {
    76    background: transparent url(images/birthday-admin-icon.png) no-repeat;
    8 }
    9 .input {
    10   position: relative;
    11 }
    12 .preview {
    13   position:absolute;
    14   left: 375px;
    15   top:0px;
    16 }
    17 .adminstatus {
    18   position:absolute;
    19   left: 70px;
    20   top:-20px;
    21 }
    22 input[type=checkbox] {
    23   display:none;
    24   border: 1px solid green;
    25 }
    26 
    27 input[type=checkbox] + label {
    28   background: transparent url(images/switchOffB.png) 0 0px no-repeat;
    29   height: 32px;
    30   width: 32px;
    31   display:inline-block;
    32   padding: 0 0 0 0px;
    33 }
    34 
    35 input[type=checkbox]:checked + label {
    36   background: transparent url(images/switchOnB.png) 0 0px no-repeat;
    37   height: 32px;
    38   width: 32px;
    39   display:inline-block;
    40   padding: 0 0 0 0px;
    41 }
    42 xmp {
    43   border: 1px solid #66666;
    44   color: #333;
    457}
    468h4 {
     
    4810  padding: 2px;
    4911}
    50 p.user {
     12.upcoming {
     13  background: transparent url(images/birthday-.png) 0 0px no-repeat;
     14  display:inline-block;
     15  padding: 0 0 2px 20px;
     16}
     17.passed {
     18  background: transparent url(images/birthday-passed.png) 0 0px no-repeat;
     19  display:inline-block;
     20  padding: 0 0 2px 20px;
     21}
     22table {
     23  padding: 5px;
     24}
     25th {
     26  text-align: left;
     27}
     28td{
    5129  margin: 5px;
    5230  padding: 2px;
     
    6341  float: left;
    6442}
     43
  • wp-birthday-users/trunk/readme.txt

    r556617 r556707  
    55Requires at least: x.x.x
    66Tested up to: 3.3.2
    7 Stable tag: 0.1.1
     7Stable tag: 0.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414
    1515This plugin will add additional fields in the profil of a user, they can fill in there birthday, choose if they want to share it and if they want to show there birthday.
     16When saved, the system will generate a ICAL-file that can included in many calendar programs/plugins.
    1617
    17 As admin you can see a overview of all birthdays, with upcoming, passed and with some info about, how many registered birthdays, the oldest, youngest, average age.
     18As admin you can see an overview of all birthdays, with upcoming, passed and with some info about, how many registered birthdays, the oldest, youngest, average age.
    1819
    1920== Installation ==
     
    4243== Changelog ==
    4344
     45= 0.1.2 =
     46* Fixed style error with Chrome
     47* Fixed the function to collapse upcoming/passed birthday info
     48
    4449= 0.1.1 =
    4550* Add translation Dutch
  • wp-birthday-users/trunk/wp-birthday-users.php

    r556543 r556707  
    44Plugin URI: http://omar.reygaert.eu/wp/plugins/wp-birthday-users
    55Plugin that adds birthday posts for the users.
    6 Version: 0.1.1
     6Version: 0.1.2
     7Domain Path: /lang
    78Author: Omar Reygaert
    89Author URI: http://about.me/omar.reygaert
     
    7172  foreach ($optionarray_def['come'] as $user_id => $user) {
    7273    if ($user['birthday_newer'] == $optionarray_def['come'][$key-1]['birthday_newer']) {
    73       $upcoming .= "<p class=\"user\"><div class=\"date\">".$user['birthday_date']."</div> (".age($user['birthday_date']).__('y', 'wp-birthday-users').") <div class=\"username\"> - ".$user['birthday_user']."</div></p>";
     74      $upcoming .= "<tr><td class=\"date\">".$user['birthday_date']."</td><td> - </td><td class=\"username\">".$user['birthday_user']."</td><td>(".age($user['birthday_date']).__('y', 'wp-birthday-users').")</td></tr>";
    7475    } else {
    75       $upcoming .= "<h4>".date('M', mktime(0,0,0,$user['birthday_newer'],1))."</h4>";
    76       $upcoming .= "<p class=\"user\"><div class=\"date\">".$user['birthday_date']."</div> (".age($user['birthday_date']).__('y', 'wp-birthday-users').") <div class=\"username\"> - ".$user['birthday_user']."</div></p>";
     76      $upcoming .= "<th>".date('M', mktime(0,0,0,$user['birthday_newer'],1))."</th>";
     77      $upcoming .= "<tr><td class=\"date\">".$user['birthday_date']."</td><td> - </td><td class=\"username\">".$user['birthday_user']."</td><td>(".age($user['birthday_date']).__('y', 'wp-birthday-users').")</td></tr>";
    7778    }
    78     //echo "<div class=\"user\">".$user['birthday_date']." - ".$user['birthday_user']." (".age($user['birthday_date'])."j)</div>";
    79   }
     79   }
    8080  usort($optionarray_def['past'], 'date_sort');
    8181  $passed = '';
    8282  foreach ($optionarray_def['past'] as $key => $user) {
    8383    if ($user['birthday_newer'] == $optionarray_def['past'][$key-1]['birthday_newer']) {
    84       $passed .= "<p class=\"user\"><div class=\"date\">".$user['birthday_date']."</div> (".age($user['birthday_date']).__('y', 'wp-birthday-users').") <div class=\"username\"> - ".$user['birthday_user']."</div></p>";
     84      $passed .= "<tr class=\"user\"><td class=\"date\">".$user['birthday_date']."</td><td> - </td><td class=\"username\">".$user['birthday_user']."</td><td>(".age($user['birthday_date']).__('y', 'wp-birthday-users').")</td></tr>";
    8585    } else {
    86       $passed .= "<h4>".date('M', mktime(0,0,0,$user['birthday_newer'],1))."</h4>";
    87       $passed .= "<p class=\"user\"><div class=\"date\">".$user['birthday_date']."</div> (".age($user['birthday_date']).__('y', 'wp-birthday-users').") <div class=\"username\"> - ".$user['birthday_user']."</div></p>";
     86      $passed .= "<th>".date('M', mktime(0,0,0,$user['birthday_newer'],1))."</th>";
     87      $passed .= "<tr class=\"user\"><td class=\"date\">".$user['birthday_date']."</td><td> - </td><td class=\"username\">".$user['birthday_user']."</td><td>(".age($user['birthday_date']).__('y', 'wp-birthday-users').")</td></tr>";
    8888    }
    89     //echo "<div class=\"user\">".$user['birthday_date']." - ".$user['birthday_user']." (".age($user['birthday_date'])."j)</div>";
    90   }
     89   }
    9190  if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; }
    9291?>
     
    104103      <div class="postbox">
    105104        <div class="handlediv" title="Klik om te wisselen"><br /></div><h3><span class="upcoming">&nbsp;</span><?php _e('Upcoming birthdays', 'wp-birthday-users'); ?> - <small>( <?php echo count($optionarray_def['come'])." / ".$usersbirthday; ?> )</small></h3>
    106         <?php echo $upcoming; ?>
     105        <div class="content">
     106          <table>
     107            <?php echo $upcoming; ?></table>
     108          </table>
     109        </div>
    107110      </div>
    108111    </div>
     
    110113      <div class="postbox">
    111114        <div class="handlediv" title="Klik om te wisselen"><br /></div><h3><span class="upcoming">&nbsp;</span><?php _e('Passed birthdays', 'wp-birthday-users'); ?> - <small>( <?php echo count($optionarray_def['past'])." / ".$usersbirthday; ?> )</small></h3>
    112         <?php echo $passed; ?>
     115        <div class="content">
     116          <table>
     117            <?php echo $passed; ?></table>
     118          </table>
     119        </div>
    113120      </div>
    114121    </div>
     122    <script>
     123      var $j = jQuery.noConflict();
     124      $j(".handlediv").click(function() {
     125          $j(this).parent().children(".content").toggle();
     126      });
     127    </script>
    115128<?php
    116129
Note: See TracChangeset for help on using the changeset viewer.