Changeset 201728
- Timestamp:
- 02/04/2010 09:55:37 AM (16 years ago)
- Location:
- are-paypal/trunk
- Files:
-
- 6 added
- 3 edited
-
are-paypal.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
smarty/SmartyPaginate.class.php (added)
-
smarty/plugins/function.paginate_first.php (added)
-
smarty/plugins/function.paginate_last.php (added)
-
smarty/plugins/function.paginate_middle.php (added)
-
smarty/plugins/function.paginate_next.php (added)
-
smarty/plugins/function.paginate_prev.php (added)
-
templates/view_payments.tpl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
are-paypal/trunk/are-paypal.php
r201172 r201728 4 4 Plugin URI: http://arepaypal.ehibou.com/ 5 5 Description: This plugin is used to monetize wordpress blog content using PayPal. 6 Version: 1.7. 26 Version: 1.7.3 7 7 Author: Aurimas Norkevicius 8 8 Author URI: http://are.ehibou.com … … 28 28 include_once (dirname ( __FILE__ ) . "/are-paypal-templates.php"); 29 29 require (dirname ( __FILE__ ) . "/smarty/Smarty.class.php"); 30 require (dirname ( __FILE__ ) . "/smarty/SmartyPaginate.class.php"); 30 31 if (! class_exists ( 'Are_PayPal' )) { 31 32 class Are_PayPal { … … 111 112 register_activation_hook ( __FILE__, array (&$install, 'install' ) ); 112 113 $this->set_templates (); 113 $this->smarty = new Smarty ( );114 $this->smarty =& new Smarty; 114 115 $this->smarty->template_dir = dirname ( __FILE__ ) . "/templates/"; 115 116 $this->smarty->compile_dir = dirname ( __FILE__ ) . "/cache/"; … … 489 490 } 490 491 } 492 SmartyPaginate::connect(); 493 SmartyPaginate::setLimit(25); 494 SmartyPaginate::setUrl('admin.php?page=Are_PayPal_PaypalData'); 495 496 SmartyPaginate::setTotal(count($data)); 497 498 $chunked_data = array_chunk($data,SmartyPaginate::getLimit(),true); 499 500 $pageNumber=SmartyPaginate::getCurrentIndex()/SmartyPaginate::getLimit(); 501 $pageNumber=floor($pageNumber); 502 503 echo SmartyPaginate::getCurrentItem(); 504 echo " / "; 505 echo SmartyPaginate::getLimit(); 506 echo " = "; 507 echo $pageNumber; 508 509 $data=$chunked_data[$pageNumber]; 491 510 492 511 $this->smarty->assign ( 'PageHeader', __ ('View Payments') ); 493 512 $this->smarty->assign ( 'Data', $data); 513 SmartyPaginate::assign($this->smarty); 514 494 515 $this->smarty->display ( 'view_payments.tpl' ); 495 516 } -
are-paypal/trunk/readme.txt
r201172 r201728 5 5 Requires at least: 2.0.2 6 6 Tested up to: 2.9.1 7 Stable tag: 1.7. 27 Stable tag: 1.7.3 8 8 9 9 This plugin is used to monetize wordpress blog content using PayPal. It is designed to sell your knowledge. -
are-paypal/trunk/templates/view_payments.tpl
r186232 r201728 1 1 <div class="wrap"> 2 2 <h2>{$PageHeader}</h2> 3 Items {$paginate.first}-{$paginate.last} out of {$paginate.total} displayed. 3 4 <table width="100%" border="0" cellspacing="3" cellpadding="3"> 4 5 {foreach from=$Data item=rq key=k name=data_props} … … 52 53 {/foreach} 53 54 </table> 55 {paginate_prev} {paginate_middle} {paginate_next} 54 56 </div> 57 58
Note: See TracChangeset
for help on using the changeset viewer.