Beispiel #1
0
            <?php 
} elseif (!isset($_POST['stepadd'])) {
    // show the form based on the category selected
    // get the cat nice name and put it into a variable
    $adCategory = get_term_by('id', $_POST['cat'], APP_TAX_CAT);
    $_POST['catname'] = $adCategory->name;
    ?>
                <form name="mainform" id="mainform" class="form_step" action="" method="post" enctype="multipart/form-data">
                    <ul class = "dazakeul">
						<li class="withborder">
							<div class="labelwrapper">
							<label><?php 
    _e('Featured Listing', 'appthemes');
    ?>
 <?php 
    echo cp_pos_price(cp_ad_dazake_feature_listing_free($_POST['cat']));
    ?>
</label>
							</div>
							<div class="clr"></div>
								<input type="radio" name="dazakepacks" value="featured" >
								<?php 
    _e('Your listing will appear in the featured slider section at the top of the front page.', 'appthemes');
    ?>
							<div class="clr"></div>
						</li>
						
						<li class="withborder">
							<div class="labelwrapper">
							<label><?php 
    _e('Premium Listing', 'appthemes');
Beispiel #2
0
     $postvals['cp_price'] = appthemes_clean_price($_POST['cp_price']);
     $_POST['cp_price'] = $postvals['cp_price'];
 }
 // keep only values and insert/strip commas if needed
 if (!empty($_POST['tags_input'])) {
     $postvals['tags_input'] = appthemes_clean_tags($_POST['tags_input']);
     $_POST['tags_input'] = $postvals['tags_input'];
 }
 // store the user IP address, ID for later
 $postvals['cp_sys_userIP'] = appthemes_get_ip();
 $postvals['user_id'] = $current_user->ID;
 // see if the featured ad checkbox has been checked
 if (isset($_POST['dazakepacks']) && $_POST['dazakepacks'] == 'featured') {
     $postvals['featured_ad'] = True;
     // get the featured ad price into the array
     $postvals['cp_sys_feat_price'] = cp_ad_dazake_feature_listing_free($_POST['cat']);
 }
 // see if the dazake premium ad has been checked
 if (isset($_POST['dazakepacks']) && $_POST['dazakepacks'] == 'premium') {
     $postvals['premium_ad'] = $_POST['dazakepacks'];
     $postvals['cp_sys_premium_price'] = cp_ad_dazake_premium_listing_free($_POST['cat']);
 }
 // calculate the ad listing fee and put into a variable
 if (isset($_POST['ad_pack_id'])) {
     $post_ad_pack_id = $_POST['ad_pack_id'];
 } else {
     $post_ad_pack_id = '';
 }
 if (get_option('cp_charge_ads') == 'yes') {
     $postvals['cp_sys_ad_listing_fee'] = cp_ad_listing_fee($_POST['cat'], $post_ad_pack_id, $_POST['cp_price']);
 }