Changeset 575123
- Timestamp:
- 07/20/2012 01:00:47 PM (14 years ago)
- Location:
- cs-shop/trunk
- Files:
-
- 8 edited
-
cs-shop.php (modified) (3 diffs)
-
function-view.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
-
service-amazon.php (modified) (1 diff)
-
service-linkshare.php (modified) (1 diff)
-
service-rakuten.php (modified) (1 diff)
-
service-valuecommerce.php (modified) (1 diff)
-
service-yahoo.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cs-shop/trunk/cs-shop.php
r547970 r575123 4 4 Plugin URI: http://www.csync.net/category/blog/wp-plugin/cs-shop/ 5 5 Description: Easy to create a affiliate products page of affiliate services in Japan. 6 Version: 1. 06 Version: 1.1 7 7 Author: cottonspace 8 8 Author URI: http://www.csync.net/ … … 28 28 * プラグインのバージョン 29 29 */ 30 define('CS_SHOP_VER', '1. 0');30 define('CS_SHOP_VER', '1.1'); 31 31 32 32 /** … … 138 138 139 139 // 現在ページ位置の補正 140 if (!isset($params["page "]) || empty($params["page"])) {141 $params["page "] = "1";140 if (!isset($params["pagenum"]) || empty($params["pagenum"])) { 141 $params["pagenum"] = "1"; 142 142 } 143 143 -
cs-shop/trunk/function-view.php
r547970 r575123 340 340 341 341 // 現在ページ位置 342 $current = intval($params["page "]);342 $current = intval($params["pagenum"]); 343 343 344 344 // PC・携帯電話の判定 … … 353 353 } else { 354 354 if ($i == 1 || (($current - 3) <= $i && $i <= ($current + 3)) || $i == $total) { 355 $output .= "<a href=\"$url&page =$i\" class=\"page\">$i</a>\n";355 $output .= "<a href=\"$url&pagenum=$i\" class=\"page\">$i</a>\n"; 356 356 } else if ($i == 2 || $i == ($total - 1)) { 357 357 $output .= "..\n"; … … 364 364 // 携帯電話の場合 365 365 if (1 < $current) { 366 $output = "<a href=\"$url&page =" . ($current - 1) . "\">«前ページ</a>\n";366 $output = "<a href=\"$url&pagenum=" . ($current - 1) . "\">«前ページ</a>\n"; 367 367 } 368 368 $output .= "$current\n"; 369 369 if ($current < $total) { 370 $output .= "<a href=\"$url&page =" . ($current + 1) . "\">次ページ»</a>\n";370 $output .= "<a href=\"$url&pagenum=" . ($current + 1) . "\">次ページ»</a>\n"; 371 371 } 372 372 } -
cs-shop/trunk/readme.txt
r547970 r575123 4 4 Requires at least: 3.0 5 5 Tested up to: 3.0 6 Stable tag: 1. 06 Stable tag: 1.1 7 7 8 8 Easy to create a affiliate products page of affiliate services in Japan. … … 29 29 30 30 == Changelog == 31 32 = 1.1 = 33 * Change query param "page" to "pagenum". 31 34 32 35 = 1.0 = … … 66 69 67 70 == Upgrade Notice == 71 72 = 1.1 = 73 Change the name of page param. 68 74 69 75 = 1.0 = -
cs-shop/trunk/service-amazon.php
r547970 r575123 478 478 479 479 // ページ番号の指定(Amazon のページサイズは10固定) 480 if (!empty($this->requests["page "])) {481 $params["ItemPage"] = $this->requests["page "];480 if (!empty($this->requests["pagenum"])) { 481 $params["ItemPage"] = $this->requests["pagenum"]; 482 482 } 483 483 -
cs-shop/trunk/service-linkshare.php
r538922 r575123 67 67 } 68 68 $params["max"] = $this->requests["pagesize"]; 69 $params["pagenumber"] = $this->requests["page "];69 $params["pagenumber"] = $this->requests["pagenum"]; 70 70 if (!empty($this->requests["sort"]) && array_key_exists($this->requests["sort"], $this->sortTypes)) { 71 71 $sort_array = explode(',', $this->sortTypes[$this->requests["sort"]], 2); -
cs-shop/trunk/service-rakuten.php
r538922 r575123 105 105 $params["sort"] = "standard"; 106 106 } 107 $params["page"] = $this->requests["page "];107 $params["page"] = $this->requests["pagenum"]; 108 108 ksort($params); 109 109 return $baseurl . "?" . http_build_query($params); -
cs-shop/trunk/service-valuecommerce.php
r538922 r575123 90 90 } 91 91 $params["results_per_page"] = $this->requests["pagesize"]; 92 $params["page"] = $this->requests["page "];92 $params["page"] = $this->requests["pagenum"]; 93 93 if (!empty($this->requests["sort"]) && array_key_exists($this->requests["sort"], $this->sortTypes)) { 94 94 $sort_array = explode(',', $this->sortTypes[$this->requests["sort"]], 2); -
cs-shop/trunk/service-yahoo.php
r547970 r575123 101 101 $params["category_id"] = empty($this->requests["category"]) ? "1" : $this->requests["category"]; 102 102 $params["hits"] = $this->requests["pagesize"]; 103 $params["offset"] = $this->requests["pagesize"] * ($this->requests["page "] - 1);103 $params["offset"] = $this->requests["pagesize"] * ($this->requests["pagenum"] - 1); 104 104 if (!empty($this->requests["sort"]) && array_key_exists($this->requests["sort"], $this->sortTypes)) { 105 105 $params["sort"] = $this->sortTypes[$this->requests["sort"]];
Note: See TracChangeset
for help on using the changeset viewer.