当前位置: 首页>>代码示例>>PHP>>正文


PHP ProjectTheme_get_project_primary_cat函数代码示例

本文整理汇总了PHP中ProjectTheme_get_project_primary_cat函数的典型用法代码示例。如果您正苦于以下问题:PHP ProjectTheme_get_project_primary_cat函数的具体用法?PHP ProjectTheme_get_project_primary_cat怎么用?PHP ProjectTheme_get_project_primary_cat使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ProjectTheme_get_project_primary_cat函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ProjectTheme_authorize_main_listing_submit_payment

function ProjectTheme_authorize_main_listing_submit_payment()
{
    global $wp_query, $wpdb, $current_user;
    $pid = $wp_query->query_vars['pid'];
    get_currentuserinfo();
    $uid = $current_user->ID;
    $post = get_post($pid);
    $business = get_option('ProjectTheme_authorize_id');
    if (empty($business)) {
        die('ERROR. Please input your Authorize ID.');
    }
    //-------------------------------------------------------------------------
    $features_not_paid = array();
    $payment_arr = array();
    $base_fee_paid = get_post_meta($pid, 'base_fee_paid', true);
    $base_fee = get_option('projectTheme_base_fee');
    ///----custom fee check--------------
    $catid = ProjectTheme_get_project_primary_cat($pid);
    $ProjectTheme_get_images_cost_extra = ProjectTheme_get_images_cost_extra($pid);
    $custom_set = get_option('projectTheme_enable_custom_posting');
    if ($custom_set == 'yes') {
        $base_fee = get_option('projectTheme_theme_custom_cat_' . $catid);
        if (empty($base_fee)) {
            $base_fee = 0;
        }
    }
    //----------------------------------
    if ($base_fee_paid != "1" && $base_fee > 0) {
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost for base fee', 'ProjectTheme');
        $new_feature_arr[1] = $base_fee;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'base_fee';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $base_fee;
        $my_small_arr['description'] = __('Base Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //----------------------------------------------------------
    $my_small_arr = array();
    $my_small_arr['fee_code'] = 'extra_img';
    $my_small_arr['show_me'] = true;
    $my_small_arr['amount'] = $ProjectTheme_get_images_cost_extra;
    $my_small_arr['description'] = __('Extra Images Fee', 'ProjectTheme');
    array_push($payment_arr, $my_small_arr);
    //-------- Featured Project Check --------------------------
    $featured = get_post_meta($pid, 'featured', true);
    $featured_paid = get_post_meta($pid, 'featured_paid', true);
    $feat_charge = get_option('projectTheme_featured_fee');
    if ($featured == "1" && $featured_paid != "1" && $feat_charge > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to make project featured', 'ProjectTheme');
        $new_feature_arr[1] = $feat_charge;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'feat_fee';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $feat_charge;
        $my_small_arr['description'] = __('Featured Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //---------- Private Bids Check -----------------------------
    $private_bids = get_post_meta($pid, 'private_bids', true);
    $private_bids_paid = get_post_meta($pid, 'private_bids_paid', true);
    $projectTheme_sealed_bidding_fee = get_option('projectTheme_sealed_bidding_fee');
    if (!empty($projectTheme_sealed_bidding_fee)) {
        $opt = get_post_meta($pid, 'private_bids', true);
        if ($opt == "0") {
            $projectTheme_sealed_bidding_fee = 0;
        }
    }
    if ($private_bids == "1" && $private_bids_paid != "1" && $projectTheme_sealed_bidding_fee > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to add sealed bidding', 'ProjectTheme');
        $new_feature_arr[1] = $projectTheme_sealed_bidding_fee;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'sealed_project';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $projectTheme_sealed_bidding_fee;
        $my_small_arr['description'] = __('Sealed Bidding Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //---------- Hide Project Check -----------------------------
    $hide_project = get_post_meta($pid, 'hide_project', true);
    $hide_project_paid = get_post_meta($pid, 'hide_project_paid', true);
    $projectTheme_hide_project_fee = get_option('projectTheme_hide_project_fee');
    if (!empty($projectTheme_hide_project_fee)) {
        $opt = get_post_meta($pid, 'hide_project', true);
        if ($opt == "0") {
            $projectTheme_hide_project_fee = 0;
        }
    }
    if ($hide_project == "1" && $hide_project_paid != "1" && $projectTheme_hide_project_fee > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to hide project from search engines', 'ProjectTheme');
//.........这里部分代码省略.........
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:authorize_listing.php

示例2: get_bloginfo

//--------------
$this_script = get_bloginfo('siteurl') . '/?p_action=paypal_listing&pid=' . $pid;
if (empty($action)) {
    $action = 'process';
}
switch ($action) {
    case 'process':
        // Process and order...
        $features_not_paid = array();
        $catid = ProjectTheme_get_project_primary_cat($pid);
        $ProjectTheme_get_images_cost_extra = ProjectTheme_get_images_cost_extra($pid);
        $payment_arr = array();
        //-----------------------------------
        $base_fee_paid = get_post_meta($pid, 'base_fee_paid', true);
        $base_fee = get_option('projectTheme_base_fee');
        $catid = ProjectTheme_get_project_primary_cat($pid);
        $custom_set = get_option('projectTheme_enable_custom_posting');
        if ($custom_set == 'yes') {
            $base_fee = get_option('projectTheme_theme_custom_cat_' . $catid);
            if (empty($base_fee)) {
                $base_fee = 0;
            }
        }
        //----------------------------------------------------------
        if ($base_fee_paid != "1" && $base_fee > 0) {
            $new_feature_arr = array();
            $new_feature_arr[0] = __('Cost for base fee', 'ProjectTheme');
            $new_feature_arr[1] = $base_fee;
            array_push($features_not_paid, $new_feature_arr);
            $my_small_arr = array();
            $my_small_arr['fee_code'] = 'base_fee';
开发者ID:roberto95117,项目名称:auction,代码行数:31,代码来源:paypal_listing.php

示例3: ProjectTheme_voguepay_main_listing_submit_payment

function ProjectTheme_voguepay_main_listing_submit_payment()
{
    global $wp_query, $wpdb, $current_user;
    $pid = $wp_query->query_vars['pid'];
    get_currentuserinfo();
    $uid = $current_user->ID;
    $post = get_post($pid);
    $business = get_option('ProjectTheme_voguepay_id');
    if (empty($business)) {
        die('ERROR. Please input your Voguepay ID.');
    }
    //-------------------------------------------------------------------------
    $features_not_paid = array();
    $payment_arr = array();
    $base_fee_paid = get_post_meta($pid, 'base_fee_paid', true);
    $base_fee = get_option('projectTheme_base_fee');
    ///----custom fee check--------------
    $catid = ProjectTheme_get_project_primary_cat($pid);
    $ProjectTheme_get_images_cost_extra = ProjectTheme_get_images_cost_extra($pid);
    $custom_set = get_option('projectTheme_enable_custom_posting');
    if ($custom_set == 'yes') {
        $base_fee = get_option('projectTheme_theme_custom_cat_' . $catid);
        if (empty($base_fee)) {
            $base_fee = 0;
        }
    }
    //----------------------------------
    if ($base_fee_paid != "1" && $base_fee > 0) {
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost for base fee', 'ProjectTheme');
        $new_feature_arr[1] = $base_fee;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'base_fee';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $base_fee;
        $my_small_arr['description'] = __('Base Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //----------------------------------------------------------
    $my_small_arr = array();
    $my_small_arr['fee_code'] = 'extra_img';
    $my_small_arr['show_me'] = true;
    $my_small_arr['amount'] = $ProjectTheme_get_images_cost_extra;
    $my_small_arr['description'] = __('Extra Images Fee', 'ProjectTheme');
    array_push($payment_arr, $my_small_arr);
    //-------- Featured Project Check --------------------------
    $featured = get_post_meta($pid, 'featured', true);
    $featured_paid = get_post_meta($pid, 'featured_paid', true);
    $feat_charge = get_option('projectTheme_featured_fee');
    if ($featured == "1" && $featured_paid != "1" && $feat_charge > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to make project featured', 'ProjectTheme');
        $new_feature_arr[1] = $feat_charge;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'feat_fee';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $feat_charge;
        $my_small_arr['description'] = __('Featured Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //---------- Private Bids Check -----------------------------
    $private_bids = get_post_meta($pid, 'private_bids', true);
    $private_bids_paid = get_post_meta($pid, 'private_bids_paid', true);
    $projectTheme_sealed_bidding_fee = get_option('projectTheme_sealed_bidding_fee');
    if (!empty($projectTheme_sealed_bidding_fee)) {
        $opt = get_post_meta($pid, 'private_bids', true);
        if ($opt == "0") {
            $projectTheme_sealed_bidding_fee = 0;
        }
    }
    if ($private_bids == "1" && $private_bids_paid != "1" && $projectTheme_sealed_bidding_fee > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to add sealed bidding', 'ProjectTheme');
        $new_feature_arr[1] = $projectTheme_sealed_bidding_fee;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'sealed_project';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $projectTheme_sealed_bidding_fee;
        $my_small_arr['description'] = __('Sealed Bidding Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //---------- Hide Project Check -----------------------------
    $hide_project = get_post_meta($pid, 'hide_project', true);
    $hide_project_paid = get_post_meta($pid, 'hide_project_paid', true);
    $projectTheme_hide_project_fee = get_option('projectTheme_hide_project_fee');
    if (!empty($projectTheme_hide_project_fee)) {
        $opt = get_post_meta($pid, 'hide_project', true);
        if ($opt == "0") {
            $projectTheme_hide_project_fee = 0;
        }
    }
    if ($hide_project == "1" && $hide_project_paid != "1" && $projectTheme_hide_project_fee > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to hide project from search engines', 'ProjectTheme');
//.........这里部分代码省略.........
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:voguepay_listing.php

示例4: ProjectTheme_post_new_area_function


//.........这里部分代码省略.........
            if (is_array($MYerror)) {
                if ($projectOK == 0) {
                    echo '<div class="errrs">';
                    echo __('Your form has errors. Please check below, correct the errors, then submit again.', 'ProjectTheme');
                    echo '</div>';
                }
            }
            ?>
    
    
    
   
 	<ul class="post-new">
    
     

 
      <form method="post" > 
      <?php 
            do_action('ProjectTheme_step2_before_project_files');
            ?>
      
      
      
      
      
      	<?php 
            /*-------  custom fields  -------- */
            ?>
        <?php 
            $show_fields_in_step2 = true;
            $show_fields_in_step2 = apply_filters('ProjectTheme_show_fields_in_step2', $show_fields_in_step2);
            if ($show_fields_in_step2 == true) {
                $catid = ProjectTheme_get_project_primary_cat($pid);
                $arr = ProjectTheme_get_project_category_fields($catid, $pid);
                for ($i = 0; $i < count($arr); $i++) {
                    echo '<li class="' . projecttheme_get_post_new_error_thing('custom_field_' . $arr[$i]['id']) . '"  >';
                    echo projecttheme_get_post_new_error_thing_display('custom_field_' . $arr[$i]['id']);
                    echo '<h2>' . $arr[$i]['field_name'] . $arr[$i]['id'] . '</h2>';
                    echo '<p>' . $arr[$i]['value'] . '</p>';
                    echo '</li>';
                }
            }
            $ProjectTheme_enable_featured_option = get_option('ProjectTheme_enable_featured_option');
            if ($ProjectTheme_enable_featured_option != "no") {
                ?>
		
	 
      
      
        <li>
        <h2><?php 
                _e("Feature project?", 'ProjectTheme');
                ?>
</h2>
        <p><input type="checkbox" class="do_input_new" name="featured" value="1" 
		<?php 
                $feature = get_post_meta($pid, 'featured', true);
                echo $feature == "1" ? "checked='checked'" : "";
                ?>
 /> 
        <?php 
                $projectTheme_featured_fee = get_option('projectTheme_featured_fee');
                $sl = __('Extra fee is applied', 'ProjectTheme');
                if (empty($projectTheme_featured_fee) or $projectTheme_featured_fee <= 0) {
                    $sl = '';
开发者ID:roberto95117,项目名称:auction,代码行数:67,代码来源:post_new.php

示例5: ProjectTheme_qq_main_listing_submit_payment

function ProjectTheme_qq_main_listing_submit_payment()
{
    global $wp_query, $wpdb, $current_user;
    $pid = $wp_query->query_vars['pid'];
    get_currentuserinfo();
    $uid = $current_user->ID;
    $post = get_post($pid);
    $business = get_option('ProjectTheme_payfast_id');
    if (empty($business)) {
        die('ERROR. Please input your Payfast ID.');
    }
    //-------------------------------------------------------------------------
    $features_not_paid = array();
    $payment_arr = array();
    $base_fee_paid = get_post_meta($pid, 'base_fee_paid', true);
    $base_fee = get_option('projectTheme_base_fee');
    ///----custom fee check--------------
    $catid = ProjectTheme_get_project_primary_cat($pid);
    $ProjectTheme_get_images_cost_extra = ProjectTheme_get_images_cost_extra($pid);
    $custom_set = get_option('projectTheme_enable_custom_posting');
    if ($custom_set == 'yes') {
        $base_fee = get_option('projectTheme_theme_custom_cat_' . $catid);
        if (empty($base_fee)) {
            $base_fee = 0;
        }
    }
    //----------------------------------
    if ($base_fee_paid != "1" && $base_fee > 0) {
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost for base fee', 'ProjectTheme');
        $new_feature_arr[1] = $base_fee;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'base_fee';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $base_fee;
        $my_small_arr['description'] = __('Base Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //----------------------------------------------------------
    $my_small_arr = array();
    $my_small_arr['fee_code'] = 'extra_img';
    $my_small_arr['show_me'] = true;
    $my_small_arr['amount'] = $ProjectTheme_get_images_cost_extra;
    $my_small_arr['description'] = __('Extra Images Fee', 'ProjectTheme');
    array_push($payment_arr, $my_small_arr);
    //-------- Featured Project Check --------------------------
    $featured = get_post_meta($pid, 'featured', true);
    $featured_paid = get_post_meta($pid, 'featured_paid', true);
    $feat_charge = get_option('projectTheme_featured_fee');
    if ($featured == "1" && $featured_paid != "1" && $feat_charge > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to make project featured', 'ProjectTheme');
        $new_feature_arr[1] = $feat_charge;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'feat_fee';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $feat_charge;
        $my_small_arr['description'] = __('Featured Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //---------- Private Bids Check -----------------------------
    $private_bids = get_post_meta($pid, 'private_bids', true);
    $private_bids_paid = get_post_meta($pid, 'private_bids_paid', true);
    $projectTheme_sealed_bidding_fee = get_option('projectTheme_sealed_bidding_fee');
    if (!empty($projectTheme_sealed_bidding_fee)) {
        $opt = get_post_meta($pid, 'private_bids', true);
        if ($opt == "0") {
            $projectTheme_sealed_bidding_fee = 0;
        }
    }
    if ($private_bids == "1" && $private_bids_paid != "1" && $projectTheme_sealed_bidding_fee > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to add sealed bidding', 'ProjectTheme');
        $new_feature_arr[1] = $projectTheme_sealed_bidding_fee;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'sealed_project';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $projectTheme_sealed_bidding_fee;
        $my_small_arr['description'] = __('Sealed Bidding Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //---------- Hide Project Check -----------------------------
    $hide_project = get_post_meta($pid, 'hide_project', true);
    $hide_project_paid = get_post_meta($pid, 'hide_project_paid', true);
    $projectTheme_hide_project_fee = get_option('projectTheme_hide_project_fee');
    if (!empty($projectTheme_hide_project_fee)) {
        $opt = get_post_meta($pid, 'hide_project', true);
        if ($opt == "0") {
            $projectTheme_hide_project_fee = 0;
        }
    }
    if ($hide_project == "1" && $hide_project_paid != "1" && $projectTheme_hide_project_fee > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to hide project from search engines', 'ProjectTheme');
//.........这里部分代码省略.........
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:qq_listing.php

示例6: ProjectTheme_ruj_listing_payment

function ProjectTheme_ruj_listing_payment()
{
    global $wp_query, $wpdb, $current_user;
    $pid = $wp_query->query_vars['pid'];
    get_currentuserinfo();
    $uid = $current_user->ID;
    $post = get_post($pid);
    $business = get_option('ProjectTheme_ruj_id');
    if (empty($business)) {
        die('ERROR. Please input your transferuj ID.');
    }
    //-------------------------------------------------------------------------
    $features_not_paid = array();
    $payment_arr = array();
    $base_fee_paid = get_post_meta($pid, 'base_fee_paid', true);
    $base_fee = get_option('projectTheme_base_fee');
    ///----custom fee check--------------
    $catid = ProjectTheme_get_project_primary_cat($pid);
    $ProjectTheme_get_images_cost_extra = ProjectTheme_get_images_cost_extra($pid);
    $custom_set = get_option('projectTheme_enable_custom_posting');
    if ($custom_set == 'yes') {
        $base_fee = get_option('projectTheme_theme_custom_cat_' . $catid);
        if (empty($base_fee)) {
            $base_fee = 0;
        }
    }
    //----------------------------------
    if ($base_fee_paid != "1" && $base_fee > 0) {
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost for base fee', 'ProjectTheme');
        $new_feature_arr[1] = $base_fee;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'base_fee';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $base_fee;
        $my_small_arr['description'] = __('Base Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //----------------------------------------------------------
    $my_small_arr = array();
    $my_small_arr['fee_code'] = 'extra_img';
    $my_small_arr['show_me'] = true;
    $my_small_arr['amount'] = $ProjectTheme_get_images_cost_extra;
    $my_small_arr['description'] = __('Extra Images Fee', 'ProjectTheme');
    array_push($payment_arr, $my_small_arr);
    //-------- Featured Project Check --------------------------
    $featured = get_post_meta($pid, 'featured', true);
    $featured_paid = get_post_meta($pid, 'featured_paid', true);
    $feat_charge = get_option('projectTheme_featured_fee');
    if ($featured == "1" && $featured_paid != "1" && $feat_charge > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to make project featured', 'ProjectTheme');
        $new_feature_arr[1] = $feat_charge;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'feat_fee';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $feat_charge;
        $my_small_arr['description'] = __('Featured Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //---------- Private Bids Check -----------------------------
    $private_bids = get_post_meta($pid, 'private_bids', true);
    $private_bids_paid = get_post_meta($pid, 'private_bids_paid', true);
    $projectTheme_sealed_bidding_fee = get_option('projectTheme_sealed_bidding_fee');
    if (!empty($projectTheme_sealed_bidding_fee)) {
        $opt = get_post_meta($pid, 'private_bids', true);
        if ($opt == "0") {
            $projectTheme_sealed_bidding_fee = 0;
        }
    }
    if ($private_bids == "1" && $private_bids_paid != "1" && $projectTheme_sealed_bidding_fee > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to add sealed bidding', 'ProjectTheme');
        $new_feature_arr[1] = $projectTheme_sealed_bidding_fee;
        array_push($features_not_paid, $new_feature_arr);
        $my_small_arr = array();
        $my_small_arr['fee_code'] = 'sealed_project';
        $my_small_arr['show_me'] = true;
        $my_small_arr['amount'] = $projectTheme_sealed_bidding_fee;
        $my_small_arr['description'] = __('Sealed Bidding Fee', 'ProjectTheme');
        array_push($payment_arr, $my_small_arr);
    }
    //---------- Hide Project Check -----------------------------
    $hide_project = get_post_meta($pid, 'hide_project', true);
    $hide_project_paid = get_post_meta($pid, 'hide_project_paid', true);
    $projectTheme_hide_project_fee = get_option('projectTheme_hide_project_fee');
    if (!empty($projectTheme_hide_project_fee)) {
        $opt = get_post_meta($pid, 'hide_project', true);
        if ($opt == "0") {
            $projectTheme_hide_project_fee = 0;
        }
    }
    if ($hide_project == "1" && $hide_project_paid != "1" && $projectTheme_hide_project_fee > 0) {
        $not_OK_to_just_publish = 1;
        $new_feature_arr = array();
        $new_feature_arr[0] = __('Cost to hide project from search engines', 'ProjectTheme');
//.........这里部分代码省略.........
开发者ID:vicpril,项目名称:rep_bidqa,代码行数:101,代码来源:listing.php

示例7: ProjectTheme_post_new_area_function


//.........这里部分代码省略.........
                        }
                    }
                }
                ?>
    
    </div>
    
    <!--####################################### -->
    
    
    
	</p>
	</li>
	<?php 
            }
            ?>

      <form method="post" > 
      <?php 
            do_action('ProjectTheme_step2_before_project_files');
            ?>
      
      
      
      
      
      	  <?php 
            /*-------  custom fields  -------- */
            ?>
        <?php 
            $show_fields_in_step2 = true;
            $show_fields_in_step2 = apply_filters('ProjectTheme_show_fields_in_step2', $show_fields_in_step2);
            if ($show_fields_in_step2 == true) {
                $catid = ProjectTheme_get_project_primary_cat($pid);
                $arr = ProjectTheme_get_project_category_fields($catid, $pid);
                for ($i = 0; $i < count($arr); $i++) {
                    echo '<li>';
                    echo '<h2>' . $arr[$i]['field_name'] . $arr[$i]['id'] . ':</h2>';
                    echo '<p>' . $arr[$i]['value'] . '</p>';
                    echo '</li>';
                }
            }
            $ProjectTheme_enable_featured_option = get_option('ProjectTheme_enable_featured_option');
            if ($ProjectTheme_enable_featured_option != "no") {
                ?>
		
	 
      
      
        <li>
        <h2><?php 
                _e("Feature project?", 'ProjectTheme');
                ?>
:</h2>
        <p><input type="checkbox" class="do_input" name="featured" value="1" 
		<?php 
                $feature = get_post_meta($pid, 'featured', true);
                echo $feature == "1" ? "checked='checked'" : "";
                ?>
 /> 
        <?php 
                $projectTheme_featured_fee = get_option('projectTheme_featured_fee');
                $sl = __('Extra fee is applied', 'ProjectTheme');
                if (empty($projectTheme_featured_fee) or $projectTheme_featured_fee <= 0) {
                    $sl = '';
                }
开发者ID:juliosd,项目名称:legacy-master,代码行数:67,代码来源:post_new.php


注:本文中的ProjectTheme_get_project_primary_cat函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。