f9ae31ff by TaishiTokudome

Merge branch 'deployment/production' into 'master'

アーカイブモジュールをインフォメーション専用アーカイブモジュールに変更

See merge request !24
2 parents 547db009 ed3f0b11
1 ; Joomla! Project
2 ; Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.
3 ; License GNU General Public License version 2 or later; see LICENSE.txt
4 ; Note : All ini files need to be saved as UTF-8
5
6 MOD_ARTICLES_ARCHIVE_CUSTOM="Articles - Archived - custom"
7 MOD_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_LABEL="# of Months"
8 MOD_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_DESC="The number of months to display (the default is 10)."
9 MOD_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION="Display a list of calendar months, including published articles. This list is automatically generated when you create a published article."
10 MOD_ARTICLES_ARCHIVE_CUSTOM_DATE="%1$s, %2$s"
...\ No newline at end of file ...\ No newline at end of file
1 ; Joomla! Project
2 ; Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.
3 ; License GNU General Public License version 2 or later; see LICENSE.txt
4 ; Note : All ini files need to be saved as UTF-8
5
6 MOD_ARTICLES_ARCHIVE_CUSTOM="Articles - Archived - custom"
7 MOD_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION="Display a list of calendar months, including published articles. This list is automatically generated when you create a published article."
8 MOD_ARTICLES_ARCHIVE_CUSTOM_LAYOUT_DEFAULT="Default"
...\ No newline at end of file ...\ No newline at end of file
1 ; Joomla! Project
2 ; Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.
3 ; License GNU General Public License version 2 or later; see LICENSE.txt
4 ; Note : All ini files need to be saved as UTF-8
5
6 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM="InformationArticles - Archived - custom"
7 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_LABEL="# of Months"
8 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_DESC="The number of months to display (the default is 10)."
9 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION="Display a list of calendar months, including published articles. This list is automatically generated when you create a published article."
10 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_DATE="%1$s, %2$s"
...\ No newline at end of file ...\ No newline at end of file
1 ; Joomla! Project
2 ; Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.
3 ; License GNU General Public License version 2 or later; see LICENSE.txt
4 ; Note : All ini files need to be saved as UTF-8
5
6 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM="InformationArticles - Archived - custom"
7 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION="Display a list of calendar months, including published articles. This list is automatically generated when you create a published article."
8 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_LAYOUT_DEFAULT="Default"
...\ No newline at end of file ...\ No newline at end of file
1 ; Joomla! Project
2 ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.
3 ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
4 ; Note : All ini files need to be saved as UTF-8
5
6 MOD_ARTICLES_ARCHIVE_CUSTOM="カスタムアーカイブ(モジュール)"
7 MOD_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_LABEL="表示月数"
8 MOD_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_DESC="表示する月数(標準は10)です。"
9 MOD_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION="公開状態になっている記事を含むカレンダー月の一覧を表示します。公開状態になっている記事を作成すると、この一覧は自動的に生成されます。"
10 MOD_ARTICLES_ARCHIVE_CUSTOM_DATE="%1$s, %2$s"
...\ No newline at end of file ...\ No newline at end of file
1 ; Joomla! Project
2 ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.
3 ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
4 ; Note : All ini files need to be saved as UTF-8
5
6 MOD_ARTICLES_ARCHIVE_CUSTOM="カスタムアーカイブ(モジュール)"
7 MOD_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION="公開状態になっている記事を含むカレンダー月の一覧を表示します。公開状態になっている記事を作成すると、この一覧は自動的に生成されます。"
8 MOD_ARTICLES_ARCHIVE_CUSTOM_LAYOUT_DEFAULT="標準"
...\ No newline at end of file ...\ No newline at end of file
1 ; Joomla! Project
2 ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.
3 ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
4 ; Note : All ini files need to be saved as UTF-8
5
6 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM="カスタムインフォメーションアーカイブ(モジュール)"
7 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_LABEL="表示月数"
8 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_DESC="表示する月数(標準は10)です。"
9 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION="公開状態になっている記事を含むカレンダー月の一覧を表示します。公開状態になっている記事を作成すると、この一覧は自動的に生成されます。"
10 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_DATE="%1$s, %2$s"
...\ No newline at end of file ...\ No newline at end of file
1 ; Joomla! Project
2 ; Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.
3 ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php
4 ; Note : All ini files need to be saved as UTF-8
5
6 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM="カスタムインフォメーションアーカイブ(モジュール)"
7 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION="公開状態になっている記事を含むカレンダー月の一覧を表示します。公開状態になっている記事を作成すると、この一覧は自動的に生成されます。"
8 MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_LAYOUT_DEFAULT="標準"
...\ No newline at end of file ...\ No newline at end of file
1 <?php 1 <?php
2 /** 2 /**
3 * @package Joomla.Site 3 * @package Joomla.Site
4 * @subpackage mod_articles_archive 4 * @subpackage mod_information_articles_archive_custom
5 * 5 *
6 * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. 6 * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 * @license GNU General Public License version 2 or later; see LICENSE.txt
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
10 defined('_JEXEC') or die; 10 defined('_JEXEC') or die;
11 11
12 /** 12 /**
13 * Helper for mod_articles_archive 13 * Helper for mod_information_articles_archive_custom
14 * 14 *
15 * @since 1.5 15 * @since 1.5
16 */ 16 */
...@@ -78,8 +78,8 @@ class ModArchiveHelper ...@@ -78,8 +78,8 @@ class ModArchiveHelper
78 78
79 $lists[$i] = new stdClass; 79 $lists[$i] = new stdClass;
80 80
81 # $lists[$i]->link = JRoute::_('index.php?option=com_content_custom&view=archive&year=' . $createdYear . '&month=' . $createdMonth . $itemid);
82 $link = JRoute::_('index.php?option=com_content_custom&view=archive&year=' . $createdYear . '&month=' . $createdMonth . $itemid); 81 $link = JRoute::_('index.php?option=com_content_custom&view=archive&year=' . $createdYear . '&month=' . $createdMonth . $itemid);
82 // アーカイブコンポーネント以外でモジュールを表示した場合に以下の様にリンクを書き換える。
83 $link = str_replace("/component/content_custom/", "/information/info-archive.html", $link); 83 $link = str_replace("/component/content_custom/", "/information/info-archive.html", $link);
84 84
85 $lists[$i]->link = $link; 85 $lists[$i]->link = $link;
......
...@@ -16,4 +16,4 @@ $params->def('count', 10); ...@@ -16,4 +16,4 @@ $params->def('count', 10);
16 $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8'); 16 $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8');
17 $list = ModArchiveHelper::getList($params); 17 $list = ModArchiveHelper::getList($params);
18 18
19 require JModuleHelper::getLayoutPath('mod_articles_archive_custom', $params->get('layout', 'default'));
...\ No newline at end of file ...\ No newline at end of file
19 require JModuleHelper::getLayoutPath('mod_information_articles_archive_custom', $params->get('layout', 'default'));
...\ No newline at end of file ...\ No newline at end of file
......
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <extension type="module" version="3.1" client="site" method="upgrade"> 2 <extension type="module" version="3.1" client="site" method="upgrade">
3 <name>MOD_ARTICLES_ARCHIVE_CUSTOM</name> 3 <name>MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM</name>
4 <author>T.Tokudome</author> 4 <author>T.Tokudome</author>
5 <creationDate>June 2020</creationDate> 5 <creationDate>June 2020</creationDate>
6 <copyright></copyright> 6 <copyright></copyright>
...@@ -8,17 +8,17 @@ ...@@ -8,17 +8,17 @@
8 <authorEmail>tokudome@lilli.co.jp</authorEmail> 8 <authorEmail>tokudome@lilli.co.jp</authorEmail>
9 <authorUrl></authorUrl> 9 <authorUrl></authorUrl>
10 <version>0.0.1</version> 10 <version>0.0.1</version>
11 <description>MOD_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION</description> 11 <description>MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_XML_DESCRIPTION</description>
12 <files> 12 <files>
13 <filename module="mod_articles_archive_custom">mod_articles_archive_custom.php</filename> 13 <filename module="mod_information_articles_archive_custom">mod_information_articles_archive_custom.php</filename>
14 <folder>tmpl</folder> 14 <folder>tmpl</folder>
15 <filename>helper.php</filename> 15 <filename>helper.php</filename>
16 </files> 16 </files>
17 <languages> 17 <languages>
18 <language tag="en-GB">en-GB.mod_articles_archive_custom.ini</language> 18 <language tag="en-GB">en-GB.mod_information_articles_archive_custom.ini</language>
19 <language tag="en-GB">en-GB.mod_articles_archive_custom.sys.ini</language> 19 <language tag="en-GB">en-GB.mod_information_articles_archive_custom.sys.ini</language>
20 <language tag="ja-JP">ja-JP.mod_articles_archive_custom.ini</language> 20 <language tag="ja-JP">ja-JP.mod_information_articles_archive_custom.ini</language>
21 <language tag="ja-JP">ja-JP.mod_articles_archive_custom.sys.ini</language> 21 <language tag="ja-JP">ja-JP.mod_information_articles_archive_custom.sys.ini</language>
22 </languages> 22 </languages>
23 <help key="JHELP_EXTENSIONS_MODULE_MANAGER_ARTICLES_ARCHIVE" /> 23 <help key="JHELP_EXTENSIONS_MODULE_MANAGER_ARTICLES_ARCHIVE" />
24 <config> 24 <config>
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
27 <field 27 <field
28 name="count" 28 name="count"
29 type="number" 29 type="number"
30 label="MOD_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_LABEL" 30 label="MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_LABEL"
31 description="MOD_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_DESC" 31 description="MOD_INFORMATION_ARTICLES_ARCHIVE_CUSTOM_FIELD_COUNT_DESC"
32 default="120" 32 default="120"
33 filter="integer" 33 filter="integer"
34 /> 34 />
......
1 <?php 1 <?php
2 /** 2 /**
3 * @package Joomla.Site 3 * @package Joomla.Site
4 * @subpackage mod_articles_archive 4 * @subpackage mod_information_articles_archive_custom
5 * 5 *
6 * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved. 6 * @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 * @license GNU General Public License version 2 or later; see LICENSE.txt
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!