Plugin Directory

Changeset 575123


Ignore:
Timestamp:
07/20/2012 01:00:47 PM (14 years ago)
Author:
cottonspace
Message:

Change query name "page" to "pagenum".

Location:
cs-shop/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cs-shop/trunk/cs-shop.php

    r547970 r575123  
    44Plugin URI: http://www.csync.net/category/blog/wp-plugin/cs-shop/
    55Description: Easy to create a affiliate products page of affiliate services in Japan.
    6 Version: 1.0
     6Version: 1.1
    77Author: cottonspace
    88Author URI: http://www.csync.net/
     
    2828 * プラグインのバージョン
    2929 */
    30 define('CS_SHOP_VER', '1.0');
     30define('CS_SHOP_VER', '1.1');
    3131
    3232/**
     
    138138
    139139    // 現在ページ位置の補正
    140     if (!isset($params["page"]) || empty($params["page"])) {
    141         $params["page"] = "1";
     140    if (!isset($params["pagenum"]) || empty($params["pagenum"])) {
     141        $params["pagenum"] = "1";
    142142    }
    143143
  • cs-shop/trunk/function-view.php

    r547970 r575123  
    340340
    341341    // 現在ページ位置
    342     $current = intval($params["page"]);
     342    $current = intval($params["pagenum"]);
    343343
    344344    // PC・携帯電話の判定
     
    353353            } else {
    354354                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";
    356356                } else if ($i == 2 || $i == ($total - 1)) {
    357357                    $output .= "..\n";
     
    364364        // 携帯電話の場合
    365365        if (1 < $current) {
    366             $output = "<a href=\"$url&page=" . ($current - 1) . "\">&laquo;前ページ</a>\n";
     366            $output = "<a href=\"$url&pagenum=" . ($current - 1) . "\">&laquo;前ページ</a>\n";
    367367        }
    368368        $output .= "$current\n";
    369369        if ($current < $total) {
    370             $output .= "<a href=\"$url&page=" . ($current + 1) . "\">次ページ&raquo;</a>\n";
     370            $output .= "<a href=\"$url&pagenum=" . ($current + 1) . "\">次ページ&raquo;</a>\n";
    371371        }
    372372    }
  • cs-shop/trunk/readme.txt

    r547970 r575123  
    44Requires at least: 3.0
    55Tested up to: 3.0
    6 Stable tag: 1.0
     6Stable tag: 1.1
    77
    88Easy to create a affiliate products page of affiliate services in Japan.
     
    2929
    3030== Changelog ==
     31
     32= 1.1 =
     33* Change query param "page" to "pagenum".
    3134
    3235= 1.0 =
     
    6669
    6770== Upgrade Notice ==
     71
     72= 1.1 =
     73Change the name of page param.
    6874
    6975= 1.0 =
  • cs-shop/trunk/service-amazon.php

    r547970 r575123  
    478478
    479479        // ページ番号の指定(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"];
    482482        }
    483483
  • cs-shop/trunk/service-linkshare.php

    r538922 r575123  
    6767        }
    6868        $params["max"] = $this->requests["pagesize"];
    69         $params["pagenumber"] = $this->requests["page"];
     69        $params["pagenumber"] = $this->requests["pagenum"];
    7070        if (!empty($this->requests["sort"]) && array_key_exists($this->requests["sort"], $this->sortTypes)) {
    7171            $sort_array = explode(',', $this->sortTypes[$this->requests["sort"]], 2);
  • cs-shop/trunk/service-rakuten.php

    r538922 r575123  
    105105            $params["sort"] = "standard";
    106106        }
    107         $params["page"] = $this->requests["page"];
     107        $params["page"] = $this->requests["pagenum"];
    108108        ksort($params);
    109109        return $baseurl . "?" . http_build_query($params);
  • cs-shop/trunk/service-valuecommerce.php

    r538922 r575123  
    9090        }
    9191        $params["results_per_page"] = $this->requests["pagesize"];
    92         $params["page"] = $this->requests["page"];
     92        $params["page"] = $this->requests["pagenum"];
    9393        if (!empty($this->requests["sort"]) && array_key_exists($this->requests["sort"], $this->sortTypes)) {
    9494            $sort_array = explode(',', $this->sortTypes[$this->requests["sort"]], 2);
  • cs-shop/trunk/service-yahoo.php

    r547970 r575123  
    101101        $params["category_id"] = empty($this->requests["category"]) ? "1" : $this->requests["category"];
    102102        $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);
    104104        if (!empty($this->requests["sort"]) && array_key_exists($this->requests["sort"], $this->sortTypes)) {
    105105            $params["sort"] = $this->sortTypes[$this->requests["sort"]];
Note: See TracChangeset for help on using the changeset viewer.