folders, $folders); } /** * Applies the configuration of the plugin * @var array $config The config that is to be edited * @return array The new config */ public function applyConfig($config) { $config['tabs'] = array( 0 => array( 'Settings', 'tabs__settings_withinboredom'), 1 => array('About', 'tabs__about_withinboredom'), 2 => array('Support', 'tabs__support_withinboredom'), ); $config['help'] = array( // The tab to display on '0' => array( // The title content of the help menu 0 => array('Overview', "Basic settings for the Abundatrade Calculator."), 1 => array('Help', 'Enter your affiliate id and the location of your thank you page') ) ); $config['config'] = array( 'settings' => true, 'page_title' => 'Abundatrade', 'button_title' => 'Abundatrade', 'slug' => 'abundatrade', 'shortcodes' => array( 'abundatrade' ), ); return $config; } public function shortcode($atts) { $display = '
| UPC | Product Details | Qty | Per Item | Total | Delete All | |
|---|---|---|---|---|---|---|
| Total Items: | 0 | Pre-Valuation Total | $0.00 | Delete All | ||
file no exists: " . $folders['PluginDir'] . $file . ".php\n"; } /** * Builds a list of folders for later distribution so we can find ourselves * call with apply_filters("abundatrade(getFolders", array()); */ private function BuildFolderList() { $config = $this->applyConfig(array()); $this->folders = array(); $this->folders['PluginDir'] = plugin_dir_path(__FILE__); $this->folders['PluginUrl'] = plugins_url('', __FILE__); $this->folders['PluginAdmin'] = admin_url() . 'options-general.php?page=' . $config['config']['slug']; $this->folders['Basename'] = plugin_basename(__FILE__); } } $GLOBALS['abundatrade_withinboredom'] = new abundatrade_withinboredom(); //we don't want to autoload later on //spl_autoload_unregister(array($GLOBALS['TheMap_withinboredom'], 'autoload'));