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


PHP bon_get_option函数代码示例

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


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

示例1: shandora_setup_car_dealer_post_type

 function shandora_setup_car_dealer_post_type()
 {
     global $bon;
     $prefix = bon_get_prefix();
     $suffix = SHANDORA_MB_SUFFIX;
     $cpt = $bon->cpt();
     $use_rewrite = bon_get_option('use_rewrite', 'no');
     $settings = array();
     $slug = '';
     $settings['rewrite_root'] = bon_get_option('rewrite_root');
     $settings['car_root'] = bon_get_option('car_root', 'car');
     $settings['car_manufacturer_root'] = bon_get_option('car_manufacturer_root', 'manufacturer');
     $settings['car_body_type_root'] = bon_get_option('car_body_type_root', 'body-type');
     $settings['car_dealer_location_root'] = bon_get_option('car_dealer_location_root', 'dealer-location');
     $settings['car_feature_root'] = bon_get_option('car_feature_root', 'feature');
     if (!empty($settings['rewrite_root'])) {
         $slug = "{$settings['rewrite_root']}/{$settings['car_root']}";
     } else {
         $slug = "{$settings['car_root']}";
     }
     $manufacturer_slug = "{$settings['car_root']}/{$settings['car_manufacturer_root']}";
     $body_type_slug = "{$settings['car_root']}/{$settings['car_body_type_root']}";
     $dealer_location_slug = "{$settings['car_root']}/{$settings['car_dealer_location_root']}";
     $feature_slug = "{$settings['car_root']}/{$settings['car_feature_root']}";
     $has_archive = $use_rewrite == 'no' ? false : $slug;
     $rewrite_var = array('slug' => $slug, 'with_front' => false, 'pages' => true, 'feeds' => true, 'ep_mask' => EP_PERMALINK);
     $rewrite = $use_rewrite == 'no' ? true : $rewrite_var;
     $name = __('Car Listing', 'bon');
     $plural = __('Car Listings', 'bon');
     $cpt->create('Car Listing', array('has_archive' => $has_archive, 'rewrite' => $rewrite, 'supports' => array('editor', 'title', 'excerpt', 'thumbnail', 'front-end-editor'), 'menu_position' => 8), array(), $name, $plural);
     $gallery_opts = array(array('label' => __('Listings Gallery', 'bon'), 'desc' => __('Choose image to use in this listing gallery.', 'bon'), 'id' => $prefix . $suffix . 'gallery', 'type' => 'gallery'));
     $prop_options = array(array('label' => __('Reg Number', 'bon'), 'desc' => __('The Car Registry Number #', 'bon'), 'id' => $prefix . $suffix . 'reg', 'type' => 'text'), array('label' => __('Badge', 'bon'), 'desc' => __('badge text to show in listings view', 'bon'), 'id' => $prefix . $suffix . 'badge', 'type' => 'text'), array('label' => __('Badge color', 'bon'), 'desc' => __('badge text to show in listings view', 'bon'), 'id' => $prefix . $suffix . 'badge_color', 'type' => 'select', 'options' => array('none' => __('None', 'bon'), 'badge-red' => __('Red', 'bon'), 'badge-orange' => __('Orange', 'bon'), 'badge-green' => __('Green', 'bon'), 'badge-blue' => __('Blue', 'bon'), 'badge-purple' => __('Purple', 'bon'), 'badge-gray' => __('Gray', 'bon'))), array('label' => __('Car Status', 'bon'), 'desc' => __('Car sale status', 'bon'), 'id' => $prefix . $suffix . 'status', 'type' => 'select', 'options' => shandora_get_car_search_option('status')), array('label' => __('Mileage', 'bon'), 'desc' => __('Car mileage', 'bon'), 'id' => $prefix . $suffix . 'mileage', 'type' => 'text'), array('label' => __('Exterior Color', 'bon'), 'desc' => __('Car exterior color', 'bon'), 'id' => $prefix . $suffix . 'extcolor', 'type' => 'text'), array('label' => __('Interior Color', 'bon'), 'desc' => __('Car interior color', 'bon'), 'id' => $prefix . $suffix . 'intcolor', 'type' => 'text'), array('label' => __('Fuel Type', 'bon'), 'desc' => __('Car fuel type', 'bon'), 'id' => $prefix . $suffix . 'fueltype', 'type' => 'select', 'options' => shandora_get_car_search_option('fuel')), array('label' => __('Transmission', 'bon'), 'desc' => __('Car transmission', 'bon'), 'id' => $prefix . $suffix . 'transmission', 'type' => 'select', 'options' => shandora_get_car_search_option('transmission')), array('label' => __('Price', 'bon'), 'desc' => __('The Car Price. Fill with numeric only, eq: 123456', 'bon'), 'id' => $prefix . $suffix . 'price', 'type' => 'text'), array('label' => __('Secondary Price', 'bon'), 'desc' => __('The Car Secondary Price eq. price without Tax. Fill with numeric only, eq: 123456', 'bon'), 'id' => $prefix . $suffix . 'price_sec', 'type' => 'text'), array('label' => __('Price as Text', 'bon'), 'desc' => __('Set price to use text. Text Options can be filled in theme Options, Shandora > Listing Settings > Price as Text.', 'bon'), 'id' => $prefix . $suffix . 'pricetext', 'type' => 'checkbox'), array('label' => __('Engine Type', 'bon'), 'desc' => __('Car engine type', 'bon'), 'id' => $prefix . $suffix . 'enginetype', 'type' => 'text'), array('label' => __('Engine Size', 'bon'), 'desc' => __('Car engine size', 'bon'), 'id' => $prefix . $suffix . 'enginesize', 'type' => 'text'), array('label' => __('Overall Height', 'bon'), 'desc' => __('The overall car height', 'bon'), 'id' => $prefix . $suffix . 'height', 'type' => 'text'), array('label' => __('Overall Width', 'bon'), 'desc' => __('The overall car width', 'bon'), 'id' => $prefix . $suffix . 'width', 'type' => 'text'), array('label' => __('Overall Length', 'bon'), 'desc' => __('The overall car length', 'bon'), 'id' => $prefix . $suffix . 'length', 'type' => 'text'), array('label' => __('Wheelbase', 'bon'), 'desc' => __('The wheelbase size', 'bon'), 'id' => $prefix . $suffix . 'wheelbase', 'type' => 'text'), array('label' => __('Track Front', 'bon'), 'desc' => __('The track front size', 'bon'), 'id' => $prefix . $suffix . 'trackfront', 'type' => 'text'), array('label' => __('Track Rear', 'bon'), 'desc' => __('The track front size', 'bon'), 'id' => $prefix . $suffix . 'trackrear', 'type' => 'text'), array('label' => __('Ground Clearance', 'bon'), 'desc' => __('The ground clearance size', 'bon'), 'id' => $prefix . $suffix . 'ground', 'type' => 'text'), array('label' => __('Standard Seating', 'bon'), 'desc' => __('How many standard seating available', 'bon'), 'id' => $prefix . $suffix . 'seating', 'type' => 'text'), array('label' => __('Steering Type', 'bon'), 'desc' => __('The car steering type', 'bon'), 'id' => $prefix . $suffix . 'steering', 'type' => 'text'), array('label' => __('ANCAP Rating / Safety Rating', 'bon'), 'desc' => __('Australasian New Car Assessment Program Rating. see http://ancap.com.au', 'bon'), 'id' => $prefix . $suffix . 'ancap', 'type' => 'slider', 'step' => '1', 'min' => '0', 'max' => '5'), array('label' => __('Year Built', 'bon'), 'desc' => __('When is the car year build? eq: 2013', 'bon'), 'id' => $prefix . $suffix . 'yearbuild', 'type' => 'text'), array('label' => __('Featured Car', 'bon'), 'desc' => __('Make the listing featured for featured listing widget', 'bon'), 'id' => $prefix . $suffix . 'featured', 'type' => 'checkbox'), array('label' => __('Sales Representative for this listing', 'bon'), 'desc' => __('The sales rep pointed for this car listing', 'bon'), 'id' => $prefix . $suffix . 'agentpointed', 'type' => 'old_post_select', 'post_type' => 'sales-representative'));
     /* The rewrite handles the URL structure. */
     $manufacturer_rewrite_var = array('slug' => $manufacturer_slug, 'with_front' => false, 'hierarchical' => true, 'ep_mask' => EP_NONE);
     /* The rewrite handles the URL structure. */
     $body_type_rewrite_var = array('slug' => $body_type_slug, 'with_front' => false, 'hierarchical' => false, 'ep_mask' => EP_NONE);
     /* The rewrite handles the URL structure. */
     $dealer_location_rewrite_var = array('slug' => $dealer_location_slug, 'with_front' => false, 'hierarchical' => true, 'ep_mask' => EP_NONE);
     /* The rewrite handles the URL structure. */
     $feature_rewrite_var = array('slug' => $feature_slug, 'with_front' => false, 'hierarchical' => false, 'ep_mask' => EP_NONE);
     if ($use_rewrite == 'no') {
         $feature_rewrite = true;
         $dealer_location_rewrite = true;
         $body_type_rewrite = true;
         $manufacturer_rewrite = true;
     } else {
         $feature_rewrite = $feature_rewrite_var;
         $dealer_location_rewrite = $dealer_location_rewrite_var;
         $body_type_rewrite = $body_type_rewrite_var;
         $manufacturer_rewrite = $manufacturer_rewrite_var;
     }
     $cpt->add_taxonomy("Manufacturer", array('rewrite' => $manufacturer_rewrite, 'label' => __('Manufacturers', 'bon'), 'labels' => array('menu_name' => __('Manufacturers', 'bon')), 'hierarchical' => true));
     $cpt->add_taxonomy("Body Type", array('rewrite' => $body_type_rewrite, 'label' => __('Body Types', 'bon'), 'labels' => array('menu_name' => __('Body Types', 'bon')), 'hierarchical' => true));
     $cpt->add_taxonomy("Dealer Location", array('rewrite' => $dealer_location_rewrite, 'label' => __('Dealer Locations', 'bon'), 'labels' => array('menu_name' => __('Dealer Locations', 'bon')), 'hierarchical' => true));
     $cpt->add_taxonomy("Car Feature", array('rewrite' => $feature_rewrite, 'label' => __('Car Features', 'bon'), 'labels' => array('menu_name' => __('Features', 'bon'))));
     $cpt->add_meta_box('gallery-options', __('Gallery Options', 'bon'), $gallery_opts);
     $cpt->add_meta_box('car-options', __('Detail Options', 'bon'), $prop_options);
     $cpt->add_meta_box('video-options', __('Video Options', 'bon'), shandora_video_metabox_args());
 }
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:59,代码来源:car.php

