后台修改TDK powerby
---------------------------每次一添加----------------------------------------
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function)
VALUES
(NULL, 'footer powerby', 'FOOTER_TEXT_BODY_LINK', '', 'set the footer powerby text', 1,210, NOW(), NOW(), NULL, NULL)
includes\languages\english.php 这样定义就行把
define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>. Powered by '.FOOTER_TEXT_BODY_LINK);
define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>. Powered by '. ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' .FOOTER_TEXT_BODY_LINK.'</a>';
--------------------------------------------------------------------I
NSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function)
VALUES
(NULL, 'Homepage title', 'HOME_PAGE_TITLE', '你的网站标题title', 'set the home page title', 1,210, NOW(), NOW(), NULL, NULL),
(NULL,
'Homepage keywords', 'HOME_PAGE_META_KEYWORDS', '你的关键词 keywords', 'set
the home page keywords', 1,211, NOW(), NOW(), NULL, NULL),
(NULL,
'Homepage description', 'HOME_PAGE_META_DESCRIPTION', 'l你的网站描述
description', 'set the home page description', 1,212, NOW(), NOW(),
NULL, NULL);
接着对应修改includes\languages\english\meta_tags.php的内容:
// Home Page Only:
define('HOME_PAGE_META_DESCRIPTION', HOME_PAGE_META_DESCRIPTION);
define('HOME_PAGE_META_KEYWORDS', HOME_PAGE_META_KEYWORDS);
define('HOME_PAGE_TITLE', HOME_PAGE_TITLE);
// NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
define('HOME_PAGE_TITLE', HOME_PAGE_TITLE); // usually best left blank
-----------------------------------------------------------------不止是主页的TDK------------------------------------------------------------------
INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`,
`configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`,
`last_modified`, `date_added`, `use_function`, `set_function`) VALUES
(NULL , 'Site Title', 'SITE_TAGLINE', '', 'Site Tagline', '1', '1125', NULL , '0001-01-01
00:00:00', NULL , NULL );
(NULL , 'Site Title', 'TITLE', '', 'Site Title', '1', '1126', NULL , '0001-01-01 00:00:00', NULL
, NULL ),
(NULL , 'Site Title', 'SITE_TAGLINE', '', 'Site Tagline', '1', '1127', NULL , '0001-01-01
00:00:00', NULL , NULL ),
(NULL , 'Meta tag keywords', 'META_TAG_KEYWORDS', '', 'Meta tag keywords', '1', '1128', NULL ,
'0001-01-01 00:00:00', NULL , NULL ),
(NULL , 'Meta tag description', 'META_TAG_DESCRIPTION', '', 'Meta tag description', '1', '1129',
NULL , '0001-01-01 00:00:00', NULL , NULL ),
(NULL , 'GUEST_START_NUM', 'GUEST_START_NUM', '', 'Who\'s online guest start num', '1', '1130',
NULL , '0001-01-01 00:00:00', NULL , NULL ),
(NULL , 'MEMBER_START_NUM', 'MEMBER_START_NUM', '', 'Who\'s online member start num', '1',
'1125', NULL , '0001-01-01 00:00:00', NULL , NULL ),
(NULL , 'FOOTER NEWS TITLE', 'FOOTER_NEWS_TITLE', '', 'Title about news on footer', '1', '1131',
NULL , '0001-01-01 00:00:00', NULL , NULL ),
(NULL , 'Footer Text Content', 'FOOTER_TEXT_BODY', '', 'Footer Text Content', '1', '1132', NULL ,
'0001-01-01 00:00:00', NULL , NULL );