if (file_exists(TEMPLATEPATH . '/includes/gateways/paypal/ipn.php')) { require_once TEMPLATEPATH . '/includes/gateways/paypal/ipn.php'; } new CP_Blog_Archive(); new CP_Ads_Categories(); new CP_Add_New(); new CP_Add_New_Confirm(); new CP_Membership(); new CP_Membership_Confirm(); new CP_Edit_Item(); new CP_User_Dashboard(); new CP_User_Profile(); // set global path variables define('CP_DASHBOARD_URL', get_permalink(CP_User_Dashboard::get_id())); define('CP_PROFILE_URL', get_permalink(CP_User_Profile::get_id())); define('CP_EDIT_URL', get_permalink(CP_Edit_Item::get_id())); define('CP_ADD_NEW_URL', get_permalink(CP_Add_New::get_id())); define('CP_ADD_NEW_CONFIRM_URL', get_permalink(CP_Add_New_Confirm::get_id())); define('CP_MEMBERSHIP_PURCHASE_URL', get_permalink(CP_Membership::get_id())); define('CP_MEMBERSHIP_PURCHASE_CONFIRM_URL', get_permalink(CP_Membership_Confirm::get_id())); add_theme_support('app-versions', array('update_page' => 'admin.php?page=settings&firstrun=1', 'current_version' => $app_version, 'option_key' => 'cp_version')); add_theme_support('app-plupload', array('max_file_size' => get_option('cp_max_image_size') . 'kb', 'allowed_files' => get_option('cp_num_images'))); add_theme_support('app-wrapping'); add_theme_support('app-login', array('login' => 'tpl-login.php', 'register' => 'tpl-registration.php', 'recover' => 'tpl-password-recovery.php', 'reset' => 'tpl-password-reset.php', 'redirect' => get_option('cp_disable_wp_login') == 'yes', 'settings_page' => 'admin.php?page=settings&setTabIndex=4')); add_theme_support('app-feed', array('post_type' => APP_POST_TYPE, 'blog_template' => 'tpl-blog.php', 'alternate_feed_url' => get_option('cp_feedburner_url'))); // add query var for search functions function cp_add_query_vars() { global $wp; $wp->add_query_var('scat'); }
function __construct() { self::$_template = 'edit-listing.php'; parent::__construct(self::$_template, __('Edit Listing', APP_TD)); }