function idf_enable_checkout() { if (class_exists('ID_Project') && is_id_licensed()) { return true; } return false; }
<div class="ign-supportnow" data-projectid="<?php echo $project_id; ?> "> <?php if ($hDeck->end_type == 'closed' && $hDeck->days_left <= 0) { ?> <a href=""><?php _e('Project Closed', 'fivehundred'); ?> </a> <?php } else { ?> <?php if (function_exists('is_id_licensed') && is_id_licensed()) { ?> <?php if (empty($permalinks) || $permalinks == '') { ?> <a href="<?php echo get_permalink($id); ?> &purchaseform=500&prodid=<?php echo isset($project_id) ? $project_id : ''; ?> "><?php _e('Support Now', 'fivehundred'); ?> </a> <?php
<?php } ?> <?php if (!$custom || $custom && isset($attrs['project_levels'])) { $url = getPurchaseURLFromType($project_id, 'purchaseform'); $level_invalid = getLevelLimitReached($project_id, $the_deck->post_id, 1); ?> <!--Product Levels--> <div class="id-product-levels"> <?php if ($the_deck->disable_levels !== "on") { ?> <?php foreach ($the_deck->level_data as $level) { if (!is_id_licensed()) { $level->level_invalid = 1; } if (isset($the_deck->end_type) && $the_deck->end_type == 'closed') { if (isset($the_deck->days_left) && $the_deck->days_left > 0) { ?> <a class="level-binding" <?php echo !isset($level->level_invalid) || $level->level_invalid ? '' : 'href="' . apply_filters('id_level_' . $level->id . '_link', $url . '&level=' . $level->id, $project_id) . '"'; ?> > <?php } else { ?> <a class="level-binding" <?php echo isset($level->level_invalid) && $level->level_invalid ? '' : ''; ?>
<?php add_shortcode('project_faq', 'id_projectFAQ'); add_shortcode('project_updates', 'id_projectUpdates'); if (is_id_licensed()) { add_shortcode('project_name', 'id_projectName'); add_shortcode('project_short_desc', 'id_ShortDesc'); add_shortcode('project_long_desc', 'id_projectLongDesc'); add_shortcode('project_percentage_bar', 'id_projectPercentBar'); add_shortcode('project_goal', 'id_projectGoal'); add_shortcode('project_users', 'id_projectUsers'); add_shortcode('project_pledged', 'id_projectPledgedPrice'); add_shortcode('project_daystogo', 'id_projectdaytogo'); add_shortcode('project_end', 'id_projectend'); add_shortcode('project_mini_widget', 'id_projectMiniWidget'); add_shortcode('project_page_widget', 'id_projectPageWidget'); add_shortcode('project_grid', 'id_projectGrid'); add_shortcode('project_image', 'id_projectImage'); add_shortcode('project_video', 'id_projectVideo'); add_shortcode('project_page_content_left', 'id_projectPageContent'); add_shortcode('project_page_content', 'id_projectPageContentFull'); add_shortcode('project_page_complete', 'id_projectPageComplete'); add_shortcode('project_purchase_form', 'id_purchaseForm'); } //************************************** // functions for shortcodes (project) //************************************** function id_projectName($attrs) { global $wpdb; if (isset($attrs['product'])) {
function admin_menu_html() { require 'languages/text_variables.php'; //All the lines, with #GLOBALS['<variable name>']; replace with $<variable name> $menu = ' <div class="sidebar ignitiondeck"> <div class="icon32"></div><h2 class="title">' . __("IgnitionDeck Crowdfunding", "ignitiondeck") . '</h2> <div class="help"> <a href="http://forums.ignitiondeck.com" alt="IgnitionDeck Support" title="IgnitionDeck Support" target="_blank"><button class="button button-large">' . __('Support', 'memberdeck') . '</button></a> <a href="http://docs.ignitiondeck.com" alt="IgnitionDeck Documentation" title="IgnitionDeck Documentation" target="_blank"><button class="button button-large">' . __('Documentation', 'memberdeck') . '</button></a> </div> <br style="clear: both;"/> <h3 class="nav-tab-wrapper">'; $menu .= '<a' . ($_GET['page'] == "ignitiondeck" ? ' class="nav-tab nav-tab-active"' : ' class="nav-tab"') . ' href="admin.php?page=ignitiondeck">' . $tr_Settings . '</a>'; $menu .= apply_filters('idcf_project_settings_tab', '<a ' . ($_GET['page'] == "project-settings" ? ' class="nav-tab nav-tab-active"' : ' class="nav-tab"') . ' href="admin.php?page=project-settings">' . $tr_Product_Settings . '</a>'); if (is_id_licensed()) { $menu .= apply_filters('idcf_custom_settings_tab', '<a ' . ($_GET['page'] == "custom-settings" ? ' class="nav-tab nav-tab-active"' : ' class="nav-tab"') . ' href="admin.php?page=custom-settings">' . $tr_Custom_Pre_Product_Settings . '</a>'); $menu .= apply_filters('idcf_payment_settings_tab', '<a ' . ($_GET['page'] == "payment-options" ? ' class="nav-tab nav-tab-active"' : ' class="nav-tab"') . 'href="admin.php?page=payment-options">' . $tr_Payment_Settings . '</a>'); $menu .= '<a ' . ($_GET['page'] == "deck-builder" ? ' class="nav-tab nav-tab-active"' : ' class="nav-tab"') . 'href="admin.php?page=deck-builder">' . $tr_Deck_Builder . '</a>'; } $menu .= '<a ' . ($_GET['page'] == "order_details" ? ' class="nav-tab nav-tab-active"' : ' class="nav-tab"') . ' href="admin.php?page=order_details">' . $tr_Order_Details . '</a>'; if (is_id_licensed()) { '<a ' . ($_GET['page'] == "email-settings" ? ' class="nav-tab nav-tab-active"' : ' class="nav-tab"') . ' href="admin.php?page=email-settings">' . $tr_Email_List_Settings . '</a>'; } $menu_sub = '</h3></div>'; return apply_filters('id_submenu_tab', $menu) . $menu_sub; }
$url_suffix = '&'; } else { $url_suffix = '?'; } $url = get_permalink($id) . $url_suffix . 'purchaseform=500&prodid=' . $project_id; //getPurchaseURLfromType($project_id, 'purchaseform'); /*$custom_order = get_post_meta($id, 'custom_level_order', true); if ($custom_order) { usort($levels, 'fh_level_sort'); }*/ } } if (isset($levels)) { foreach ($levels as $level) { $level_invalid = getLevelLimitReached($project_id, $id, $level->id); if (!function_exists('is_id_licensed') || !is_id_licensed()) { $level_invalid = 1; } ?> <?php if (empty($type) || $type == 'level-based') { if ($end_type == 'closed' && $days_left <= '0') { ?> <a class="level-binding"> <?php } else { ?> <a class="level-binding" <?php echo isset($level_invalid) && $level_invalid ? '' : 'href="' . apply_filters('id_level_' . $level->id . '_link', $url . '&level=' . $level->id, $project_id) . '"'; ?> >