setting menu is with setTabName("Sample Plugin Setting"); block with TabContentSample **/ // Plug-in Definition // status : devel, alpha, beta, rc, stable $plugins_info['SamplePlugin'] = array('name' => 'Sample Plugin', 'description' => 'This is a sample description', 'version' => '0.0.1', 'status' => 'beta', 'tabs' => array('SamplePlugin'), 'settings' => array('Sample Plugin Setting'), 'blocks' => array('BlockSample')); //'plugins' => Array('SamplePlugin'), // We include here our Block Object include_once "plugin/SamplePlugIn/class/BlockSample.class.php"; include_once "plugin/SamplePlugIn/class/SamplePlugIn.class.php"; $cfg_sample_plugin_path = "/Tab/SamplePlugIn/"; // Hook for the block object $GLOBALS['cfg_block_placement']['TabContentSample'][] = "BlockSample"; $plugin_sample_menu = new SubMenu(); $plugin_sample_menu->addMenuItem("page 1", $cfg_sample_plugin_path . "TabContentSample")->addMenuItem("page 2", $cfg_sample_plugin_path . "TabContentSamplePage2"); // Hook to display the Tab (they are real page just without the .php) $GLOBALS['cfg_tab_placement']->append(new Tab("SamplePlugIn")); $GLOBALS['cfg_tab_placement']->next(); $GLOBALS['cfg_tab_placement']->current()->setTabName("SamplePlugIn")->setTitle("You are on the Sample Plugin")->setPages(array("TabContentSample", "TabContentSamplePage2"))->setMenu($plugin_sample_menu)->setMessage('welcome_sample_plugin')->setDefaultPage("TabContentSample"); // Hook to display this plug-in Configuration in the tab Settings. $GLOBALS['cfg_setting_tab_placement']->append(new TabSetting("SamplePlugIn")); $GLOBALS['cfg_setting_tab_placement']->next(); $GLOBALS['cfg_setting_tab_placement']->current()->setTabName("Sample Plugin Setting")->setTitle("Sample Plug In Setting or configuration sample")->setPages(array("SettingContentSample"))->setDefaultPage("SettingContentSample"); // Register the SamplePage, its just a plug-in Page not linked to a Tab or SettingTab. $GLOBALS['cfg_plugin_page']->append(new PlugIn("SamplePlugIn")); $GLOBALS['cfg_plugin_page']->next(); $GLOBALS['cfg_plugin_page']->current()->setPages(array("SamplePage")); //By default the menu will display in all pages of your plug-in //To set specify which menu display on which page use this array // $GLOBALS['cfg_submenu_placement']['TabContentSample'] = $plugin_sample_menu;
// Copyright 2008-2010 SQLFusion LLC info@sqlfusion.com /**COPYRIGHTS**/ /* * Marketing configuration * This is a configuration file for the Marketing plugin. * It loads class and sets hooks * * @package EmailMarketing * @author Philippe Lewicki <*****@*****.**> * @license ##License## * @version 0.1 * @date 2010-11-08 */ $cfg_plugin_expense_uri = "/Tab/Expense/"; $cfg_plugin_expense_path = "plugin/Expense/"; define('OFUZ_LOG_PLUGIN_EXPENSE', true); // Classes include_once $cfg_plugin_expense_path . "class/Expense.class.php"; include_once $cfg_plugin_expense_path . "class/ExpenseImport.class.php"; include_once $cfg_plugin_expense_path . "class/BlockTmpExpenseMenu.class.php"; // Hook for the block object $GLOBALS['cfg_block_placement']['All'][] = "BlockTmpExpenseMenu"; // $GLOBALS['cfg_block_placement']['WebForm'][] = "BlockWebFormList"; // $GLOBALS['cfg_block_placement']['MEmailTemplate'][] = "BlockEmailTemplateList"; $plugin_expense_menu = new SubMenu(); $plugin_expense_menu->addMenuItem("All", $cfg_plugin_expense_uri . "All")->addMenuItem("Add New Expense", $cfg_plugin_expense_uri . "Add")->addMenuItem("Import", "/Tab/Expense/Import")->addMenuItem("Profit & Loss", "/Tab/Expense/ProfitAndLoss"); // Hook to display the Tab (they are real page just without the .php) $GLOBALS['cfg_tab_placement']->append(new Tab("Expense")); $GLOBALS['cfg_tab_placement']->next(); $GLOBALS['cfg_tab_placement']->current()->setTabName("Expenses")->setMessage("welcome_expenses")->setPages(array("All", "Add", "Import", "ImportManual"))->setMenu($plugin_expense_menu)->setDefaultPage("All");
// blocks include_once "plugin/Marketing/class/BlockMarketing.class.php"; include_once "plugin/Marketing/class/BlockWebFormList.class.php"; include_once "plugin/Marketing/class/BlockEmailTemplateList.class.php"; define('OFUZ_LOG_RUN_PLUGIN_MARKETING', true); $cfg_plugin_mkt_path = "/Tab/Marketing/"; // Hook for the block object $GLOBALS['cfg_block_placement']['AutoResponderEmailEdit'][] = "BlockMarketing"; $GLOBALS['cfg_block_placement']['WebForm'][] = "BlockWebFormList"; $GLOBALS['cfg_block_placement']['MEmailTemplate'][] = "BlockEmailTemplateList"; $GLOBALS['cfg_plugin_eventmultiple_placement']['contacts'][] = array('name' => 'Send a Message', 'confirm' => ' ', 'event' => 'ContactMailing->eventGetForMailMerge', 'action' => ' ', 'plugin' => 'Marketing'); // Array('name'=> 'Send a Message ', // 'confirm' => '', // 'event' => 'ContactMailing->eventGetForMailMerge', // 'action' => ''); $plugin_marketing_menu = new SubMenu(); $plugin_marketing_menu->addMenuItem("WebForms", "/Tab/Marketing/WebForm")->addMenuItem("Auto Responders", "/Tab/Marketing/AutoResponder")->addMenuItem("Email Template", "/Tab/Marketing/MEmailTemplate"); // Hook to display the Tab (they are real page just without the .php) $GLOBALS['cfg_tab_placement']->append(new Tab("Marketing")); $GLOBALS['cfg_tab_placement']->next(); $GLOBALS['cfg_tab_placement']->current()->setTabName("Marketing")->setMessage("welcome_marketing")->setPages(array("TabContentMarketing", "WebForm", "WebFormUrl", "MEmailTemplate", "settings_auto_responder_add", "settings_auto_responder", "AutoResponder", "AutoResponderEmail", "AutoResponderEmailEdit", "settings_auto_responder_edit", "SendMessage", "SaveTemplate"))->setMenu($plugin_marketing_menu)->setDefaultPage("MEmailTemplate"); // Use this array to customize the display of the menu in the pages. // $GLOBALS['cfg_submenu_placement']['TabContentMarketing'] = $plugin_marketing_menu; // $GLOBALS['cfg_submenu_placement']['AutoResponder'] = $plugin_marketing_menu; // $GLOBALS['cfg_submenu_placement']['AutoResponderEmail'] = $plugin_marketing_menu; // $GLOBALS['cfg_submenu_placement']['AutoResponderEmailEdit'] = $plugin_marketing_menu; // $GLOBALS['cfg_submenu_placement']['WebForm'] = $plugin_marketing_menu; // $GLOBALS['cfg_submenu_placement']['WebFormURL'] = $plugin_marketing_menu; // $GLOBALS['cfg_submenu_placement']['MEmailTemplate'] = $plugin_marketing_menu; $GLOBALS['cfg_submenu_placement']['SendMessage'] = ''; $GLOBALS['cfg_submenu_placement']['SaveTemplate'] = '';