user_level > 0) { $modversion['sub'][1]['name'] = constant( '_MI_XP2_MENU_POST_NEW'); if (wp_version_compare($wp_version, '>=','2.1')) $modversion['sub'][1]['url'] = $add_url . "wp-admin/post-new.php"; else $modversion['sub'][1]['url'] = $add_url . "wp-admin/post.php"; $modversion['sub'][2]['name'] = constant( '_MI_XP2_MENU_EDIT'); $modversion['sub'][2]['url'] = $add_url . "wp-admin/edit.php"; $modversion['sub'][3]['name'] = constant( '_MI_XP2_MENU_ADMIN'); $modversion['sub'][3]['url'] = $add_url . "wp-admin/"; } if (@$current_user->user_level > 9) { $modversion['sub'][4]['name'] = constant( '_MI_XP2_MENU_XPRESS'); $modversion['sub'][4]['url'] = $add_url . "wp-admin/admin.php?page=xpressme\\xpressme.php"; } if($GLOBALS["xoopsUserIsAdmin"]){ $modversion['sub'][5]['name'] = constant( '_MI_XP2_MOD_ADMIN'); $modversion['sub'][5]['url'] = "admin/index.php"; } } } // Use smarty $modversion["use_smarty"] = 1; /** * Templates */ // All Templates can't be touched by modulesadmin. $modversion['templates'] = array() ; $modversion['hasconfig'] = 1; $modversion['config'][] = array( 'name' => 'libxml_patch' , 'title' => '_MI_LIBXML_PATCH' , 'description' => '_MI_LIBXML_PATCH_DESC' , 'formtype' => 'yesno' , 'valuetype' => 'int' , 'default' => 0 , ); //BLOCKS $b_no =1; $modversion['blocks'][$b_no] = array( 'file' => 'recent_posts_content_block.php' , 'name' => constant('_MI_XP2_BLOCK_CONTENT') , 'description' => '' , 'show_func' => "b_". $mydirname . "_content_show" , 'edit_func' => "b_". $mydirname . "_content_edit" , 'template' => '' , 'options' => $mydirname. '||0|0|10|0|100||||0' , 'can_clone' => true , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'recent_posts_list_block.php' , 'name' => constant('_MI_XP2_BLOCK_POSTS') , 'description' => '' , 'show_func' => "b_". $mydirname . "_posts_show" , 'edit_func' => "b_". $mydirname . "_posts_edit" , 'options' => $mydirname. '||10|1|7||||0' , 'can_clone' => true , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'popular_posts_block.php' , 'name' => constant('_MI_XP2_BLOCK_POPULAR') , 'description' => '' , 'show_func' => "b_". $mydirname . "_popular_show" , 'edit_func' => "b_". $mydirname . "_popular_edit" , 'options' => $mydirname. '||10|0||||0' , 'can_clone' => true , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'page_block.php' , 'name' => constant('_MI_XP2_BLOCK_PAGE') , 'description' => '' , 'show_func' => "b_". $mydirname . "_page_show" , 'edit_func' => "b_". $mydirname . "_page_edit" , 'options' => $mydirname. '||post_title|asc||||0|0|none||1||' , 'can_clone' => true , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'recent_comments_block.php' , 'name' => constant('_MI_XP2_BLOCK_COMMENTS') , 'description' => '' , 'show_func' => "b_". $mydirname . "_comments_show" , 'edit_func' => "b_". $mydirname . "_comments_edit" , 'template' => '' , 'options' => $mydirname. '||10|30|||0' , 'can_clone' => true , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'sidebar_block.php' , 'name' => constant('_MI_XP2_BLOCK_SIDEBAR') , 'description' => '' , 'show_func' => "b_". $mydirname . "_sidebar_show" , 'edit_func' => '' , 'options' => '' , 'can_clone' => false , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'search_block.php' , 'name' => constant('_MI_XP2_BLOCK_SEARCH') , 'description' => '' , 'show_func' => "b_". $mydirname . "_search_show" , 'edit_func' => "b_". $mydirname . "_search_edit" , 'options' => $mydirname. '||18' , 'can_clone' => false , 'func_num' => $b_no , ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'calender_block.php' , 'name' => constant('_MI_XP2_BLOCK_CALENDER') , 'description' => '' , 'show_func' => "b_". $mydirname . "_calender_show" , 'edit_func' => "b_". $mydirname . "_calender_edit" , 'options' => $mydirname. '||#DB0000|#004D99' , 'can_clone' => false , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'archives_block.php' , 'name' => constant('_MI_XP2_BLOCK_ARCHIVE') , 'description' => '' , 'show_func' => "b_". $mydirname . "_archives_show" , 'edit_func' => "b_". $mydirname . "_archives_edit" , 'options' => $mydirname. '||monthly|0|1|0' , 'can_clone' => true , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'authors_block.php' , 'name' => constant('_MI_XP2_BLOCK_AUTHORS') , 'description' => '' , 'show_func' => "b_". $mydirname . "_authors_show" , 'edit_func' => "b_". $mydirname . "_authors_edit" , 'options' => $mydirname. '||0|1|0|1' , 'can_clone' => false , 'func_num' => $b_no, ); $b_no++; if (wp_version_compare($wp_version, '>=','2.3')){ $modversion['blocks'][$b_no] = array( 'file' => 'tag_cloud_block.php' , 'name' => constant('_MI_XP2_BLOCK_TAG') , 'description' => '' , 'show_func' => "b_". $mydirname . "_tag_cloud_show" , 'edit_func' => "b_". $mydirname . "_tag_cloud_edit" , 'options' => $mydirname. '||8|22|pt|45|flat|name|ASC||' , 'can_clone' => false , 'func_num' => $b_no, ); } $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'category_block.php' , 'name' => constant('_MI_XP2_BLOCK_CATEGORY') , 'description' => '' , 'show_func' => "b_". $mydirname . "_category_show" , 'edit_func' => "b_". $mydirname . "_category_edit" , 'options' => $mydirname. '||ALL|name|ASC|0|0|1|1|||1|0' , 'can_clone' => false , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'meta_block.php' , 'name' => constant('_MI_XP2_BLOCK_META') , 'description' => '' , 'show_func' => "b_". $mydirname . "_meta_show" , 'edit_func' => "b_". $mydirname . "_meta_edit" , 'options' => $mydirname. '||1|1|1|1|1|1|1|1' , 'can_clone' => false , 'func_num' => $b_no, ); $b_no++; if (wp_version_compare($wp_version, '>=','2.7')){ $modversion['blocks'][$b_no] = array( 'file' => 'widget_block.php' , 'name' => constant('_MI_XP2_BLOCK_WIDGET') , 'description' => '' , 'show_func' => "b_". $mydirname . "_widget_show" , 'edit_func' => "b_". $mydirname . "_widget_edit" , 'options' => $mydirname. '||1' , 'can_clone' => true , 'func_num' => $b_no, ); } $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'enhanced_block.php' , 'name' => constant('_MI_XP2_BLOCK_ENHANCED') , 'description' => '' , 'show_func' => "b_". $mydirname . "_enhanced_show" , 'edit_func' => "b_". $mydirname . "_enhanced_edit" , 'options' => $mydirname. '||' , 'can_clone' => true , 'func_num' => $b_no, ); // Notification $modversion['hasNotification'] = 1; $modversion['notification'] = array( 'lookup_file' => 'include/notification.inc.php' , 'lookup_func' => "xpress_notify" , 'category' => array( array( 'name' => 'global' , 'title' => constant('_MI_XP2_NOTCAT_GLOBAL') , 'description' => constant('_MI_XP2_NOTCAT_GLOBALDSC') , 'subscribe_from' => 'index.php' , ) , array( 'name' => 'category' , 'title' => constant('_MI_XP2_NOTCAT_CAT') , 'description' => constant('_MI_XP2_NOTCAT_CATDSC') , 'subscribe_from' => 'index.php' , 'item_name' => 'cat' , 'allow_bookmark' => 1 , ) , array( 'name' => 'author' , 'title' => constant('_MI_XP2_NOTCAT_AUTHOR') , 'description' => constant('_MI_XP2_NOTCAT_AUTHORDSC') , 'subscribe_from' => 'index.php' , 'item_name' => 'author' , 'allow_bookmark' => 1 , ) , array( 'name' => 'post' , 'title' => constant('_MI_XP2_NOTCAT_POST') , 'description' => constant('_MI_XP2_NOTCAT_POSTDSC') , 'subscribe_from' => 'index.php' , 'item_name' => 'p' , 'allow_bookmark' => 1 , ) , ) , 'event' => array( array( 'name' => 'waiting' , 'category' => 'global' , 'title' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITING') , 'caption' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITINGCAP') , 'description' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITINGCAP') , 'mail_template' => 'global_waiting' , 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITINGSBJ') , 'admin_only' => 1 , ) , array( 'name' => 'newpost' , 'category' => 'global' , 'title' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOST') , 'caption' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOSTCAP') , 'description' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOSTCAP') , 'mail_template' => 'global_newpost' , 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOSTSBJ') , ) , array( 'name' => 'comment' , 'category' => 'global' , 'title' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENT') , 'caption' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTCAP') , 'description' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTCAP') , 'mail_template' => 'global_newcomment' , 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTSBJ') , ) , array( 'name' => 'newpost' , 'category' => 'category' , 'title' => constant('_MI_XP2_NOTIFY_CAT_NEWPOST') , 'caption' => constant('_MI_XP2_NOTIFY_CAT_NEWPOSTCAP') , 'description' => constant('_MI_XP2_NOTIFY_CAT_NEWPOSTCAP') , 'mail_template' => 'category_newpost' , 'mail_subject' => constant('_MI_XP2_NOTIFY_CAT_NEWPOSTSBJ') , ) , array( 'name' => 'comment' , 'category' => 'category' , 'title' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENT') , 'caption' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENTCAP') , 'description' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENTCAP') , 'mail_template' => 'category_newcomment' , 'mail_subject' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENTSBJ') , ) , array( 'name' => 'newpost' , 'category' => 'author' , 'title' => constant('_MI_XP2_NOTIFY_AUT_NEWPOST') , 'caption' => constant('_MI_XP2_NOTIFY_AUT_NEWPOSTCAP') , 'description' => constant('_MI_XP2_NOTIFY_AUT_NEWPOSTCAP') , 'mail_template' => 'author_newpost' , 'mail_subject' => constant('_MI_XP2_NOTIFY_AUT_NEWPOSTSBJ') , ) , array( 'name' => 'comment' , 'category' => 'author' , 'title' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENT') , 'caption' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENTCAP') , 'description' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENTCAP') , 'mail_template' => 'author_newcomment' , 'mail_subject' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENTSBJ') , ) , array( 'name' => 'comment' , 'category' => 'post' , 'title' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENT') , 'caption' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENTCAP') , 'description' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENTCAP') , 'mail_template' => 'post_newcomment' , 'mail_subject' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENTSBJ') , ) , ) , ) ; ?>