/** * Show Social buttons */ function add_social_links() { global $pagenow; if (!method_exists('Store_Apps_Upgrade', 'add_social_links')) { return; } if (!empty($_REQUEST['post_type']) && $_REQUEST['post_type'] == 'smart_offers' && $pagenow == "edit.php" || !empty($_REQUEST['tab']) && $_REQUEST['tab'] == 'smart_offers') { echo '<div class="smart_offers_social_links" style="padding-bottom: 1em;">' . Store_Apps_Upgrade::add_social_links('smart_offers') . '</div>'; } }
/** * Add Support ticket content on SO edit page */ function smart_offers_support_ticket_content() { global $pagenow, $typenow, $sa_smart_offers_upgrade; if ($pagenow != 'edit.php') { return; } if ($typenow != 'smart_offers') { return; } if (!method_exists('Store_Apps_Upgrade', 'support_ticket_content')) { return; } $prefix = 'smart_offers'; $sku = 'so'; $plugin_data = get_plugin_data(__FILE__); $license_key = get_site_option($prefix . '_license_key'); $text_domain = 'smart_offers'; Store_Apps_Upgrade::support_ticket_content($prefix, $sku, $plugin_data, $license_key, $text_domain); }
/** * Smart Offer's Support Form */ function smart_offers_support_ticket_content() { global $sa_smart_offers_upgrade; if (!wp_script_is('thickbox')) { if (!function_exists('add_thickbox')) { require_once ABSPATH . 'wp-includes/general-template.php'; } add_thickbox(); } if (!method_exists('Store_Apps_Upgrade', 'support_ticket_content')) { return; } $prefix = 'smart_offers'; $sku = 'so'; $plugin_data = get_plugin_data(SO_PLUGIN_FILE); $license_key = get_site_option($prefix . '_license_key'); $text_domain = 'smart_offers'; Store_Apps_Upgrade::support_ticket_content($prefix, $sku, $plugin_data, $license_key, $text_domain); }