Changeset 556707
- Timestamp:
- 06/12/2012 02:20:43 PM (14 years ago)
- Location:
- wp-birthday-users/trunk
- Files:
-
- 1 added
- 1 deleted
- 3 edited
-
birthday-users-admin-css.css (modified) (3 diffs)
-
images/Thumbs.db (deleted)
-
images/birthday-passed.png (added)
-
readme.txt (modified) (3 diffs)
-
wp-birthday-users.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-birthday-users/trunk/birthday-users-admin-css.css
r556506 r556707 1 1 /* 2 WP Switch style sheet for admin 3 */ 4 2 * WP Birthday Users style sheet for admin 3 * */ 5 4 6 5 #icon-wp-birthday-users { 7 6 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;45 7 } 46 8 h4 { … … 48 10 padding: 2px; 49 11 } 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 } 22 table { 23 padding: 5px; 24 } 25 th { 26 text-align: left; 27 } 28 td{ 51 29 margin: 5px; 52 30 padding: 2px; … … 63 41 float: left; 64 42 } 43 -
wp-birthday-users/trunk/readme.txt
r556617 r556707 5 5 Requires at least: x.x.x 6 6 Tested up to: 3.3.2 7 Stable tag: 0.1. 17 Stable tag: 0.1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 15 15 This 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. 16 When saved, the system will generate a ICAL-file that can included in many calendar programs/plugins. 16 17 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.18 As 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. 18 19 19 20 == Installation == … … 42 43 == Changelog == 43 44 45 = 0.1.2 = 46 * Fixed style error with Chrome 47 * Fixed the function to collapse upcoming/passed birthday info 48 44 49 = 0.1.1 = 45 50 * Add translation Dutch -
wp-birthday-users/trunk/wp-birthday-users.php
r556543 r556707 4 4 Plugin URI: http://omar.reygaert.eu/wp/plugins/wp-birthday-users 5 5 Plugin that adds birthday posts for the users. 6 Version: 0.1.1 6 Version: 0.1.2 7 Domain Path: /lang 7 8 Author: Omar Reygaert 8 9 Author URI: http://about.me/omar.reygaert … … 71 72 foreach ($optionarray_def['come'] as $user_id => $user) { 72 73 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>"; 74 75 } 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>"; 77 78 } 78 //echo "<div class=\"user\">".$user['birthday_date']." - ".$user['birthday_user']." (".age($user['birthday_date'])."j)</div>"; 79 } 79 } 80 80 usort($optionarray_def['past'], 'date_sort'); 81 81 $passed = ''; 82 82 foreach ($optionarray_def['past'] as $key => $user) { 83 83 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>"; 85 85 } 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>"; 88 88 } 89 //echo "<div class=\"user\">".$user['birthday_date']." - ".$user['birthday_user']." (".age($user['birthday_date'])."j)</div>"; 90 } 89 } 91 90 if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } 92 91 ?> … … 104 103 <div class="postbox"> 105 104 <div class="handlediv" title="Klik om te wisselen"><br /></div><h3><span class="upcoming"> </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> 107 110 </div> 108 111 </div> … … 110 113 <div class="postbox"> 111 114 <div class="handlediv" title="Klik om te wisselen"><br /></div><h3><span class="upcoming"> </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> 113 120 </div> 114 121 </div> 122 <script> 123 var $j = jQuery.noConflict(); 124 $j(".handlediv").click(function() { 125 $j(this).parent().children(".content").toggle(); 126 }); 127 </script> 115 128 <?php 116 129
Note: See TracChangeset
for help on using the changeset viewer.