Changeset 18230 for branches/comu-ver2/patches
- Timestamp:
- 2009/07/23 20:52:19 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/patches/GoogleAnalytics_plugin.patch
r18226 r18230 3 3 --- html/user_data/plugins/plugin_menu.tpl (リビジョン 0) 4 4 +++ html/user_data/plugins/plugin_menu.tpl (リビジョン 0) 5 @@ -0,0 +1,3 3@@5 @@ -0,0 +1,35 @@ 6 6 +<ul id="navi-plugin-menu" class="level1"> 7 7 +</ul> 8 8 +<script type="text/javascript"> 9 9 +//<![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}-->'; 10 12 +$(function(){ 11 + 12 + url: '<!--{$smarty.const.PLUGIN_URL}-->plugins.xml',13 + $.ajax({ 14 + url: pluginURL + 'plugins.xml', 13 15 + type: 'GET', 14 16 + dataType: 'xml', … … 26 28 + .appendTo('ul#navi-plugin-menu') 27 29 + .click(function() { 28 + win03( '<!--{$smarty.const.PLUGIN_URL}-->'+ item_path30 + win03(pluginURL + item_path 29 31 + + '/index.php', 'plugins', '800','600'); 30 32 + return false; … … 54 56 +++ html/user_data/plugins/google_analytics/sql/delete.sql (リビジョン 0) 55 57 @@ -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'); 59 60 Index: html/user_data/plugins/google_analytics/sql/insert.sql 60 61 =================================================================== 61 62 --- html/user_data/plugins/google_analytics/sql/insert.sql (リビジョン 0) 62 63 +++ html/user_data/plugins/google_analytics/sql/insert.sql (リビジョン 0) 63 @@ -0,0 +1 ,1@@64 @@ -0,0 +1 @@ 64 65 +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); 65 66 \ No newline at end of file … … 235 236 --- html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php (リビジョン 0) 236 237 +++ html/user_data/plugins/google_analytics/classes/pages/LC_Page_Admin_GoogleAnalytics.php (リビジョン 0) 237 @@ -0,0 +1,1 39@@238 @@ -0,0 +1,141 @@ 238 239 +<?php 239 240 +/* … … 302 303 + * 登録に失敗し, GET パラメータ "mode" の値が failure の場合は 303 304 + * 「登録に失敗しました」というメッセージをポップアップで表示する. 305 + * 306 + * TODO Transaction Token を使用する 304 307 + * 305 308 + * @return void … … 436 439 Index: html/install/sql/insert_data.sql 437 440 =================================================================== 438 --- html/install/sql/insert_data.sql (リビジョン 182 18)441 --- html/install/sql/insert_data.sql (リビジョン 18229) 439 442 +++ html/install/sql/insert_data.sql (作業コピー) 440 443 @@ -1114,5 +1114,8 @@ … … 449 452 Index: data/Smarty/templates/default/admin/main_frame.tpl 450 453 =================================================================== 451 --- data/Smarty/templates/default/admin/main_frame.tpl (リビジョン 182 18)454 --- data/Smarty/templates/default/admin/main_frame.tpl (リビジョン 18229) 452 455 +++ 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 @@ 455 457 <a><span>OWNERS STORE</span></a> 456 458 <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`ownersstore/subnavi.tpl"}--> 457 +</li>459 </li> 458 460 + <li id="navi-plugin" class="<!--{if $tpl_mainno eq "plugin"}-->on<!--{/if}-->"> 459 461 + <a><span>プラグイン設定</span></a> 460 462 + <!--{include file="`$smarty.const.PLUGIN_PATH`plugin_menu.tpl"}--> 461 463 + </li> 462 464 </ul> 463 465 <div style="clear: both;"></div> 466 <!--{* ▲NAVI *}--> 464 467 Index: data/require_plugin.php 465 468 =================================================================== 466 --- data/require_plugin.php (リビジョン 182 18)469 --- data/require_plugin.php (リビジョン 18229) 467 470 +++ data/require_plugin.php (作業コピー) 468 471 @@ -1,5 +1,39 @@ … … 511 514 Index: data/mtb_constants_init.php 512 515 =================================================================== 513 --- data/mtb_constants_init.php (リビジョン 182 18)516 --- data/mtb_constants_init.php (リビジョン 18229) 514 517 +++ data/mtb_constants_init.php (作業コピー) 515 518 @@ -670,4 +670,10 @@ … … 524 527 +define("PLUGIN_URL", USER_URL . PLUGIN_DIR); 525 528 ?> 529 Index: 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 ?> 526 551 Index: data/class/pages/LC_Page.php 527 552 =================================================================== 528 --- data/class/pages/LC_Page.php (リビジョン 182 18)553 --- data/class/pages/LC_Page.php (リビジョン 18229) 529 554 +++ data/class/pages/LC_Page.php (作業コピー) 530 555 @@ -82,6 +82,9 @@ … … 540 565 Index: data/class/helper/SC_Helper_PageLayout.php 541 566 =================================================================== 542 --- data/class/helper/SC_Helper_PageLayout.php (リビジョン 182 18)567 --- data/class/helper/SC_Helper_PageLayout.php (リビジョン 18229) 543 568 +++ data/class/helper/SC_Helper_PageLayout.php (作業コピー) 544 569 @@ -61,9 +61,11 @@
Note: See TracChangeset
for help on using the changeset viewer.