示例2: shandora_print_tracking_code

    function shandora_print_tracking_code()
    {
        $scripts = bon_get_option('google_analytics');
        if (!empty($scripts)) {
            ?>
			
				<?php 
            echo $scripts;
            ?>


			<?php 
        }
    }
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:14,代码来源:theme-head.php

示例3: register_options_key

 /**
  * Register available menu option fields to the wp menu backend
  * 
  *
  * @access public
  * @since 1.0 
  * @return void
  */
 function register_options_key()
 {
     global $wp_registered_sidebars;
     $widget_options = array('' => __('Select One', 'bon'));
     $sidebars_opt = bon_get_option('sidebars_generator');
     if (!empty($sidebars_opt) && is_array($sidebars_opt)) {
         foreach ($sidebars_opt as $sidebar) {
             if (!empty($sidebar['sidebar_name']) && isset($sidebar['is_menu'])) {
                 $id = strtolower(str_replace(" ", "-", $sidebar['sidebar_name']));
                 // Check whether sidebar already registered or not
                 if (array_key_exists($id, $wp_registered_sidebars)) {
                     $widget_options[$id] = $sidebar['sidebar_name'];
                 }
             }
         }
     }
     $this->default_keys = array('separator' => array('id' => 'separator', 'level' => '1-plus', 'desc' => __('Turn this menu into a separator, any options will be ignored, unless there is a custom content / widget had been set', 'bon'), 'label' => __('Use As Divider', 'bon'), 'type' => 'checkbox', 'std' => 0), 'ismega' => array('id' => 'ismega', 'level' => '0', 'desc' => __('Make this item\'s submenu a mega menu. Leave unchecked to use a normal menu. Note: if the menu location doesn\'t supporting mega menu this setting will be ignored.', 'bon'), 'label' => __('Activate Mega Menu', 'bon'), 'type' => 'checkbox', 'std' => 1), 'fullwidth' => array('id' => 'fullwidth', 'level' => '0', 'desc' => __('Set the submenu to take full width of the menu bar', 'bon'), 'label' => __('Full Width Submenu', 'bon'), 'type' => 'checkbox', 'std' => 0), 'notext' => array('id' => 'notext', 'level' => '0-plus', 'desc' => __('Remove the text/label from the menu item, very useful for image only menu.', 'bon'), 'label' => __('Disable Text', 'bon'), 'type' => 'checkbox', 'std' => 0), 'nolink' => array('id' => 'nolink', 'level' => '0-plus', 'desc' => __('Remove link from this menu item, Can be useful when using widget or content.', 'bon'), 'label' => __('Disable Link', 'bon'), 'type' => 'checkbox', 'std' => 0), 'newrow' => array('id' => 'newrow', 'level' => '1', 'desc' => __('Start a new row with this item. Always check this for the first item in your new row. Do not check this on fullwidth with defined number of column', 'bon'), 'label' => __('New Row', 'bon'), 'type' => 'checkbox', 'std' => 0), 'align' => array('id' => 'align', 'level' => '0-plus', 'desc' => __('Set the label alignment.', 'bon'), 'label' => __('Alignment', 'bon'), 'type' => 'select', 'std' => '', 'options' => array('left' => __('Left', 'bon'), 'center' => __('Center', 'bon'), 'right' => __('Right', 'bon'))), 'trigger' => array('id' => 'trigger', 'level' => '0-plus', 'desc' => __('Set which action will trigger submenu display. Note: <strong>On click</strong> will prevent the link (if exists) to trigger.', 'bon'), 'label' => __('Event Trigger', 'bon'), 'type' => 'select', 'options' => array('hover' => __('On Hover', 'bon'), 'click' => __('On Click', 'bon')), 'std' => 'hover'), 'numcols' => array('id' => 'numcols', 'level' => '0', 'desc' => __('Set number or column to be calculated for each row. Only work if Full Width Submenu is checked', 'bon'), 'label' => __('Submenu Column (Full Width Only)', 'bon'), 'type' => 'select', 'options' => array('auto' => __('Auto', 'bon'), '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8'), 'std' => 'auto'), 'icon' => array('id' => 'icon', 'level' => '0-plus', 'label' => __('Use Icon', 'bon'), 'desc' => __('Set a predefined icon from icon lists.', 'bon'), 'type' => 'icon', 'std' => ''), 'iconsize' => array('id' => 'iconsize', 'level' => '0-plus', 'label' => __('Icon Size', 'bon'), 'desc' => __('Set the icon size.', 'bon'), 'type' => 'select', 'std' => '1x', 'options' => array('tiny' => '1/2x', 'sml' => '3/4x', '1x' => '1x', '2x' => '2x', '3x' => '3x', '4x' => '4x', '5x' => '5x', '6x' => '6x', '7x' => '7x', '8x' => '8x', '9x' => '9x', '10x' => '10x')), 'thumbnail' => array('id' => 'thumbnail', 'level' => '0-plus', 'desc' => __('Set a thumbnail/image to be displayed.', 'bon'), 'label' => __('Set Thumbnail', 'bon'), 'type' => 'upload', 'std' => ''), 'thumbpos' => array('id' => 'thumbpos', 'level' => '0-plus', 'desc' => __('Set the thumbnail/icon position.', 'bon'), 'label' => __('Thumbnail/Icon Position', 'bon'), 'type' => 'select', 'std' => '', 'options' => array('left' => __('Before Text', 'bon'), 'top' => __('Above Text', 'bon'), 'bottom' => __('Below Text', 'bon'), 'right' => __('After Text', 'bon'))), 'widget' => array('id' => 'widget', 'level' => '1-plus', 'desc' => __('Choose a widget slot to display widget based content.', 'bon'), 'label' => __('Select Sidebar', 'bon'), 'type' => 'select', 'options' => $widget_options, 'std' => ''), 'widgetcol' => array('id' => 'widgetcol', 'level' => '1-plus', 'desc' => __('Select the widget column.', 'bon'), 'label' => __('Widget Column', 'bon'), 'type' => 'select', 'options' => array('auto' => __('Auto (Depend on widget length)', 'bon'), 'parent' => __('Same as parent', 'bon'), '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10', '11' => '11', '12' => '12'), 'std' => ''), 'content' => array('id' => 'content', 'level' => '1-plus', 'desc' => __('Display a custom content. Input accept shortcodes and allowed html tags.', 'bon'), 'label' => __('Custom Content', 'bon'), 'type' => 'editor', 'std' => ''));
     $this->default_keys = apply_filters('bon_nav_menu_option_key_defaults', $this->default_keys);
 }
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:27,代码来源:class-bon-advanced-menu.php

