Permalink
Browse files

スマホ対応を一旦止める

  • Loading branch information...
1 parent a43a290 commit 3db6080f8face168562dd2214730a87452a09ccd @kurozumi committed Jan 8, 2017
View
@@ -214,17 +214,12 @@ public function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename)
if (strpos($filename, "products/list.tpl") !== false) {
$template_path = "products/plg_OrderBy_list.tpl";
$template = "<!--{include file='{$template_path}'}-->";
- $objTransform->select(".change")->replaceElement($template);
+ $objTransform->select(".change")->appendFirst($template);
}
break;
case DEVICE_TYPE_MOBILE:
break;
case DEVICE_TYPE_SMARTPHONE:
- if (strpos($filename, "products/list.tpl") !== false) {
- $template_path = "products/plg_OrderBy_list.tpl";
- $template = "<!--{include file='{$template_path}'}-->";
- $objTransform->select(".pagenumberarea")->replaceElement($template);
- }
break;
case DEVICE_TYPE_ADMIN:
default:
@@ -20,30 +20,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*}-->
-<div class="change">
- <!--{if $orderby != 'price'}-->
- <a href="javascript:fnChangeOrderby('price');">価格順</a>
- <!--{else}-->
- <strong>価格順</strong>
- <!--{/if}-->&nbsp;
- <!--{if $orderby != "date"}-->
- <a href="javascript:fnChangeOrderby('date');">新着順</a>
- <!--{else}-->
- <strong>新着順</strong>
- <!--{/if}-->
- <!--{if $orderby != "update"}-->
- <a href="javascript:fnChangeOrderby('update');">更新順</a>
- <!--{else}-->
- <strong>更新順</strong>
- <!--{/if}-->
- 表示件数
- <select name="disp_number" onchange="javascript:fnChangeDispNumber(this.value);">
- <!--{foreach from=$arrPRODUCTLISTMAX item="dispnum" key="num"}-->
- <!--{if $num == $disp_number}-->
- <option value="<!--{$num}-->" selected="selected" ><!--{$dispnum}--></option>
- <!--{else}-->
- <option value="<!--{$num}-->" ><!--{$dispnum}--></option>
- <!--{/if}-->
- <!--{/foreach}-->
- </select>
-</div>
+<!--{if $orderby != "update"}-->
+<a href="javascript:fnChangeOrderby('update');">更新順</a>
+<!--{else}-->
+<strong>更新順</strong>
+<!--{/if}-->
@@ -1,95 +0,0 @@
-<!--{*
-* This file is part of EC-CUBE
-*
-* Copyright(c) 2000-2014 LOCKON CO.,LTD. All Rights Reserved.
-*
-* http://www.lockon.co.jp/
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*}-->
-
-<style type="text/css">
-.pagenumberarea li:first-child {
- border-radius: 5px 0 0 0;
- -moz-border-radius: 5px 0 0 0;
- -webkit-border-radius: 5px 0 0 0;
-}
-.pagenumberarea li:last-child {
- border-radius: 0 0 0 5px;
- -moz-border-radius: 0 0 0 5px;
- -webkit-border-radius: 0 0 0 5px;
-}
-.pagenumberarea li:first-child a {
- border-radius: 5px 0 0 0;
- -moz-border-radius: 5px 0 0 0;
- -webkit-border-radius: 5px 0 0 0;
- border-right: #A9ABAD solid 1px;
- text-shadow: 1px 1px 1px rgba(255,255,255,1);
- background: #FDFDfD;
- background: -moz-linear-gradient(center top, #FDFDFD 0%,#D7DDE3 100%);
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FDFDFD),color-stop(1, #D7DDE3));
-}
-.pagenumberarea li:last-child a {
- border-radius: 0 0 0 5px;
- -moz-border-radius: 0 0 0 5px;
- -webkit-border-radius: 0 0 0 5px;
- border-left: #FFF solid 1px;
- text-shadow: 1px 1px 1px rgba(255,255,255,1);
- background: #FDFDfD;
- background: -moz-linear-gradient(center top, #FDFDFD 0%,#D7DDE3 100%);
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FDFDFD),color-stop(1, #D7DDE3));
- box-shadow: 1px 0px 1px 1px rgba(255,255,255,1) inset;
- -webkit-box-shadow: 1px 0px 1px 0px rgba(255,255,255,1) inset;
- -moz-box-shadow: 1px 1px 1px 0px rgba(255,255,255,1) inset;
-}
-.pagenumberarea li:nth-child(2) {
- border-radius: 0 5px 0 0;
- -moz-border-radius: 0 5px 0 0;
- -webkit-border-radius: 0 5px 0 0;
-}
-.pagenumberarea li:nth-child(2) a {
- border-radius: 0 5px 0 0;
- -moz-border-radius: 0 5px 0 0;
- -webkit-border-radius: 0 5px 0 0;
- border-left: #FFF solid 1px;
- text-shadow: 1px 1px 1px rgba(255,255,255,1);
- background: #FDFDfD;
- background: -moz-linear-gradient(center top, #FDFDFD 0%,#D7DDE3 100%);
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FDFDFD),color-stop(1, #D7DDE3));
- box-shadow: 1px 0px 1px 1px rgba(255,255,255,1) inset;
- -webkit-box-shadow: 1px 0px 1px 0px rgba(255,255,255,1) inset;
- -moz-box-shadow: 1px 1px 1px 0px rgba(255,255,255,1) inset;
-}
-</style>
-
-<section class="pagenumberarea clearfix">
- <ul>
- <!--{if $orderby != 'price'}-->
- <li><a href="javascript:fnChangeOrderby('price');" rel="external">価格順</a></li>
- <!--{else}-->
- <li class="on_number">価格順</li>
- <!--{/if}-->
- <!--{if $orderby != "date"}-->
- <li><a href="javascript:fnChangeOrderby('date');" rel="external">新着順</a></li>
- <!--{else}-->
- <li class="on_number">新着順</li>
- <!--{/if}-->
- <!--{if $orderby != "update"}-->
- <li><a href="javascript:fnChangeOrderby('update');" rel="external">更新順</a></li>
- <!--{else}-->
- <li class="on_number">新着順</li>
- <!--{/if}-->
- </ul>
-</section>
View
@@ -43,9 +43,9 @@ class plugin_update
*/
public function update($arrPlugin)
{
- // 管理用のページを配置。
- $src_dir = PLUGIN_UPLOAD_REALDIR . "{$arrPlugin["plugin_code"]}/html/admin/";
- $dest_dir = HTML_REALDIR . ADMIN_DIR;
+ // htmlディレクトリにファイルを配置。
+ $src_dir = PLUGIN_UPLOAD_REALDIR . "{$arrPlugin["plugin_code"]}/html/";
+ $dest_dir = HTML_REALDIR;
SC_Utils::copyDirectory($src_dir, $dest_dir);
// テンプレートを更新。

0 comments on commit 3db6080

Please sign in to comment.