Ignore:
Timestamp:
2009/07/23 20:52:19 (15 years ago)
Author:
nanasess
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/patches/GoogleAnalytics_plugin.patch

    r18226 r18230  
    33--- html/user_data/plugins/plugin_menu.tpl  (リビジョン 0) 
    44+++ html/user_data/plugins/plugin_menu.tpl  (リビジョン 0) 
    5 @@ -0,0 +1,33 @@ 
     5@@ -0,0 +1,35 @@ 
    66+<ul id="navi-plugin-menu" class="level1"> 
    77+</ul> 
    88+<script type="text/javascript"> 
    99+//<![CDATA[ 
     10+var host = (("https:" == document.location.protocol) ? "<!--{$smarty.const.SSL_URL}-->" : "<!--{$smarty.const.SITE_URL}-->"); 
     11+var pluginURL = host + '<!--{$smarty.const.USER_DIR}--><!--{$smarty.const.PLUGIN_DIR}-->'; 
    1012+$(function(){ 
    11 +   $.ajax({ 
    12 +    url: '<!--{$smarty.const.PLUGIN_URL}-->plugins.xml', 
     13+        $.ajax({ 
     14+    url: pluginURL + 'plugins.xml', 
    1315+    type: 'GET', 
    1416+    dataType: 'xml', 
     
    2628+               .appendTo('ul#navi-plugin-menu') 
    2729+               .click(function() { 
    28 +                   win03('<!--{$smarty.const.PLUGIN_URL}-->' + item_path  
     30+                   win03(pluginURL + item_path  
    2931+                          + '/index.php', 'plugins', '800','600'); 
    3032+                   return false; 
     
    5456+++ html/user_data/plugins/google_analytics/sql/delete.sql  (リビジョン 0) 
    5557@@ -0,0 +1,2 @@ 
    56 +DELETE FROM dtb_bloc WHERE filename = 'google_analytics'; 
    57 +DELETE FROM dtb_blocposition WHERE filename = 'google_analytics'; 
    58 \ No newline at end of file 
     58+DELETE FROM dtb_bloc WHERE bloc_name = 'Google Analytics'; 
     59+DELETE FROM dtb_blocposition WHERE bloc_id = (SELECT bloc_id FROM dtb_bloc WHERE bloc_name = 'Google Analytics'); 
    5960Index: html/user_data/plugins/google_analytics/sql/insert.sql 
    6061=================================================================== 
    6162--- html/user_data/plugins/google_analytics/sql/insert.sql  (リビジョン 0) 
    6263+++ html/user_data/plugins/google_analytics/sql/insert.sql  (リビジョン 0) 
    63 @@ -0,0 +1,1 @@ 
     64@@ -0,0 +1 @@ 
    6465+INSERT INTO dtb_bloc (bloc_name, tpl_path, filename, php_path, del_flg) VALUES ('Google Analytics', 'user_data/plugins/google_analytics/tpl/ga.tpl', 'google_analytics', 'user_data/plugins/google_analytics/ga.php', 1); 
    6566\ No newline at end of file 
     
    235236--- html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php (リビジョン 0) 
    236237+++ html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php (リビジョン 0) 
    237 @@ -0,0 +1,139 @@ 
     238@@ -0,0 +1,141 @@ 
    238239+<?php 
    239240+/* 
     
    302303+     * 登録に失敗し, GET パラメータ "mode" の値が failure の場合は 
    303304+     * 「登録に失敗しました」というメッセージをポップアップで表示する. 
     305+     * 
     306+     * TODO Transaction Token を使用する 
    304307+     * 
    305308+     * @return void 
     
    436439Index: html/install/sql/insert_data.sql 
    437440=================================================================== 
    438 --- html/install/sql/insert_data.sql    (リビジョン 18218) 
     441--- html/install/sql/insert_data.sql    (リビジョン 18229) 
    439442+++ html/install/sql/insert_data.sql    (作業コピー) 
    440443@@ -1114,5 +1114,8 @@ 
     
    449452Index: data/Smarty/templates/default/admin/main_frame.tpl 
    450453=================================================================== 
    451 --- data/Smarty/templates/default/admin/main_frame.tpl  (リビジョン 18218) 
     454--- data/Smarty/templates/default/admin/main_frame.tpl  (リビジョン 18229) 
    452455+++ data/Smarty/templates/default/admin/main_frame.tpl  (作業コピー) 
    453 @@ -112,6 +112,10 @@ 
    454      <li id="navi-ownersstore" class="<!--{if $tpl_mainno eq "ownersstore"}-->on<!--{/if}-->"> 
     456@@ -113,6 +113,10 @@ 
    455457         <a><span>OWNERS STORE</span></a> 
    456458         <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`ownersstore/subnavi.tpl"}--> 
    457 +    </li> 
     459     </li> 
    458460+    <li id="navi-plugin" class="<!--{if $tpl_mainno eq "plugin"}-->on<!--{/if}-->"> 
    459461+      <a><span>プラグイン設定</span></a> 
    460462+      <!--{include file="`$smarty.const.PLUGIN_PATH`plugin_menu.tpl"}--> 
    461      </li> 
     463+    </li> 
    462464 </ul> 
    463465 <div style="clear: both;"></div> 
     466 <!--{* ▲NAVI *}--> 
    464467Index: data/require_plugin.php 
    465468=================================================================== 
    466 --- data/require_plugin.php (リビジョン 18218) 
     469--- data/require_plugin.php (リビジョン 18229) 
    467470+++ data/require_plugin.php (作業コピー) 
    468471@@ -1,5 +1,39 @@ 
     
    511514Index: data/mtb_constants_init.php 
    512515=================================================================== 
    513 --- data/mtb_constants_init.php (リビジョン 18218) 
     516--- data/mtb_constants_init.php (リビジョン 18229) 
    514517+++ data/mtb_constants_init.php (作業コピー) 
    515518@@ -670,4 +670,10 @@ 
     
    524527+define("PLUGIN_URL", USER_URL . PLUGIN_DIR); 
    525528 ?> 
     529Index: data/require_base.php 
     530=================================================================== 
     531--- data/require_base.php   (リビジョン 18229) 
     532+++ data/require_base.php   (作業コピー) 
     533@@ -78,7 +78,6 @@ 
     534 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Session_Ex.php"); 
     535 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mail_Ex.php"); 
     536 require_once(CLASS_EX_PATH . "helper_extends/SC_Helper_Mobile_Ex.php"); 
     537-include_once(DATA_PATH . "require_plugin.php"); 
     538  
     539 // セッションハンドラ開始 
     540 $objSession = new SC_Helper_Session_Ex(); 
     541@@ -91,6 +90,9 @@ 
     542 $sessionFactory = SC_SessionFactory::getInstance(); 
     543 $sessionFactory->initSession(); 
     544  
     545+// プラグインを読み込む 
     546+include_once(DATA_PATH . "require_plugin.php"); 
     547+ 
     548 // 絵文字変換 (除去) フィルターを組み込む。 
     549 ob_start(array('SC_MobileEmoji', 'handler')); 
     550 ?> 
    526551Index: data/class/pages/LC_Page.php 
    527552=================================================================== 
    528 --- data/class/pages/LC_Page.php    (リビジョン 18218) 
     553--- data/class/pages/LC_Page.php    (リビジョン 18229) 
    529554+++ data/class/pages/LC_Page.php    (作業コピー) 
    530555@@ -82,6 +82,9 @@ 
     
    540565Index: data/class/helper/SC_Helper_PageLayout.php 
    541566=================================================================== 
    542 --- data/class/helper/SC_Helper_PageLayout.php  (リビジョン 18218) 
     567--- data/class/helper/SC_Helper_PageLayout.php  (リビジョン 18229) 
    543568+++ data/class/helper/SC_Helper_PageLayout.php  (作業コピー) 
    544569@@ -61,9 +61,11 @@ 
Note: See TracChangeset for help on using the changeset viewer.