XOOPS Cube Legacy base repository
Revision | c52d9866b9568fe565ef6995d571446c64e56e02 (tree) |
---|---|
Time | 2013-04-12 16:26:12 |
Author | kilica <kilica.hikawa@gmai...> |
Commiter | kilica |
Add category image function to lecat
@@ -36,6 +36,11 @@ Then, they can use this module's delegate functions of Lecat_DelegateFunctions c | ||
36 | 36 | |
37 | 37 | Update History |
38 | 38 | -------------- |
39 | +ver 2.03 | |
40 | +- Add category image working with legacy_image module. | |
41 | +- Add category list block. | |
42 | +- Fix Bug: module uninstaller using old method Lecat_Utils::getModuleHandler(). | |
43 | + | |
39 | 44 | ver 2.01 |
40 | 45 | - Check client data existence before delete the category. |
41 | 46 |
@@ -155,7 +155,14 @@ class Lecat_CatEditAction extends Lecat_AbstractEditAction | ||
155 | 155 | $render->setAttribute('object', $this->mObject); |
156 | 156 | $render->setAttribute('catArr', $catArr); |
157 | 157 | $render->setAttribute('dirname', $this->mAsset->mDirname); |
158 | - } | |
158 | + | |
159 | + //setup images | |
160 | + $this->mObject->setupImages($isPost=false); | |
161 | + $render->setAttribute('imageObjs', $this->mObject->mImage); | |
162 | + $render->setAttribute('imageNameList', Xcck_Utils::getImageNameList($this->mAsset->mDirname)); | |
163 | + } | |
164 | + | |
165 | + | |
159 | 166 | } |
160 | 167 | |
161 | 168 | ?> |
@@ -44,6 +44,7 @@ class Lecat_CatViewAction extends Lecat_AbstractViewAction | ||
44 | 44 | { |
45 | 45 | parent::prepare(); |
46 | 46 | $this->mObject->loadPcat(); |
47 | + $this->mObject->loadCatPath(); | |
47 | 48 | |
48 | 49 | //for Permissions |
49 | 50 | $this->mPermit->set('cat_id', $this->mObject->get('cat_id')); |
@@ -71,6 +72,18 @@ class Lecat_CatViewAction extends Lecat_AbstractViewAction | ||
71 | 72 | } |
72 | 73 | |
73 | 74 | /** |
75 | + * getPageTitle | |
76 | + * | |
77 | + * @param void | |
78 | + * | |
79 | + * @return string | |
80 | + **/ | |
81 | + public function getPagetitle() | |
82 | + { | |
83 | + return $this->mObject->getShow('title'); | |
84 | + } | |
85 | + | |
86 | + /** | |
74 | 87 | * executeViewSuccess |
75 | 88 | * |
76 | 89 | * @param XCube_RenderTarget &$render |
@@ -106,6 +119,9 @@ class Lecat_CatViewAction extends Lecat_AbstractViewAction | ||
106 | 119 | $list = $this->mObject->getClientData($client, $list); |
107 | 120 | } |
108 | 121 | $render->setAttribute('clients', $list); |
122 | + | |
123 | + $breadcrumbs = $this->_getBreadcrumb($this->mObject); | |
124 | + $render->setAttribute('xoops_breadcrumbs', $breadcrumbs); | |
109 | 125 | } |
110 | 126 | } |
111 | 127 |
@@ -678,7 +678,7 @@ class Lecat_InstallUtils | ||
678 | 678 | **/ |
679 | 679 | public static function updateBlockByInfo(/*** Legacy_BlockInformation ***/ &$info,/*** XoopsModule ***/ &$module,/*** Legacy_ModuleInstallLog ***/ &$log) |
680 | 680 | { |
681 | - $blockHandler =& Lecat_Utils::getModuleHandler('newblocks','legacy'); | |
681 | + $blockHandler =& Legacy_Utils::getModuleHandler('newblocks','legacy'); | |
682 | 682 | $cri =new CriteriaCompo(); |
683 | 683 | $cri->add(new Criteria('dirname',$module->get('dirname'))); |
684 | 684 | $cri->add(new Criteria('func_num',$info->mFuncNum)); |
@@ -105,6 +105,13 @@ abstract class Lecat_AbstractAction | ||
105 | 105 | $headerScript->addStylesheet($this->_getStylesheet()); |
106 | 106 | } |
107 | 107 | |
108 | + protected function _getBreadcrumb(/*** XoopsSimpleObject ***/ $object=null) | |
109 | + { | |
110 | + $breadcrumbs = array(); | |
111 | + XCube_DelegateUtils::call('Module.'.$this->mAsset->mDirname.'.Global.Event.GetBreadcrumbs', new XCube_Ref($breadcrumbs), $this->mAsset->mDirname, $object); | |
112 | + return $breadcrumbs; | |
113 | + } | |
114 | + | |
108 | 115 | /** |
109 | 116 | * prepare |
110 | 117 | * |
@@ -7,6 +7,29 @@ | ||
7 | 7 | if (!defined('XOOPS_ROOT_PATH')) exit(); |
8 | 8 | |
9 | 9 | |
10 | +class Lecat_Delegate | |
11 | +{ | |
12 | + public static function getBreadcrumbs(/*** Array ***/ &$breadcrumbs, /*** string ***/ $dirname, /*** Lecat_CategoryObject ***/ $category=null) | |
13 | + { | |
14 | + //module name set | |
15 | + $modHandler = xoops_gethandler('module'); | |
16 | + $module = $modHandler->getByDirname($dirname); | |
17 | + $breadcrumbs[] = array('name'=>$module->getVar('name'), 'url'=>Legacy_Utils::renderUri($dirname)); | |
18 | + | |
19 | + //catetgory name set | |
20 | + if($category instanceof Lecat_CatObject){ | |
21 | + $category->loadCatPath(); | |
22 | + //parent page set | |
23 | + $idArr = array_reverse($category->mCatPath['cat_id']); | |
24 | + $titleArr = array_reverse($category->mCatPath['title']); | |
25 | + foreach(array_keys($idArr) as $key){ | |
26 | + $breadcrumbs[] = array('name'=>$titleArr[$key], 'url'=>Legacy_Utils::renderUri($dirname, null, $idArr[$key])); | |
27 | + } | |
28 | + $breadcrumbs[] = array('name'=>$category->getShow('title'), 'url'=>Legacy_Utils::renderUri($dirname, null, $category->getShow('cat_id'))); | |
29 | + } | |
30 | + } | |
31 | +} | |
32 | + | |
10 | 33 | class Lecat_CoolUriDelegate |
11 | 34 | { |
12 | 35 | /** |
@@ -41,6 +41,30 @@ class Lecat_Utils | ||
41 | 41 | return getenv($key); |
42 | 42 | } |
43 | 43 | |
44 | + /** | |
45 | + * getModuleConfig | |
46 | + * | |
47 | + * @param string $dirname | |
48 | + * @param string $key | |
49 | + * | |
50 | + * @return mixed | |
51 | + **/ | |
52 | + public static function getModuleConfig(/*** string ***/ $dirname, /*** string ***/ $key) | |
53 | + { | |
54 | + static $config = array(); | |
55 | + if(! isset($config[$dirname])){ | |
56 | + $chandler = xoops_gethandler('config'); | |
57 | + $config[$dirname] = $chandler->getConfigsByDirname($dirname); | |
58 | + } | |
59 | + return isset($config[$dirname][$key]) ? $config[$dirname][$key] : null; | |
60 | + } | |
61 | + | |
62 | + public static function getImageNameList(/*** string ***/ $dirname) | |
63 | + { | |
64 | + $list = array(); | |
65 | + return trim(self::getModuleConfig($dirname, 'images')) ? preg_split('/\x0d\x0a|\x0d|\x0a/', self::getModuleConfig($dirname, 'images'), null) : array(); | |
66 | + } | |
67 | + | |
44 | 68 | /** |
45 | 69 | * getActorList |
46 | 70 | * |
@@ -372,12 +372,18 @@ class Lecat_CatObject extends Legacy_AbstractCategoryObject | ||
372 | 372 | |
373 | 373 | return array(); |
374 | 374 | } |
375 | + | |
376 | + public function getImageNumber() | |
377 | + { | |
378 | + $list = Lecat_Utils::getImageNameList($this->getDirname()); | |
379 | + return count($list); | |
380 | + } | |
375 | 381 | } |
376 | 382 | |
377 | 383 | /** |
378 | 384 | * Lecat_CatHandler |
379 | 385 | **/ |
380 | -class Lecat_CatHandler extends XoopsObjectGenericHandler | |
386 | +class Lecat_CatHandler extends Legacy_AbstractClientObjectHandler | |
381 | 387 | { |
382 | 388 | /** |
383 | 389 | * @brief string |
@@ -394,6 +400,8 @@ class Lecat_CatHandler extends XoopsObjectGenericHandler | ||
394 | 400 | **/ |
395 | 401 | public $mClass = 'Lecat_CatObject'; |
396 | 402 | |
403 | + protected $_mClientConfig = array('image'=>'images'); | |
404 | + | |
397 | 405 | /** |
398 | 406 | * __construct |
399 | 407 | * |
@@ -484,6 +492,18 @@ class Lecat_CatHandler extends XoopsObjectGenericHandler | ||
484 | 492 | } |
485 | 493 | return $tree; |
486 | 494 | } |
495 | + | |
496 | + /** | |
497 | + * check if use Legacy_Image | |
498 | + * | |
499 | + * @param mixed[] $conf | |
500 | + * | |
501 | + * @return bool | |
502 | + */ | |
503 | + protected function _isImageClient(/*** mixed[] ***/ $conf) | |
504 | + { | |
505 | + return $conf[$this->_mClientConfig['image']] ? true : false; | |
506 | + } | |
487 | 507 | } |
488 | 508 | |
489 | 509 | ?> |
@@ -5,4 +5,5 @@ | ||
5 | 5 | * @version $Id$ |
6 | 6 | **/ |
7 | 7 | |
8 | -?> | |
8 | +define('_AD_LECAT_LANG_PARENT_ID', 'Show categories under this Id'); | |
9 | +?> | |
\ No newline at end of file |
@@ -52,15 +52,27 @@ define('_MI_LECAT_LANG_LECAT', 'Lecat'); | ||
52 | 52 | define('_MI_LECAT_DESC_LECAT', 'System Category module'); |
53 | 53 | define('_MI_LECAT_LANG_AUTHOR', 'HIKAWA Kilica <http://xoopsdev.com/>'); |
54 | 54 | define('_MI_LECAT_LANG_CREDITS', 'HIKAWA Kilica'); |
55 | + | |
56 | +/*** templates ***/ | |
55 | 57 | define('_MI_LECAT_TPL_CAT_LIST', 'Category List'); |
56 | 58 | define('_MI_LECAT_TPL_CAT_EDIT', 'Category Edit'); |
57 | 59 | define('_MI_LECAT_TPL_CAT_DELETE', 'Category Delete'); |
58 | 60 | define('_MI_LECAT_TPL_CAT_VIEW', 'Category View'); |
59 | 61 | define('_MI_LECAT_TPL_DEFAULT_SET', 'Default Permission'); |
60 | 62 | define('_MI_LECAT_TPL_ACTOR_EDIT', 'Actor'); |
63 | + | |
64 | +/*** Configs ***/ | |
61 | 65 | define('_MI_LECAT_LANG_CSS_FILE', 'CSS file url'); |
62 | 66 | define('_MI_LECAT_DESC_CSS_FILE', 'set CSS file url after {XOOPS_URL}'); |
63 | 67 | define('_MI_LECAT_LANG_MAXDEPTH', 'Max depth'); |
64 | 68 | define('_MI_LECAT_DESC_MAXDEPTH', 'Max depth in category tree.'); |
69 | +define('_MI_LECAT_LANG_IMAGES', 'Images for category'); | |
70 | +define('_MI_LECAT_DESC_IMAGES', 'Assign Image labels for categories one by one line.<br /> | |
71 | +example:<br /> | |
72 | +Category Image Banner<br /> | |
73 | +Category Icon<br />'); | |
65 | 74 | |
75 | +/*** blocks ***/ | |
76 | +define('_MI_LECAT_BLOCK_NAME_LIST', 'Category List'); | |
77 | +define('_MI_LECAT_BLOCK_DESC_LIST', 'Show category tree'); | |
66 | 78 | ?> |
@@ -5,4 +5,5 @@ | ||
5 | 5 | * @version $Id$ |
6 | 6 | **/ |
7 | 7 | |
8 | +define('_AD_LECAT_LANG_PARENT_ID', '指定したIDより下のカテゴリを表示します'); | |
8 | 9 | ?> |
@@ -52,15 +52,27 @@ define('_MI_LECAT_LANG_LECAT', 'Lecat'); | ||
52 | 52 | define('_MI_LECAT_DESC_LECAT', 'カテゴリモジュール'); |
53 | 53 | define('_MI_LECAT_LANG_AUTHOR', 'HIKAWA Kilica <http://xoopsdev.com/>'); |
54 | 54 | define('_MI_LECAT_LANG_CREDITS', 'HIKAWA Kilica'); |
55 | + | |
56 | +/*** templates ***/ | |
55 | 57 | define('_MI_LECAT_TPL_CAT_LIST', 'カテゴリ一覧'); |
56 | 58 | define('_MI_LECAT_TPL_CAT_EDIT', 'カテゴリ編集'); |
57 | 59 | define('_MI_LECAT_TPL_CAT_DELETE', 'カテゴリ削除'); |
58 | 60 | define('_MI_LECAT_TPL_CAT_VIEW', 'カテゴリ表示'); |
59 | 61 | define('_MI_LECAT_TPL_DEFAULT_SET', '初期アクセス権設定'); |
60 | 62 | define('_MI_LECAT_TPL_ACTOR_EDIT', '権限の編集'); |
63 | + | |
64 | +/*** configs ***/ | |
61 | 65 | define('_MI_LECAT_LANG_CSS_FILE', 'CSS ファイルのURL'); |
62 | 66 | define('_MI_LECAT_DESC_CSS_FILE', 'カテゴリモジュール用のCSSファイルの場所を設定します('.XOOPS_URL.'以降を入力)'); |
63 | 67 | define('_MI_LECAT_LANG_MAXDEPTH', '階層制限'); |
64 | 68 | define('_MI_LECAT_DESC_MAXDEPTH', 'カテゴリ階層の制限。0にすると無制限'); |
69 | +define('_MI_LECAT_LANG_IMAGES', 'カテゴリ画像'); | |
70 | +define('_MI_LECAT_DESC_IMAGES', 'カテゴリ用の画像を使う場合、改行区切りでラベルを指定します。<br /> | |
71 | +例)<br /> | |
72 | +カテゴリバナー画像<br /> | |
73 | +カテゴリアイコン<br />'); | |
65 | 74 | |
75 | +/*** blocks ***/ | |
76 | +define('_MI_LECAT_BLOCK_NAME_LIST', 'カテゴリ一覧'); | |
77 | +define('_MI_LECAT_BLOCK_DESC_LIST', 'カテゴリツリーを表示します'); | |
66 | 78 | ?> |
@@ -5,19 +5,5 @@ | ||
5 | 5 | * @version $Id$ |
6 | 6 | **/ |
7 | 7 | |
8 | - | |
9 | -define('_AD_PROFILE_LANG_DEFINITIONS_EDIT', "プロフィール定義の編集"); | |
10 | -define('_AD_PROFILE_LANG_DEFINITIONS_DELETE', "プロフィール定義の削除"); | |
11 | -define('_AD_PROFILE_LANG_DEFINITIONS_VIEW', "プロフィール定義の表示"); | |
12 | -define("_AD_PROFILE_TIPS_DATA_DOWNLOAD", "ユーザID順に並んだデータをCSV形式でダウンロードすることができます。"); | |
13 | -define("_AD_PROFILE_DATA_NUM", "%d 人のプロフィールが登録されています。"); | |
14 | -define("_AD_PROFILE_DATA_DOWNLOAD_DO", "CSVファイルをダウンロード"); | |
15 | -define('_AD_PROFILE_DESC_FIELD_SELECTBOX', '選択肢を | で区切って入力してください'); | |
16 | -define('_AD_PROFILE_DESC_FIELD_CHECKBOX', '「チェックありの場合の表示」「チェック無しの場合の表示」を | で区切って入力してください。空の場合は、「'._YES.'」と 「'._NO.'」が表示されます'); | |
17 | -define('_AD_PROFILE_DESC_FIELD_STRING', '初期値を入れてください。'); | |
18 | -define('_AD_PROFILE_DESC_FIELD_INT', '初期値を入れてください。'); | |
19 | -define('_AD_PROFILE_DESC_FIELD_FLOAT', 'Set the default value.'); | |
20 | -define('_AD_PROFILE_DESC_FIELD_TEXT', '"html" を選ぶと、Wysiwygエディタになります(Wysiwygエディタをインストールしてある場合). | |
21 | -"bbcode" を選ぶと、BBCode エディタになります。'); | |
22 | -define('_AD_PROFILE_DESC_FIELD_CATEGORY', 'カテゴリモジュールのディレクトリ名'); | |
8 | +define('_AD_LECAT_LANG_PARENT_ID', '指定したIDより下のカテゴリを表示します'); | |
23 | 9 | ?> |
@@ -52,15 +52,27 @@ define('_MI_LECAT_LANG_LECAT', 'Lecat'); | ||
52 | 52 | define('_MI_LECAT_DESC_LECAT', 'カテゴリモジュール'); |
53 | 53 | define('_MI_LECAT_LANG_AUTHOR', 'HIKAWA Kilica <http://xoopsdev.com/>'); |
54 | 54 | define('_MI_LECAT_LANG_CREDITS', 'HIKAWA Kilica'); |
55 | + | |
56 | +/*** templates ***/ | |
55 | 57 | define('_MI_LECAT_TPL_CAT_LIST', 'カテゴリ一覧'); |
56 | 58 | define('_MI_LECAT_TPL_CAT_EDIT', 'カテゴリ編集'); |
57 | 59 | define('_MI_LECAT_TPL_CAT_DELETE', 'カテゴリ削除'); |
58 | 60 | define('_MI_LECAT_TPL_CAT_VIEW', 'カテゴリ表示'); |
59 | 61 | define('_MI_LECAT_TPL_DEFAULT_SET', '初期アクセス権設定'); |
60 | 62 | define('_MI_LECAT_TPL_ACTOR_EDIT', '権限の編集'); |
63 | + | |
64 | +/*** Configs ***/ | |
61 | 65 | define('_MI_LECAT_LANG_CSS_FILE', 'CSS ファイルのURL'); |
62 | 66 | define('_MI_LECAT_DESC_CSS_FILE', 'カテゴリモジュール用のCSSファイルの場所を設定します('.XOOPS_URL.'以降を入力)'); |
63 | 67 | define('_MI_LECAT_LANG_MAXDEPTH', '階層制限'); |
64 | 68 | define('_MI_LECAT_DESC_MAXDEPTH', 'カテゴリ階層の制限。0にすると無制限'); |
69 | +define('_MI_LECAT_LANG_IMAGES', 'カテゴリ画像'); | |
70 | +define('_MI_LECAT_DESC_IMAGES', 'カテゴリ用の画像を使う場合、改行区切りでラベルを指定します。<br /> | |
71 | +例)<br /> | |
72 | +カテゴリバナー画像<br /> | |
73 | +カテゴリアイコン<br />'); | |
65 | 74 | |
75 | +/*** blocks ***/ | |
76 | +define('_MI_LECAT_BLOCK_NAME_LIST', 'カテゴリ一覧'); | |
77 | +define('_MI_LECAT_BLOCK_DESC_LIST', 'カテゴリツリーを表示します'); | |
66 | 78 | ?> |
@@ -56,7 +56,10 @@ class Lecat_AssetPreloadBase extends XCube_ActionFilter | ||
56 | 56 | $this->mRoot->mDelegateManager->add('Legacy_Utils.CreateModule','Lecat_AssetPreloadBase::getModule'); |
57 | 57 | $this->mRoot->mDelegateManager->add('Legacy_Utils.CreateBlockProcedure','Lecat_AssetPreloadBase::getBlock'); |
58 | 58 | $this->mRoot->mDelegateManager->add('Module.'.$this->mDirname.'.Global.Event.GetNormalUri','Lecat_CoolUriDelegate::getNormalUri', $file); |
59 | - $this->mRoot->mDelegateManager->add('Legacy_ImageClient.GetClientList','Lecat_ImageClientDelegate::getClientList', $file); | |
59 | + $this->mRoot->mDelegateManager->add('Module.'.$this->mDirname.'.Global.Event.GetBreadcrumbs','Lecat_Delegate::getBreadcrumbs', $file); | |
60 | + | |
61 | + | |
62 | + $this->mRoot->mDelegateManager->add('Legacy_ImageClient.GetClientList','Lecat_ImageClientDelegate::getClientList', $file); | |
60 | 63 | |
61 | 64 | //Legacy Category Delegate |
62 | 65 | $prefix = 'Legacy_Category.' . $this->mDirname; |
@@ -9,7 +9,7 @@ | ||
9 | 9 | </ul> |
10 | 10 | <{/if}> |
11 | 11 | <h1><{$smarty.const._MD_LECAT_LANG_CAT_EDIT}></h1> |
12 | -<form action="<{xoops_cooluri dirname=$dirname dataname=cat action=edit}>" method="post"> | |
12 | +<form action="<{xoops_cooluri dirname=$dirname dataname=cat action=edit}>" method="post" enctype="multipart/form-data"> | |
13 | 13 | <table class="outer" summary=""> |
14 | 14 | <caption> |
15 | 15 | <{if $actionForm->get('cat_id')}> |
@@ -53,7 +53,20 @@ | ||
53 | 53 | <{xoops_input type=text name=weight value=$actionForm->get('weight')}> |
54 | 54 | </td> |
55 | 55 | </tr> |
56 | - </tbody> | |
56 | + <{foreach item=imageKey from=$imageNameList key=n}> | |
57 | + <tr> | |
58 | + <th><{$imageNameList[$n]}></th> | |
59 | + <td> | |
60 | + <{if $imageObjs[$n] && $imageObjs[$n]->isNew()===false}> | |
61 | + <{xoops_input type="checkbox" name="legacy_image_delete[$n]" value="1"}> | |
62 | + <{$imageObjs[$n]->makeImageTag(0)}><br /> | |
63 | + <{/if}> | |
64 | + <{xoops_input type="file" name="legacy_image[$n]" size="30"}> | |
65 | + <{xoops_input type="hidden" name="legacy_image_id[$n]" value=$imageObjs[$n]->getShow('image_id')}> | |
66 | + </td> | |
67 | + </tr> | |
68 | + <{/foreach}> | |
69 | + </tbody> | |
57 | 70 | <tfoot> |
58 | 71 | <tr> |
59 | 72 | <td class="foot" colspan="2"> |
@@ -140,17 +140,26 @@ $modversion['config'] = array( | ||
140 | 140 | 'default' => '0', |
141 | 141 | 'options' => array() |
142 | 142 | ) , |
143 | -/* | |
144 | - array( | |
145 | - 'name' => 'xxxx', | |
146 | - 'title' => '_MI_LECAT_TITLE_XXXX', | |
147 | - 'description' => '_MI_LECAT_DESC_XXXX', | |
148 | - 'formtype' => 'xxxx', | |
149 | - 'valuetype' => 'xxx', | |
150 | - 'options' => array(xxx => xxx,xxx => xxx), | |
151 | - 'default' => 0 | |
152 | - ), | |
153 | -*/ | |
143 | + array( | |
144 | + 'name' => 'images', | |
145 | + 'title' => '_MI_LECAT_LANG_IMAGES', | |
146 | + 'description' => '_MI_LECAT_DESC_IMAGES', | |
147 | + 'formtype' => 'textarea', | |
148 | + 'valuetype' => 'text', | |
149 | + 'default' => '', | |
150 | + ), | |
151 | + | |
152 | + /* | |
153 | + array( | |
154 | + 'name' => 'xxxx', | |
155 | + 'title' => '_MI_LECAT_TITLE_XXXX', | |
156 | + 'description' => '_MI_LECAT_DESC_XXXX', | |
157 | + 'formtype' => 'xxxx', | |
158 | + 'valuetype' => 'xxx', | |
159 | + 'options' => array(xxx => xxx,xxx => xxx), | |
160 | + 'default' => 0 | |
161 | + ), | |
162 | + */ | |
154 | 163 | ##[cubson:config] |
155 | 164 | ##[/cubson:config] |
156 | 165 | ); |
@@ -159,21 +168,17 @@ $modversion['config'] = array( | ||
159 | 168 | // Block setting |
160 | 169 | // |
161 | 170 | $modversion['blocks'] = array( |
162 | -/* | |
163 | - x => array( | |
164 | - 'func_num' => x, | |
165 | - 'file' => 'xxxBlock.class.php', | |
166 | - 'class' => 'xxx', | |
167 | - 'name' => _MI_LECAT_BLOCK_NAME_xxx, | |
168 | - 'description' => _MI_LECAT_BLOCK_DESC_xxx, | |
169 | - 'options' => '', | |
170 | - 'template' => '{dirname}_block_xxx.html', | |
171 | + 1 => array( | |
172 | + 'func_num' => 1, | |
173 | + 'file' => 'ListBlock.class.php', | |
174 | + 'class' => 'ListBlock', | |
175 | + 'name' => _MI_LECAT_BLOCK_NAME_LIST, | |
176 | + 'description' => _MI_LECAT_BLOCK_DESC_LIST, | |
177 | + 'options' => '0', | |
178 | + 'template' => '{dirname}_block_list.html', | |
171 | 179 | 'show_all_module' => true, |
172 | 180 | 'visible_any' => true |
173 | 181 | ), |
174 | -*/ | |
175 | -##[cubson:block] | |
176 | -##[/cubson:block] | |
177 | 182 | ); |
178 | 183 | |
179 | 184 | ?> |