Changeset 532055
- Timestamp:
- 04/16/2012 10:11:30 PM (14 years ago)
- Location:
- affiliate-press
- Files:
-
- 10 edited
- 1 copied
-
tags/0.3.4 (copied) (copied from affiliate-press/trunk)
-
tags/0.3.4/affiliate-press.php (modified) (3 diffs)
-
tags/0.3.4/includes/class-affiliate-press.php (modified) (1 diff)
-
tags/0.3.4/readme.txt (modified) (2 diffs)
-
tags/0.3.4/styles.css (modified) (2 diffs)
-
tags/0.3.4/views/dashboard.php (modified) (1 diff)
-
trunk/affiliate-press.php (modified) (3 diffs)
-
trunk/includes/class-affiliate-press.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/styles.css (modified) (2 diffs)
-
trunk/views/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
affiliate-press/tags/0.3.4/affiliate-press.php
r530018 r532055 2 2 /** 3 3 * @package Affiliate_Press 4 * @version 0.3. 34 * @version 0.3.4 5 5 */ 6 6 /* … … 9 9 Description: Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 10 10 Author: ldebrouwer 11 Version: 0.3. 311 Version: 0.3.4 12 12 Author URI: http://lucdebrouwer.nl/ 13 13 */ … … 31 31 function AP_activation() { 32 32 include( LDB_AP_PATH . 'affiliate-press-upgrade.php' ); 33 update_option( 'LDB_Affiliate_Press_Version', '0.3. 3' );33 update_option( 'LDB_Affiliate_Press_Version', '0.3.4' ); 34 34 wp_schedule_event( time(), 'hourly', 'AP_cronjob' ); 35 35 } -
affiliate-press/tags/0.3.4/includes/class-affiliate-press.php
r530018 r532055 274 274 /* Function that shows the dashboard. */ 275 275 function AP_dashboard() { 276 global $wpdb; 277 $dashboard['products'] = count( get_posts( array( 'post_type' => 'product', 'post_status' => array( 'publish', 'draft' ) ) ) ); 278 $dashboard['feeds'] = count( $wpdb->get_results( 'SELECT ID FROM ' . $wpdb->prefix . 'apfeeds', ARRAY_A ) ); 279 $dashboard['multipleprices'] = count( $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'posts AS products WHERE (SELECT COUNT(*) FROM ' . $wpdb->prefix . 'apprices WHERE ' . $wpdb->prefix . 'apprices.productID = products.ID) > 1 AND post_type="product"', ARRAY_A ) ); 280 $dashboard['oneprice'] = count( $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'posts AS products WHERE (SELECT COUNT(*) FROM ' . $wpdb->prefix . 'apprices WHERE ' . $wpdb->prefix . 'apprices.productID = products.ID) = 1 AND post_type="product"', ARRAY_A ) ); 281 $dashboard['noprices'] = count( $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'posts AS products WHERE (SELECT COUNT(*) FROM ' . $wpdb->prefix . 'apprices WHERE ' . $wpdb->prefix . 'apprices.productID = products.ID) = 0 AND post_type="product"', ARRAY_A ) ); 276 282 include( LDB_AP_VIEW_PATH . 'dashboard.php' ); 277 283 } -
affiliate-press/tags/0.3.4/readme.txt
r530018 r532055 5 5 Requires at least: 3.3 6 6 Tested up to: 3.4 7 Stable tag: 0.3. 37 Stable tag: 0.3.4 8 8 9 9 Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. … … 57 57 == Changelog == 58 58 59 = 0.3.4 = 60 * Added a first version of the dashboard. 61 59 62 = 0.3.3 = 60 63 * Added the 'Add New Feed Wizard'. It's still rudimentary and feedback would be highly appreciated. Should work like a charm with Daisycon feeds. -
affiliate-press/tags/0.3.4/styles.css
r529401 r532055 61 61 font-size: 0; 62 62 line-height: 0; 63 display: block; 63 64 } 64 65 … … 85 86 text-indent: -9999px; 86 87 } 88 89 #ap_dashboard .table { 90 width: 48%; 91 float: left; 92 margin-right: 4%; 93 } 94 95 #ap_dashboard .last { 96 margin-right: 0; 97 } 98 99 #ap_dashboard p { 100 color: #8f8f8f; 101 font-size: 14px; 102 left: 15px; 103 padding: 5px 0; 104 border-bottom: 1px solid #dfdfdf; 105 margin: -5px 0 5px 0; 106 } 107 108 #ap_dashboard td { 109 color: #777777; 110 font-size: 12px; 111 padding: 6px 12px 0 0; 112 white-space: nowrap; 113 } 114 115 #ap_dashboard td.first { 116 font-family: Georgia, "Times New Roman", "Bitstream Charter", Times,serif; 117 font-size: 18px; 118 padding: 0 12px 0 0; 119 text-align: right; 120 } 121 122 #ap_dashboard a { 123 text-decoration: none; 124 } 125 126 #ap_dashboard .green { 127 color: green; 128 } 129 130 #ap_dashboard .yellow { 131 color: #e66f00; 132 } 133 134 #ap_dashboard .red { 135 color: red; 136 } -
affiliate-press/tags/0.3.4/views/dashboard.php
r528107 r532055 4 4 <div id="ap_body"> 5 5 <div id="ap_main"> 6 <div class="metabox-holder"> 7 <div id="ap_dashboard" class="postbox"> 8 <div class="handlediv" title="Click to toggle"><br /></div> 9 <h3 class="hndle"><span>Dashboard</span></h3> 10 <div class="inside"> 11 <div class="table"> 12 <p><?php echo __( 'General', 'LDB_AP' ); ?></p> 13 <table> 14 <tr> 15 <td class="first"><a href="edit.php"><?php echo $dashboard['products']; ?></a></td> 16 <td><a href="edit.php?post_type=product"><?php echo _n( 'Product', 'Products', $dashboard['products'], 'LDB_AP' ); ?></a></td> 17 </tr> 18 <tr> 19 <td class="first"><a href="edit.php?post_type=page"><?php echo $dashboard['feeds']; ?></a></td> 20 <td><a href="admin.php?page=affiliate_press_feeds"><?php echo _n( 'Feed', 'Feeds', $dashboard['feeds'], 'LDB_AP' ); ?></a></td> 21 </tr> 22 </table> 23 </div> 24 <div class="table last"> 25 <p><?php echo __( 'Prices', 'LDB_AP' ); ?></p> 26 <table> 27 <tr> 28 <td class="first"><a href="edit.php"><?php echo $dashboard['multipleprices']; ?></a></td> 29 <td><a href="edit.php?post_type=product" class="green"><?php echo _n( 'Product with multiple prices', 'Products with multiple prices', $dashboard['multipleprices'], 'LDB_AP' ); ?></a></td> 30 </tr> 31 <tr> 32 <td class="first"><a href="edit.php?post_type=page"><?php echo $dashboard['oneprice']; ?></a></td> 33 <td><a href="edit.php?post_type=product" class="yellow"><?php echo _n( 'Product with one price', 'Products with one price', $dashboard['oneprice'], 'LDB_AP' ); ?></a></td> 34 </tr> 35 <tr> 36 <td class="first"><a href="edit.php?post_type=page"><?php echo $dashboard['noprices']; ?></a></td> 37 <td><a href="edit.php?post_type=product" class="red"><?php echo _n( 'Product with zero prices', 'Products with zero prices', $dashboard['noprices'], 'LDB_AP' ); ?></a></td> 38 </tr> 39 </table> 40 </div> 41 <span class="clr"> </span> 42 </div> 43 </div> 44 </div> 6 45 <p><?php echo __( 'Still thinking about the dashboard layout. :)' ); ?></p> 7 46 <p><?php echo __( 'A help and support section is also in the works.' ); ?></p> -
affiliate-press/trunk/affiliate-press.php
r530018 r532055 2 2 /** 3 3 * @package Affiliate_Press 4 * @version 0.3. 34 * @version 0.3.4 5 5 */ 6 6 /* … … 9 9 Description: Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 10 10 Author: ldebrouwer 11 Version: 0.3. 311 Version: 0.3.4 12 12 Author URI: http://lucdebrouwer.nl/ 13 13 */ … … 31 31 function AP_activation() { 32 32 include( LDB_AP_PATH . 'affiliate-press-upgrade.php' ); 33 update_option( 'LDB_Affiliate_Press_Version', '0.3. 3' );33 update_option( 'LDB_Affiliate_Press_Version', '0.3.4' ); 34 34 wp_schedule_event( time(), 'hourly', 'AP_cronjob' ); 35 35 } -
affiliate-press/trunk/includes/class-affiliate-press.php
r530018 r532055 274 274 /* Function that shows the dashboard. */ 275 275 function AP_dashboard() { 276 global $wpdb; 277 $dashboard['products'] = count( get_posts( array( 'post_type' => 'product', 'post_status' => array( 'publish', 'draft' ) ) ) ); 278 $dashboard['feeds'] = count( $wpdb->get_results( 'SELECT ID FROM ' . $wpdb->prefix . 'apfeeds', ARRAY_A ) ); 279 $dashboard['multipleprices'] = count( $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'posts AS products WHERE (SELECT COUNT(*) FROM ' . $wpdb->prefix . 'apprices WHERE ' . $wpdb->prefix . 'apprices.productID = products.ID) > 1 AND post_type="product"', ARRAY_A ) ); 280 $dashboard['oneprice'] = count( $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'posts AS products WHERE (SELECT COUNT(*) FROM ' . $wpdb->prefix . 'apprices WHERE ' . $wpdb->prefix . 'apprices.productID = products.ID) = 1 AND post_type="product"', ARRAY_A ) ); 281 $dashboard['noprices'] = count( $wpdb->get_results( 'SELECT * FROM ' . $wpdb->prefix . 'posts AS products WHERE (SELECT COUNT(*) FROM ' . $wpdb->prefix . 'apprices WHERE ' . $wpdb->prefix . 'apprices.productID = products.ID) = 0 AND post_type="product"', ARRAY_A ) ); 276 282 include( LDB_AP_VIEW_PATH . 'dashboard.php' ); 277 283 } -
affiliate-press/trunk/readme.txt
r530018 r532055 5 5 Requires at least: 3.3 6 6 Tested up to: 3.4 7 Stable tag: 0.3. 37 Stable tag: 0.3.4 8 8 9 9 Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. … … 57 57 == Changelog == 58 58 59 = 0.3.4 = 60 * Added a first version of the dashboard. 61 59 62 = 0.3.3 = 60 63 * Added the 'Add New Feed Wizard'. It's still rudimentary and feedback would be highly appreciated. Should work like a charm with Daisycon feeds. -
affiliate-press/trunk/styles.css
r529401 r532055 61 61 font-size: 0; 62 62 line-height: 0; 63 display: block; 63 64 } 64 65 … … 85 86 text-indent: -9999px; 86 87 } 88 89 #ap_dashboard .table { 90 width: 48%; 91 float: left; 92 margin-right: 4%; 93 } 94 95 #ap_dashboard .last { 96 margin-right: 0; 97 } 98 99 #ap_dashboard p { 100 color: #8f8f8f; 101 font-size: 14px; 102 left: 15px; 103 padding: 5px 0; 104 border-bottom: 1px solid #dfdfdf; 105 margin: -5px 0 5px 0; 106 } 107 108 #ap_dashboard td { 109 color: #777777; 110 font-size: 12px; 111 padding: 6px 12px 0 0; 112 white-space: nowrap; 113 } 114 115 #ap_dashboard td.first { 116 font-family: Georgia, "Times New Roman", "Bitstream Charter", Times,serif; 117 font-size: 18px; 118 padding: 0 12px 0 0; 119 text-align: right; 120 } 121 122 #ap_dashboard a { 123 text-decoration: none; 124 } 125 126 #ap_dashboard .green { 127 color: green; 128 } 129 130 #ap_dashboard .yellow { 131 color: #e66f00; 132 } 133 134 #ap_dashboard .red { 135 color: red; 136 } -
affiliate-press/trunk/views/dashboard.php
r528107 r532055 4 4 <div id="ap_body"> 5 5 <div id="ap_main"> 6 <div class="metabox-holder"> 7 <div id="ap_dashboard" class="postbox"> 8 <div class="handlediv" title="Click to toggle"><br /></div> 9 <h3 class="hndle"><span>Dashboard</span></h3> 10 <div class="inside"> 11 <div class="table"> 12 <p><?php echo __( 'General', 'LDB_AP' ); ?></p> 13 <table> 14 <tr> 15 <td class="first"><a href="edit.php"><?php echo $dashboard['products']; ?></a></td> 16 <td><a href="edit.php?post_type=product"><?php echo _n( 'Product', 'Products', $dashboard['products'], 'LDB_AP' ); ?></a></td> 17 </tr> 18 <tr> 19 <td class="first"><a href="edit.php?post_type=page"><?php echo $dashboard['feeds']; ?></a></td> 20 <td><a href="admin.php?page=affiliate_press_feeds"><?php echo _n( 'Feed', 'Feeds', $dashboard['feeds'], 'LDB_AP' ); ?></a></td> 21 </tr> 22 </table> 23 </div> 24 <div class="table last"> 25 <p><?php echo __( 'Prices', 'LDB_AP' ); ?></p> 26 <table> 27 <tr> 28 <td class="first"><a href="edit.php"><?php echo $dashboard['multipleprices']; ?></a></td> 29 <td><a href="edit.php?post_type=product" class="green"><?php echo _n( 'Product with multiple prices', 'Products with multiple prices', $dashboard['multipleprices'], 'LDB_AP' ); ?></a></td> 30 </tr> 31 <tr> 32 <td class="first"><a href="edit.php?post_type=page"><?php echo $dashboard['oneprice']; ?></a></td> 33 <td><a href="edit.php?post_type=product" class="yellow"><?php echo _n( 'Product with one price', 'Products with one price', $dashboard['oneprice'], 'LDB_AP' ); ?></a></td> 34 </tr> 35 <tr> 36 <td class="first"><a href="edit.php?post_type=page"><?php echo $dashboard['noprices']; ?></a></td> 37 <td><a href="edit.php?post_type=product" class="red"><?php echo _n( 'Product with zero prices', 'Products with zero prices', $dashboard['noprices'], 'LDB_AP' ); ?></a></td> 38 </tr> 39 </table> 40 </div> 41 <span class="clr"> </span> 42 </div> 43 </div> 44 </div> 6 45 <p><?php echo __( 'Still thinking about the dashboard layout. :)' ); ?></p> 7 46 <p><?php echo __( 'A help and support section is also in the works.' ); ?></p>
Note: See TracChangeset
for help on using the changeset viewer.