WP E-junkie.com Shopping Cart - ' . WPEJUNKIE_VERSION . ''); define('WPEJUNKIE_SUPPORT_LINK', 'Help / Support'); define('WPEJUNKIE_ITEMS_LINK', 'Manage Items'); define('WPEJUNKIE_DONATE_LINK', 'Make a Donation'); define('WPEJUNKIE_POWERED_BY', 'WP E-junkie.com Shopping Cart'); define('WPEJUNKIE_AFFILIATE_URL', 'http://www.e-junkie.com/?r=113214'); define('WPEJUNKIE_AFFILIATE_BUTTON', 'E-junkie Shopping Cart and Digital Delivery'); //Define the plugin directory and path define("WPEJUNKIE_PLUGINPATH", "/" . plugin_basename( dirname(__FILE__) ) . "/"); define("WPEJUNKIE_PLUGINFULLPATH", WP_PLUGIN_DIR . WPEJUNKIE_PLUGINPATH ); define("WPEJUNKIE_PLUGINFULLURL", WP_PLUGIN_URL . WPEJUNKIE_PLUGINPATH ); //Define all of the plugins database tables define("WPEJUNKIE_HTML_CODE_TABLE", get_option('wpejunkie_html_code_tbl') ); /*Install the plugin tables and options*/ require_once("install_db.php"); register_activation_hook(__FILE__,'wpejunkie_data_tables_install'); register_activation_hook(__FILE__,'wpejunkie_active_install'); //Runs on plugin deactivation register_deactivation_hook( __FILE__, 'wpejunkie_active_remove' ); //Get the functions require_once("wpejunkie_functions.php"); //Get the shortcodes require_once("wpejunkie_shortcodes.php"); //Get the admin pages require_once("wpejunkie_items.php"); require_once("wpejunkie_items_list.php"); //Output the admin menu and settings page if ( is_admin() ){ //Call the html code add_action('admin_menu', 'wpejunkie_settings_menu'); //Call the style sheet and javascripts add_action('admin_print_styles', 'wpejunkie_config_page_styles'); add_action('admin_print_scripts', 'wpejunkie_admin_scripts'); } //Load the e-junkie javascripts if ( !is_admin() ){ //Add the ejunkie scripts to the footer add_action('wp_footer', 'wpejunkie_print_footer_script'); } //Build the menu tab function wpejunkie_settings_menu() { add_menu_page(__('E-junkie.com Shopping Cart - Cart Items','wpejunkie'), __('E-junkie Cart','wpejunkie'), 'administrator','wpejunkie', 'wpejunkie_items'); //Add/Edit items add_submenu_page('wpejunkie', __('E-junkie.com Shopping Cart - Add/Edit Items','wpejunkie'), __('Add/Edit Items','wpejunkie'), 'administrator', 'wpejunkie', 'wpejunkie_items'); //Add/Edit items add_submenu_page('wpejunkie', __('E-junkie.com Shopping Cart - Add/Edit Items','wpejunkie'), __('List Items','wpejunkie'), 'administrator', 'wpejunkie_items_listings', 'wpejunkie_items_listings'); //General Settings add_submenu_page('wpejunkie', __('E-junkie.com Shopping Cart - General Settings','wpejunkie'), __('General Settings','wpejunkie'), 'administrator', 'wpejunkie_settings_page', 'wpejunkie_settings_page'); } /*Build the ejunkie settings page */ function wpejunkie_settings_page() { ?>

    • ' . __('If you do not have an E-junkie.com account, please sign up here.', 'wpejunkie') . '

      ' : '';?>

      E-junkie buttons using tags.', 'event_espresso'); ?>

      >