user_level > 0) { $modversion['sub'][1]['name'] = constant( '_MI_XPRESS_MENU_POST_NEW'); $modversion['sub'][1]['url'] = "wp-admin/post-new.php"; $modversion['sub'][2]['name'] = constant( '_MI_XPRESS_MENU_EDIT'); $modversion['sub'][2]['url'] = "wp-admin/edit.php"; $modversion['sub'][3]['name'] = constant( '_MI_XPRESS_MENU_ADMIN'); $modversion['sub'][3]['url'] = "wp-admin/"; } if (@$current_user->user_level > 9) { $modversion['sub'][4]['name'] = constant( '_MI_XPRESS_MENU_XPRESS'); $modversion['sub'][4]['url'] = "wp-admin/options-general.php?page=xpressme_config"; } } // Use smarty $modversion["use_smarty"] = 1; /** * Templates */ // All Templates can't be touched by modulesadmin. $modversion['templates'] = array() ; $modversion['hasconfig'] = 1; //BLOCKS $b_no =1; $modversion['blocks'][$b_no] = array( 'file' => 'recent_posts_content_block.php' , 'name' => constant('_MI_XPRESS_BLOCK_CONTENT') , 'description' => '' , 'show_func' => "b_". $mydirname . "_content_show" , 'edit_func' => "b_". $mydirname . "_content_edit" , 'template' => '' , 'options' => $mydirname. '||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_XPRESS_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_XPRESS_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_XPRESS_BLOCK_PAGE') , 'description' => '' , 'show_func' => "b_". $mydirname . "_page_show" , 'edit_func' => "b_". $mydirname . "_page_edit" , 'options' => $mydirname. '||post_title|asc||0||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_XPRESS_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_XPRESS_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_XPRESS_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_XPRESS_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_XPRESS_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_XPRESS_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++; $modversion['blocks'][$b_no] = array( 'file' => 'tag_cloud_block.php' , 'name' => constant('_MI_XPRESS_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_XPRESS_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_XPRESS_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++; $modversion['blocks'][$b_no] = array( 'file' => 'widget_block.php' , 'name' => constant('_MI_XPRESS_BLOCK_WIDGET') , 'description' => '' , 'show_func' => "b_". $mydirname . "_widget_show" , 'edit_func' => "b_". $mydirname . "_widget_edit" , 'options' => $mydirname. '||' , 'can_clone' => true , 'func_num' => $b_no, ); $b_no++; $modversion['blocks'][$b_no] = array( 'file' => 'enhanced_block.php' , 'name' => constant('_MI_XPRESS_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_XPRESS_NOTCAT_GLOBAL') , 'description' => constant('_MI_XPRESS_NOTCAT_GLOBALDSC') , 'subscribe_from' => 'index.php' , ) , array( 'name' => 'category' , 'title' => constant('_MI_XPRESS_NOTCAT_CAT') , 'description' => constant('_MI_XPRESS_NOTCAT_CATDSC') , 'subscribe_from' => 'index.php' , 'item_name' => 'cat' , 'allow_bookmark' => 1 , ) , array( 'name' => 'author' , 'title' => constant('_MI_XPRESS_NOTCAT_AUTHOR') , 'description' => constant('_MI_XPRESS_NOTCAT_AUTHORDSC') , 'subscribe_from' => 'index.php' , 'item_name' => 'author' , 'allow_bookmark' => 1 , ) , array( 'name' => 'post' , 'title' => constant('_MI_XPRESS_NOTCAT_POST') , 'description' => constant('_MI_XPRESS_NOTCAT_POSTDSC') , 'subscribe_from' => 'index.php' , 'item_name' => 'p' , 'allow_bookmark' => 1 , ) , ) , 'event' => array( array( 'name' => 'waiting' , 'category' => 'global' , 'title' => constant('_MI_XPRESS_NOTIFY_GLOBAL_WAITING') , 'caption' => constant('_MI_XPRESS_NOTIFY_GLOBAL_WAITINGCAP') , 'description' => constant('_MI_XPRESS_NOTIFY_GLOBAL_WAITINGCAP') , 'mail_template' => 'global_waiting' , 'mail_subject' => constant('_MI_XPRESS_NOTIFY_GLOBAL_WAITINGSBJ') , 'admin_only' => 1 , ) , array( 'name' => 'newpost' , 'category' => 'global' , 'title' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWPOST') , 'caption' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWPOSTCAP') , 'description' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWPOSTCAP') , 'mail_template' => 'global_newpost' , 'mail_subject' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWPOSTSBJ') , ) , array( 'name' => 'comment' , 'category' => 'global' , 'title' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWCOMMENT') , 'caption' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWCOMMENTCAP') , 'description' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWCOMMENTCAP') , 'mail_template' => 'global_newcomment' , 'mail_subject' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWCOMMENTSBJ') , ) , array( 'name' => 'newpost' , 'category' => 'category' , 'title' => constant('_MI_XPRESS_NOTIFY_CAT_NEWPOST') , 'caption' => constant('_MI_XPRESS_NOTIFY_CAT_NEWPOSTCAP') , 'description' => constant('_MI_XPRESS_NOTIFY_CAT_NEWPOSTCAP') , 'mail_template' => 'category_newpost' , 'mail_subject' => constant('_MI_XPRESS_NOTIFY_CAT_NEWPOSTSBJ') , ) , array( 'name' => 'comment' , 'category' => 'category' , 'title' => constant('_MI_XPRESS_NOTIFY_CAT_NEWCOMMENT') , 'caption' => constant('_MI_XPRESS_NOTIFY_CAT_NEWCOMMENTCAP') , 'description' => constant('_MI_XPRESS_NOTIFY_CAT_NEWCOMMENTCAP') , 'mail_template' => 'category_newcomment' , 'mail_subject' => constant('_MI_XPRESS_NOTIFY_CAT_NEWCOMMENTSBJ') , ) , array( 'name' => 'newpost' , 'category' => 'author' , 'title' => constant('_MI_XPRESS_NOTIFY_AUT_NEWPOST') , 'caption' => constant('_MI_XPRESS_NOTIFY_AUT_NEWPOSTCAP') , 'description' => constant('_MI_XPRESS_NOTIFY_AUT_NEWPOSTCAP') , 'mail_template' => 'author_newpost' , 'mail_subject' => constant('_MI_XPRESS_NOTIFY_AUT_NEWPOSTSBJ') , ) , array( 'name' => 'comment' , 'category' => 'author' , 'title' => constant('_MI_XPRESS_NOTIFY_AUT_NEWCOMMENT') , 'caption' => constant('_MI_XPRESS_NOTIFY_AUT_NEWCOMMENTCAP') , 'description' => constant('_MI_XPRESS_NOTIFY_AUT_NEWCOMMENTCAP') , 'mail_template' => 'author_newcomment' , 'mail_subject' => constant('_MI_XPRESS_NOTIFY_AUT_NEWCOMMENTSBJ') , ) , array( 'name' => 'comment' , 'category' => 'post' , 'title' => constant('_MI_XPRESS_NOTIFY_POST_NEWCOMMENT') , 'caption' => constant('_MI_XPRESS_NOTIFY_POST_NEWCOMMENTCAP') , 'description' => constant('_MI_XPRESS_NOTIFY_POST_NEWCOMMENTCAP') , 'mail_template' => 'post_newcomment' , 'mail_subject' => constant('_MI_XPRESS_NOTIFY_POST_NEWCOMMENTSBJ') , ) , ) , ) ; ?>