示例4: __construct

 function __construct()
 {
     add_action('template_redirect', array($this, 'save_account_details'));
     add_action('bon_before_login_form', array($this, 'process_login'));
     add_action('bon_before_login_form', array($this, 'process_registration'));
     add_action('bon_before_lost_password_form', array($this, 'process_reset_password'));
     add_action('bon_before_login_form', 'bon_show_error');
     add_action('bon_before_lost_password_form', 'bon_show_error');
     add_action('bon_before_edit_account_form', 'bon_show_error');
     add_action('bon_before_account', 'bon_show_error');
     add_filter('bon_shortcode_lists', array($this, 'shortcode_filter'));
     add_filter('user_contactmethods', array($this, 'filter_contact_method'));
     add_filter('comments_open', array($this, 'remove_comments'), 10, 2);
     add_filter('pings_open', array($this, 'remove_comments'), 10, 2);
     $this->my_account_page_id = apply_filters('bon_my_account_page_id', bon_get_option('my_account_page', ''));
     add_action('init', array($this, 'add_endpoints'));
     if (!is_admin()) {
         add_filter('query_vars', array($this, 'add_query_vars'), 0);
         add_action('parse_request', array($this, 'parse_request'), 0);
     }
     $this->init_query_vars();
 }
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:22,代码来源:class-bon-accounts.php

