OSDN Git Service

「ブログ更新」ウィジェット更新。
authornaoki hirata <naoki@magic3.org>
Sun, 7 Sep 2014 23:13:13 +0000 (08:13 +0900)
committernaoki hirata <naoki@magic3.org>
Sun, 7 Sep 2014 23:13:13 +0000 (08:13 +0900)
widgets/blog_update_box/include/container/blog_update_boxWidgetContainer.php
widgets/blog_update_box/include/container/rss_blog_update_boxWidgetContainer.php
widgets/blog_update_box/include/template/admin.tmpl.html
widgets/blog_update_box/include/template/index.tmpl.html
widgets/blog_update_box/include/template/rss_index.tmpl.html

index 9dafab5..60af6cc 100644 (file)
@@ -8,9 +8,9 @@
  *
  * @package    Magic3 Framework
  * @author     平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
- * @copyright  Copyright 2006-2012 Magic3 Project.
+ * @copyright  Copyright 2006-2014 Magic3 Project.
  * @license    http://www.gnu.org/copyleft/gpl.html  GPL License
- * @version    SVN: $Id: blog_update_boxWidgetContainer.php 5267 2012-10-04 11:33:36Z fishbone $
+ * @version    SVN: $Id$
  * @link       http://www.magic3.org
  */
 require_once($gEnvManager->getContainerPath()          . '/baseWidgetContainer.php');
@@ -84,6 +84,7 @@ class blog_update_boxWidgetContainer extends BaseWidgetContainer
                        
                if (!$this->isEntry){   // 記事の投稿がないときはメッセージを出力
                        $this->tmpl->addVar("_widget", "message", '投稿記事はありません');
+                       $this->tmpl->setAttribute('itemlist', 'visibility', 'hidden');
                }
                
                // RSSの設定
index c5fb6ea..55f014d 100644 (file)
@@ -87,9 +87,7 @@ class rss_blog_update_boxWidgetContainer extends BaseRssContainer
                // 一覧を作成
                $this->defaultUrl = $this->gEnv->getDefaultUrl();
                $this->db->getEntryItems($itemCount, $langId, array($this, 'itemLoop'));
-                               
-               // 画面にデータを埋め込む
-               if ($this->isExistsList) $this->tmpl->setAttribute('itemlist', 'visibility', 'visible');
+               if (!$this->isExistsList) $this->tmpl->setAttribute('itemlist', 'visibility', 'hidden');// 一覧非表示
                
                // RSSチャンネル部出力データ作成
                $linkUrl = $this->getUrl($this->gPage->createRssCmdUrl($this->gEnv->getCurrentWidgetId()));
index df8e164..8bac9e1 100644 (file)
@@ -1,3 +1,15 @@
+/**\r
+ * 表示データ作成用テンプレート(patTemplate)\r
+ *\r
+ * LICENSE: This source file is licensed under the terms of the GNU General Public License.\r
+ *\r
+ * @package    Magic3 Framework\r
+ * @author     平田直毅(Naoki Hirata) <naoki@aplo.co.jp>\r
+ * @copyright  Copyright 2006-2014 Magic3 Project.\r
+ * @license    http://www.gnu.org/copyleft/gpl.html  GPL License\r
+ * @version    SVN: $Id$\r
+ * @link       http://www.magic3.org\r
+ */\r
 <patTemplate:tmpl name="_widget">\r
 <script type="text/javascript">\r
 //<![CDATA[\r
index 590133d..7aa51ab 100644 (file)
@@ -1,3 +1,15 @@
+/**
+ * 表示データ作成用テンプレート(patTemplate)
+ *
+ * LICENSE: This source file is licensed under the terms of the GNU General Public License.
+ *
+ * @package    Magic3 Framework
+ * @author     平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
+ * @copyright  Copyright 2006-2014 Magic3 Project.
+ * @license    http://www.gnu.org/copyleft/gpl.html  GPL License
+ * @version    SVN: $Id$
+ * @link       http://www.magic3.org
+ */
 <patTemplate:tmpl name="_widget">
 {MESSAGE}
 <ul>
index 2bb5ec4..97afc35 100644 (file)
@@ -1,3 +1,15 @@
+/**
+ * RSS作成用テンプレート(patTemplate)
+ *
+ * LICENSE: This source file is licensed under the terms of the GNU General Public License.
+ *
+ * @package    Magic3 Framework
+ * @author     平田直毅(Naoki Hirata) <naoki@aplo.co.jp>
+ * @copyright  Copyright 2006-2014 Magic3 Project.
+ * @license    http://www.gnu.org/copyleft/gpl.html  GPL License
+ * @version    SVN: $Id$
+ * @link       http://www.magic3.org
+ */
 <patTemplate:tmpl name="_widget">
 <patTemplate:tmpl name="itemlist">
 <item rdf:about="{LINK_URL}">