Пример #1
0
							</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');
    ?>
 <?php 
    cp_pos_price(cp_ad_dazake_premium_listing_free($_POST['cat']));
    ?>
</label>
							</div>
							<div class="clr"></div>
								<input type="radio" name="dazakepacks" value="premium" >
								<?php 
    _e("Your will allow to upload ", 'appthemes');
    echo get_option("dazake_category{$_POST['cat']}_pic_num");
    _e(" images ", 'appthemes');
    ?>
							<div class="clr"></div>
						</li>
						

						<li class="withborder">
Пример #2
0
     $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']);
 }
 // check to prevent "Notice: Undefined index:" on php strict error checking. get ad pack id and lookup length
 $adpackid = '';
 if (isset($_POST['ad_pack_id'])) {
     $adpackid = $_POST['ad_pack_id'];
     $postvals['pack_duration'] = cp_get_ad_pack_length($adpackid);