示例5: bon_set_theme_options

 function bon_set_theme_options()
 {
     //Stylesheets Reader
     $alt_stylesheet_path = get_template_directory() . '/assets/css/colors/';
     $alt_stylesheets = array();
     if (is_dir($alt_stylesheet_path)) {
         if ($alt_stylesheet_dir = opendir($alt_stylesheet_path)) {
             while (($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false) {
                 if (stristr($alt_stylesheet_file, '.css') !== false) {
                     $stylesheet = str_replace('.css', '', $alt_stylesheet_file);
                     $alt_stylesheets[$stylesheet] = trailingslashit(BON_THEME_URI) . 'assets/images/colors/' . $stylesheet . '.png';
                 }
             }
         }
     }
     $color_options = apply_filters('bon_color_options', array('blue' => __('Blue', 'bon'), 'red' => __('Red', 'bon'), 'green' => __('Green', 'bon'), 'orange' => __('Orange', 'bon'), 'purple' => __('Purple', 'bon')));
     $search_fields = apply_filters('bon_search_field_options', array('none' => __('Disable', 'bon'), 'title' => __('Post Title Field (Real Estate / Car Dealer)', 'bon'), 'mls' => __('MLS Text Field', 'bon'), 'zip' => __('Zip Text Field', 'bon'), 'status' => __('Status Dropdown', 'bon'), 'location' => __('Location Dropdown', 'bon'), 'location_level1' => __('Level 1 Location Only', 'bon'), 'location_level2' => __('Level 2 Location Only', 'bon'), 'location_level3' => __('Level 3 Location Only', 'bon'), 'feature' => __('Feature Dropdown', 'bon'), 'lotsize' => __('Lot Size Slider', 'bon'), 'buildingsize' => __('Building Size Slider', 'bon'), 'floor' => __('Floor Slider', 'bon'), 'agent' => __('Agent Dropdown', 'bon'), 'garage' => __('Garage Slider', 'bon'), 'basement' => __('Basement Slider', 'bon'), 'mortgage' => __('Mortgage Availability Dropdown', 'bon'), 'type' => __('Property Type Dropdown', 'bon'), 'price' => __('Price Range Slider', 'bon'), 'bed' => __('Beds Slider', 'bon'), 'bath' => __('Baths Slider', 'bon'), 'room' => __('Total Room Slider', 'bon')));
     $car_search_fields = apply_filters('bon_car_search_field_options', array('reg' => __('Reg Number Field **Car Listing**', 'bon'), 'car_status' => __('Car Status Dropdown **Car Listing**', 'bon'), 'mileage' => __('Mileage Slider **Car Listing**', 'bon'), 'exterior_color' => __('Exterior Color Field **Car Listing**', 'bon'), 'interior_color' => __('Interior Color Field **Car Listing**', 'bon'), 'fuel_type' => __('Fuel Type Field **Car Listing**', 'bon'), 'transmission' => __('Transmission Dropdown **Car Listing**', 'bon'), 'car_price' => __('Price Range Slider **Car Listing**', 'bon'), 'ancap' => __('ANCAP or Safety Slider **Car Listing**', 'bon'), 'dealer_location' => __('Dealer Location Dropdown **Car Listing**', 'bon'), 'car_feature' => __('Car Feature Dropdown **Car Listing**', 'bon'), 'body_type' => __('Body Type Dropdown **Car Listing**', 'bon'), 'manufacturer' => __('Manufacturer Dropdown **Car Listing**', 'bon'), 'manufacturer_level1' => __('Manufacturer Dropdown Level 1 **Car Listing**', 'bon'), 'manufacturer_level2' => __('Manufacturer Dropdown Level 2 **Car Listing**', 'bon'), 'manufacturer_level3' => __('Manufacturer Dropdown Level 3 **Car Listing**', 'bon'), 'dealer_location_level1' => __('Level 1 Dealer Location Only **Car Listing**', 'bon'), 'dealer_location_level2' => __('Level 2 Dealer Location Only **Car Listing**', 'bon'), 'dealer_location_level3' => __('Level 3 Dealer Location Only **Car Listing**', 'bon'), 'yearbuilt' => __('Year Built', 'bon')));
     $boat_search_fields = apply_filters('bon_boat_search_field_options', array('boat_reg' => __('Boat Reg Number Field', 'bon'), 'boat_status' => __('Boat Condition Dropdown', 'bon'), 'boat_make' => __('Boat Make', 'bon'), 'boat_model' => __('Boat Model', 'bon'), 'boat_submodel' => __('Boat Sub Model', 'bon'), 'boat_engine_make' => __('Boat Engine Make', 'bon'), 'boat_engine_model' => __('Boat Engine Model', 'bon'), 'boat_engine_submodel' => __('Boat Engine Sub Model', 'bon'), 'boat_location' => __('Boat Dealer Location Dropdown ', 'bon'), 'boat_location_level1' => __('Boat Level 1 Dealer Location Only ', 'bon'), 'boat_location_level2' => __('Boat Level 2 Dealer Location Only ', 'bon'), 'boat_location_level3' => __('Boat Level 3 Dealer Location Only ', 'bon'), 'boat_feature' => __('Boat Boat Feature Dropdown', 'bon'), 'boat_yearbuilt' => __('Boat Year Built', 'bon'), 'boat_hull' => __('Boat Hull Material', 'bon'), 'boat_fuel' => __('Boat Fuel Type', 'bon'), 'boat_price' => __('Boat Price Range Slider', 'bon')));
     $orderby_options = apply_filters('bon_orderby_options', array('date' => __('Date', 'bon'), 'price' => __('Price', 'bon'), 'title' => __('Title', 'bon'), 'buildingsize' => __('Size', 'bon')));
     $order_options = array('ASC' => __('Ascending', 'bon'), 'DESC' => __('Descending', 'bon'));
     if (bon_get_option('enable_car_listing') == 'yes') {
         $search_fields = array_merge($search_fields, $car_search_fields);
     }
     if (bon_get_option('enable_boat_listing') == 'yes') {
         $search_fields = array_merge($search_fields, $boat_search_fields);
     }
     $layouts = get_theme_support('theme-layouts');
     $args = theme_layouts_get_args();
     /* Set up an array for the layout choices and add in the 'default' layout. */
     $layout_choices = array();
     /* Only add 'default' if it's the actual default layout. */
     if ('default' == $args['default']) {
         $layout_choices['default'] = theme_layouts_get_string('default');
     }
     /* Loop through each of the layouts and add it to the choices array with proper key/value pairs. */
     foreach ($layouts[0] as $layout) {
         $layout_choices[$layout] = theme_layouts_get_image_string($layout);
         if ($layout != '1c') {
             $layout_choices_2[$layout] = theme_layouts_get_image_string($layout);
         }
     }
     // More Options
     $slide_options = array();
     $total_possible_slides = 10;
     for ($i = 1; $i <= $total_possible_slides; $i++) {
         $slide_options[] = $i;
     }
     // Setup an array of numbers.
     $numbers = array();
     for ($i = 1; $i <= 20; $i++) {
         $numbers[$i] = $i;
     }
     $options = array();
     /* General */
     $options[] = array('slug' => 'bon_options', 'label' => __('General Settings', 'bon'), 'type' => 'heading', 'icon' => 'dashicons-admin-generic');
     $options[] = array('slug' => 'bon_options', 'label' => __('Quick Start', 'bon'), 'type' => 'subheading');
     $options[] = array('slug' => 'bon_options', 'label' => __('Custom Logo', 'bon'), 'desc' => __('Upload a logo for your theme, or specify an image URL directly. The best size is <strong>270x80 px</strong>', 'bon'), 'id' => 'logo', 'std' => '', 'type' => 'upload');
     $options[] = array('slug' => 'bon_options', 'label' => __('Custom Favicon', 'bon'), 'desc' => __('Upload a Favicon', 'bon'), 'id' => 'favicon', 'std' => '', 'type' => 'upload');
     $options[] = array('slug' => 'bon_options', 'label' => __('Slider Posts Limit', 'bon'), 'desc' => __('How many slideshow to show?', 'bon'), 'id' => 'slider_post_per_page', 'std' => '', 'type' => 'text');
     $options[] = array('slug' => 'bon_options', 'label' => __('Slider Interval', 'bon'), 'desc' => __('Slideshow Interval for each auto slide', 'bon'), 'id' => 'slider_interval', 'type' => 'text');
     $options[] = array('slug' => 'bon_options', 'label' => __('Show BreadCrumb', 'bon'), 'desc' => __('Show or hide breadcrumb page header', 'bon'), 'id' => 'show_page_header', 'std' => 'show', 'options' => array('show' => __('Show', 'bon'), 'hide' => __('Hide', 'bon')), 'type' => 'select');
     $options[] = array('slug' => 'bon_options', 'label' => __('Show Previous / Next link on pages', 'bon'), 'desc' => __('If enabled the it will show previous and next link on the page', 'bon'), 'id' => 'show_previous_next', 'type' => 'select', 'options' => array('no' => __('Show', 'bon'), 'yes' => __('Hide', 'bon')));
     $options[] = array('slug' => 'bon_options', 'label' => __('Show Image Slider in Home', 'bon'), 'desc' => __('Show or hide image slider in home page template', 'bon'), 'id' => 'show_slider', 'std' => 'show', 'options' => array('show' => __('Show', 'bon'), 'hide' => __('Hide', 'bon')), 'type' => 'select');
     $options[] = array('slug' => 'bon_options', 'label' => __('Tracking Code', 'bon'), 'desc' => __('Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.', 'bon'), 'id' => 'google_analytics', 'std' => '', 'class' => 'code_mirror', 'type' => 'textarea');
     $options[] = array('slug' => 'bon_options', 'label' => __('Display Options', 'bon'), 'type' => 'subheading');
     $options[] = array('slug' => 'bon_options', 'label' => __('Custom CSS', 'bon'), 'desc' => __('Quickly add some CSS to your theme by adding it to this block. Do not use &lt;style&gt; tag', 'bon'), 'id' => 'custom_css', 'std' => '', 'class' => 'code_mirror', 'type' => 'textarea');
     $options[] = array('slug' => 'bon_options', 'label' => __('Custom JS', 'bon'), 'desc' => __('Quickly add some Javascript to your theme by adding it to this block. Do not use &lt;script&gt; tag ', 'bon'), 'id' => 'custom_js', 'std' => '', 'class' => 'code_mirror', 'type' => 'textarea');
     /**
      * =====================================================================================================
      *
      * Header Settings
      * 
      * @category Header
      *
      * ======================================================================================================
      */
     $options[] = array('slug' => 'bon_options', 'label' => __('Header Settings', 'bon'), 'type' => 'heading', 'icon' => 'dashicons-schedule');
     $options[] = array('slug' => 'bon_options', 'label' => __('Show Top Menu', 'bon'), 'desc' => __('Show or hide the top menu navigation', 'bon'), 'id' => 'show_top_menu', 'std' => 'show', 'options' => array('show' => __('Show', 'bon'), 'hide' => __('Hide', 'bon')), 'type' => 'select');
     $options[] = array('slug' => 'bon_options', 'label' => '', 'desc' => '', 'std' => __('This section will handle the columns in the header, the area beside logo. The "Phone Number" Group and the "Address Group"', 'bon'), 'type' => 'info');
     $options[] = array('slug' => 'bon_options', 'label' => sprintf(__('Show Header Col 1', 'bon'), $i), 'desc' => __('Enable the the heder column 1', 'bon'), 'id' => 'enable_header_col_1', 'std' => 1, 'class' => 'collapsed', 'type' => 'checkbox');
     $options[] = array('slug' => 'bon_options', 'label' => __('Header Column 1 Title', 'bon'), 'desc' => __('The title for header group 1. eq. <strong>Need help from us? Feel free to call us</strong>', 'bon'), 'id' => 'hgroup1_title', 'std' => '', 'class' => 'hidden', 'type' => 'text');
     $options[] = array('slug' => 'bon_options', 'label' => __('Phone Number', 'bon'), 'desc' => __('The phone number eq. <strong>123-456-789-01</strong>. Separate number by commas (,) if you have more than 1 number. Maximum supported phone number is 3', 'bon'), 'id' => 'hgroup1_content', 'std' => '', 'class' => 'hidden last', 'type' => 'text');
     $options[] = array('slug' => 'bon_options', 'label' => sprintf(__('Show Header Col 2', 'bon'), $i), 'desc' => __('Enable the the heder column 2', 'bon'), 'id' => 'enable_header_col_2', 'std' => 1, 'class' => 'collapsed', 'type' => 'checkbox');
     $options[] = array('slug' => 'bon_options', 'label' => __('Header Column 2 Title', 'bon'), 'desc' => __('The title for header group 2. eq. <strong>Want to Meet & Talk Directly? Find us here</strong>', 'bon'), 'id' => 'hgroup2_title', 'std' => '', 'class' => 'hidden', 'type' => 'text');
     $options[] = array('slug' => 'bon_options', 'label' => __('Address', 'bon'), 'desc' => __('The address eq. <strong>999 Folsom Avenue, Suite 1111 - Los Angeles, CA</strong>', 'bon'), 'id' => 'hgroup2_line1', 'std' => '', 'class' => 'hidden', 'type' => 'text');
     $options[] = array('slug' => 'bon_options', 'label' => __('Opening Hours', 'bon'), 'desc' => __('The opening hour eq. <strong>Monday - Saturday (9AM - 5PM)</strong>', 'bon'), 'id' => 'hgroup2_line2', 'std' => '', 'class' => 'hidden last', 'type' => 'text');
     $options[] = array('slug' => 'bon_options', 'label' => sprintf(__('Centering Logo', 'bon'), $i), 'desc' => __('Centering the logo if both the header column is disabled.', 'bon'), 'id' => 'centering_logo', 'std' => 0, 'type' => 'checkbox');
     $options[] = array('slug' => 'bon_options', 'label' => __('Show Header Search Field', 'bon'), 'desc' => __('Show the search field in the header / menu.', 'bon'), 'id' => 'show_header_search', 'std' => 'yes', 'options' => array('yes' => __('Yes', 'bon'), 'no' => __('No', 'bon')), 'type' => 'select');
     $options[] = array('slug' => 'bon_options', 'label' => __('Header Default State', 'bon'), 'desc' => __('Set the header default state to hide or show the main header. Note: this setting will be overriden by cookie setting if header already toggled.', 'bon'), 'id' => 'show_main_header', 'options' => array('show' => __('Show', 'bon'), 'hide' => __('Hide', 'bon')), 'type' => 'select');
     /**
      * =====================================================================================================
      *
      * Color Settings
      * 
      * @category Color
      *
      * ======================================================================================================
      */
     $options[] = array('slug' => 'bon_options', 'label' => __('Color Settings', 'bon'), 'type' => 'heading', 'icon' => 'dashicons-admin-appearance');
//.........这里部分代码省略.........
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:101,代码来源:theme-options.php

示例6: widget

    function widget($args, $instance)
    {
        extract($args);
        extract($instance);
        $title = apply_filters("widget_title", $title);
        $options = get_option(DSIDXPRESS_OPTION_NAME);
        if (!$options["Activated"]) {
            return;
        }
        $pluginUrl = plugins_url() . '/dsidxpress/';
        wp_enqueue_script('dsidxpress_widget_search_view', $pluginUrl . 'js/widget-client.js', array('jquery'), DSIDXPRESS_PLUGIN_VERSION, true);
        $formAction = get_home_url() . "/idx/";
        $defaultSearchPanels = dsSearchAgent_ApiRequest::FetchData("AccountSearchPanelsDefault", array(), false, 60 * 60 * 24);
        $defaultSearchPanels = $defaultSearchPanels["response"]["code"] == "200" ? json_decode($defaultSearchPanels["body"]) : null;
        $propertyTypes = dsSearchAgent_ApiRequest::FetchData("AccountSearchSetupFilteredPropertyTypes", array(), false, 60 * 60 * 24);
        $propertyTypes = $propertyTypes["response"]["code"] == "200" ? json_decode($propertyTypes["body"]) : null;
        $account_options = dsSearchAgent_ApiRequest::FetchData("AccountOptions", array(), false);
        $account_options = $account_options["response"]["code"] == "200" ? json_decode($account_options["body"]) : null;
        $num_location_dropdowns = 0;
        $autoload_options = bon_get_option('idx_enable_search_autoload', 'yes');
        if ($searchOptions["show_cities"] == "yes" || !isset($instance["searchOptions"]["show_cities"])) {
            $num_location_dropdowns++;
        }
        if ($searchOptions["show_cities"] == "yes") {
            if ($autoload_options == 'no') {
                $manual_city = explode("\n", trim(bon_get_option('idx_manual_city')));
                sort($manual_city);
                $searchOptions['cities'] = $manual_city;
            } else {
                $searchOptions['cities'] = shandora_get_idx_options('City', true);
            }
        }
        if ($searchOptions["show_communities"] == "yes") {
            $num_location_dropdowns++;
            if ($autoload_options == 'no') {
                $manual_community = explode("\n", trim(bon_get_option('idx_manual_community')));
                sort($manual_community);
                $searchOptions['communities'] = $manual_community;
            } else {
                $searchOptions['communities'] = shandora_get_idx_options('Community', true);
            }
        }
        if ($searchOptions["show_tracts"] == "yes") {
            $num_location_dropdowns++;
            if ($autoload_options == 'no') {
                $manual_tract = explode("\n", trim(bon_get_option('idx_manual_tract')));
                sort($manual_tract);
                $searchOptions['tracts'] = $manual_tract;
            } else {
                $searchOptions['tracts'] = shandora_get_idx_options('Tract', true);
            }
        }
        if ($searchOptions["show_zips"] == "yes") {
            $num_location_dropdowns++;
            if ($autoload_options == 'no') {
                $manual_zip = explode("\n", trim(bon_get_option('idx_manual_zip')));
                sort($manual_zip);
                $searchOptions['zips'] = $manual_zip;
            } else {
                $searchOptions['zips'] = shandora_get_idx_options('Zip', true);
            }
        }
        if ($searchOptions["show_mlsnumber"] == "yes") {
            $num_location_dropdowns++;
        }
        echo $before_widget;
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
			<div class="dsidx-search-widget dsidx-widget search-listing">
			<form action="<?php 
        echo $formAction;
        ?>
" method="get" class="custom" onsubmit="return dsidx_w.searchWidget.validate();" >
				<div class="fieldset">
				<label for="idx-q-PropertyTypes"><?php 
        _e('Property Type', 'bon');
        ?>
</label>
				<select name="idx-q-PropertyTypes" class="dsidx-search-widget-propertyTypes">
								<option value=""><?php 
        _e('All Property Types', 'bon');
        ?>
</option>

		<?php 
        if (is_array($propertyTypes)) {
            foreach ($propertyTypes as $propertyType) {
                $name = htmlentities($propertyType->DisplayName);
                ?>
				<option value="<?php 
                echo $propertyType->SearchSetupPropertyTypeID;
                ?>
"><?php 
                echo $name;
                ?>
</option>
			<?php 
            }
//.........这里部分代码省略.........
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:101,代码来源:widget-dsidxpress-search.php

示例7: do_action

?>
 <div id="dsidx" class="custom-idx-results">
 <?php 
do_action('bon_idx_results_404_message');
if (self::has_listings()) {
    do_action('bon_idx_results_sorting_control');
    if (bon_get_option('show_listings_map') == 'show') {
        do_action('bon_idx_results_map');
    }
    do_action('bon_idx_results_listings');
    do_action('bon_idx_results_pagination');
} else {
    do_action('bon_idx_no_results');
}
do_action('bon_idx_disclaimer');
if (bon_get_option('show_listings_map') == 'show') {
    do_action('bon_idx_results_map_divs');
}
do_action('bon_idx_after_results_content');
do_action('bon_idx_dsidx_javascript_details');
?>
<script>

jQuery(document).ready(function($){
	if($('#dsidx-map').length > 0) {
        if( ($('#dsidx-map-control').length > 0) && (!$.cookie('dsidx_map_open') || $.cookie('dsidx_map_open') == 0 ) ) {
            $('#dsidx-map-control a').trigger('click');
        }
    }

            if($('#listings-map').length > 0 && typeof dsidx.dataSets.results !== "undefined") {
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:31,代码来源:results.php

示例8: bon_get_option

?>
	<?php 
if (!empty($length)) {
    ?>
	<li class="garage"><div class="meta-wrap">
		<i class="sha-ruler"></i>
		<span class="meta-value">
			<?php 
    echo $length . ' ' . bon_get_option('length_measure');
    ?>
		</span></div>
	</li>
	<?php 
}
?>
	<?php 
if (!empty($fuel)) {
    ?>
	<li class="furnish"><div class="meta-wrap">
		<i class="sha-tint"></i>
		<span class="meta-value">
			<?php 
    echo $fuel . ' ' . bon_get_option('volume_measure');
    ?>
		</span>
		</div>
	</li>
	<?php 
}
?>
</ul>
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:31,代码来源:meta.php

示例9: shandora_filter_body_class

function shandora_filter_body_class($classes)
{
    global $post;
    if (!isset($post->ID)) {
        return $classes;
    }
    $id = $post->ID;
    $class = shandora_get_meta($id, 'slideshow_type');
    if (!empty($class) && shandora_is_home() && bon_get_option('show_slider', 'show') == 'show') {
        $class = 'slider-' . $class;
        $classes[] = $class;
    } else {
        if (shandora_is_home() && bon_get_option('show_slider', 'show') == 'show') {
            $classes[] = 'slider-full';
        }
    }
    return $classes;
}
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:18,代码来源:theme-hooks.php

示例10: shandora_get_meta

$extcolor = shandora_get_meta($post->ID, 'listing_extcolor');
$intcolor = shandora_get_meta($post->ID, 'listing_intcolor');
$status = shandora_get_meta($post->ID, 'listing_status');
$fuel = shandora_get_meta($post->ID, 'listing_fueltype');
$year = shandora_get_meta($post->ID, 'listing_yearbuild');
$height = shandora_get_meta($post->ID, 'listing_height');
$width = shandora_get_meta($post->ID, 'listing_width');
$length = shandora_get_meta($post->ID, 'listing_length');
$wheelbase = shandora_get_meta($post->ID, 'listing_wheelbase');
$trackrear = shandora_get_meta($post->ID, 'listing_trackrear');
$trackfront = shandora_get_meta($post->ID, 'listing_trackfront');
$ground = shandora_get_meta($post->ID, 'listing_ground');
$seating = shandora_get_meta($post->ID, 'listing_seating');
$steering = shandora_get_meta($post->ID, 'listing_steering');
$length_measure = bon_get_option('length_measure', 'in.');
$mileage_measure = bon_get_option('mileage_measure', 'in.');
$trans_opt = shandora_get_car_search_option('transmission');
if (array_key_exists($transmission, $trans_opt)) {
    $transmission = $trans_opt[$transmission];
}
$status_opt = shandora_get_car_search_option('status');
if (array_key_exists($status, $status_opt)) {
    $status = $status_opt[$status];
}
$fuel_opt = shandora_get_car_search_option('fuel');
if (array_key_exists($fuel, $fuel_opt)) {
    $fuel = $fuel_opt[$fuel];
}
$bodytype = get_the_term_list($post->ID, 'body-type', '', ', ', '');
$location = get_the_term_list($post->ID, 'dealer-location', '', ', ', '');
$terms = get_the_terms($post->ID, 'manufacturer');
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:31,代码来源:block-carlistingtab.php

示例11: trailingslashit

<div class="search">

	<form method="get" class="search-form" action="<?php 
echo trailingslashit(home_url());
?>
">
		<div class="row collapse">
			<div class="large-9 small-9 column">
			<input class="search-text" type="text" name="s" value="<?php 
if (is_search()) {
    echo esc_attr(get_search_query());
} else {
    esc_attr_e('Enter search terms...', 'bon');
}
?>
" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" />
			</div>
			<div class="large-3 small-3 column">
			<input class="search-submit button expand prefix flat <?php 
echo bon_get_option('search_button_color');
?>
" name="submit" type="submit" value="<?php 
esc_attr_e('Search', 'bon');
?>
" />
			</div>
		</div>
	</form><!-- .search-form -->

</div><!-- .search -->
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:30,代码来源:searchform.php

示例12: widget

    /**
     * Outputs the widget based on the arguments input through the widget controls.
     *
     * @since 1.0
     */
    function widget($sidebar, $instance)
    {
        extract($sidebar);
        /* Output the theme's $before_widget wrapper. */
        echo $before_widget;
        /* If a title was input by the user, display it. */
        if (!empty($instance['title'])) {
            echo $before_title . apply_filters('widget_title', $instance['title'], $instance, $this->id_base) . $after_title;
        }
        ?>
		
		<div class="row">
			<div class="column large-12">
				<?php 
        if ($instance['type'] == "realestate") {
            $currency = bon_get_option('currency', '$');
            ?>


					<script type="text/javascript"> 
					jQuery(document).ready(function($) { $("#bon-calc-<?php 
            echo $this->id_base;
            ?>
").MortgageCalculator({ currency: "<?php 
            echo $currency;
            ?>
", mode: "widget", logo: { path: "", url: "", target: "_blank" } }); });</script>
					<div id="bon-calc-<?php 
            echo $this->id_base;
            ?>
"></div>
				<?php 
        } else {
            $currencysymbol = bon_get_option('currency');
            ?>
				<div id="loancalculator_cars">
					<form action="post">
						<label>
						<?php 
            _e('Loan Amount', 'bon');
            ?>
						(<?php 
            echo $currencysymbol;
            ?>
)</label>
						<input type="text" id="LoanAmount" size="10" name="LoanAmount" value="30000" />
						
						<label>
						<?php 
            _e('Down Payment', 'bon');
            ?>
						(<?php 
            echo $currencysymbol;
            ?>
)</label>
						<input type="text" id="DownPayment" size="10" name="DownPayment" value="0" />

						<label>
						<?php 
            _e('Annual Rate', 'bon');
            ?>
						</label>
						<input id="InterestRate" type="text" size="3" name="InterestRate" value="7.0" />

						<label>
						<?php 
            _e('Loan Terms (Years)', 'bon');
            ?>
						</label>
						<input id="NumberOfYears" type="text" size="3" name="NumberOfYears" value="4" />

						<button class="button flat radius" id="morgcal" name="morgcal" ><?php 
            _e('Calculate', 'bon');
            ?>
</button><br />

						<label>
						<?php 
            _e('Number of Payments', 'bon');
            ?>
						</label>
						<input id="NumberOfPayments" type="text" name="NumberOfPayments" />

						<label>
						<?php 
            _e('Monthly Payment', 'bon');
            ?>
						(<?php 
            echo $currencysymbol;
            ?>
)</label>
						<input id="MonthlyPayment" type="text" name="MonthlyPayment" />
					</form>
				</div>
				<?php 
//.........这里部分代码省略.........
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:101,代码来源:widget-calculator.php

示例13: get_theme_mod

}
?>
	</ul>
	<?php 
if (function_exists('bon_fav_get_users_favorites_by_posttype')) {
    $layout = get_theme_mod('theme_layout');
    if (empty($layout)) {
        $layout = get_post_layout(get_queried_object_id());
    }
    $mobile = bon_get_option('mobile_layout', '2');
    $block_cls = '4';
    if ($layout == '2c-l' || $layout == '2c-r') {
        $block_cls = '3';
    }
    $ul_class = "small-block-grid-" . $mobile . " large-block-grid-" . $block_cls;
    $compare_page = bon_get_option('compare_page');
    $fav_post_ids = bon_fav_get_users_favorites_by_posttype($current_user->{$name}, 'listing');
    if (!empty($fav_post_ids)) {
        ?>
 
		<h4 class="bon-form-title"><?php 
        _e('Favorite Properties', 'bon');
        ?>
</h4>
		<?php 
        $loop = array('post_type' => 'listing', 'post__in' => $fav_post_ids, 'posts_per_page' => -1);
        query_posts($loop);
        if (have_posts()) {
            ?>

			<div id="listings-container" class="row">
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:31,代码来源:my-account.php

示例14: do_atomic

do_atomic('before_pagination');
?>

	<?php 
if (is_attachment()) {
    ?>

		<div class="loop-nav">
			<?php 
    previous_post_link('%link', '<span class="previous">' . __('<span class="meta-nav">&larr;</span> Return to entry', 'bon') . '</span>');
    ?>
		</div><!-- .loop-nav -->

	<?php 
} elseif (is_singular() && !is_front_page() && bon_get_option('show_previous_next', 'yes') == 'yes') {
    ?>

		<div class="loop-nav">
			<?php 
    previous_post_link('%link', '<span class="previous">' . __('<span class="meta-nav">&larr;</span> Previous', 'bon') . '</span>');
    ?>
			<?php 
    next_post_link('%link', '<span class="next">' . __('Next <span class="meta-nav">&rarr;</span>', 'bon') . '</span>');
    ?>
		</div><!-- .loop-nav -->

	<?php 
} elseif (!is_singular() && current_theme_supports('bon-pagination')) {
    bon_pagination(array('container_class' => 'pagination-centered', 'disabled_class' => 'unavailable', 'current_class' => 'current'));
    ?>
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:30,代码来源:loop-nav.php

示例15: bon_get_prefix

        $key = bon_get_prefix() . 'listing_price';
        break;
    case 'title':
        $orderby = 'title';
        break;
    case 'size':
        $orderby = 'meta_value_num';
        $key = bon_get_prefix() . 'listing_buildingsize';
        break;
    default:
        $orderby = 'date';
        break;
}
$status_key = '';
$status_val = '';
$exclude_sold_rented = bon_get_option('exclude_sold_rented', 'no');
if ($exclude_sold_rented == 'yes') {
    $status_key = bon_get_prefix() . 'listing_status';
    $status_val = array('sold', 'rented');
}
$listing_args = array('post_type' => 'listing', 'posts_per_page' => $numberposts, 'paged' => $paged, 'meta_key' => $key, 'orderby' => $orderby, 'order' => $order, 'meta_key__not_in' => $status_key, 'meta_value__not_in' => $status_val);
$wp_query = new WP_Query($listing_args);
bon_get_template_part('loop', 'listing');
bon_get_template_part('loop', 'nav');
// Loads the loop-nav.php template.
?>
                
            <?php 
/**
 * Shandora After Loop Hook
 *
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:31,代码来源:page-template-all-listings.php


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