public function __construct()
 {
     $this->includes = array();
     $this->integration = 'wp-job-manager-claim-listing';
     $this->wpjmcl = WP_Job_Manager_Claim_Listing();
     parent::__construct();
 }
 public function __construct()
 {
     if (!class_exists('WP_Job_Manager_Products')) {
         return;
     }
     $this->integration = 'woocommerce-bookings';
     $this->includes = array();
     parent::__construct();
 }
 public function enqueue_scripts($force = false)
 {
     if (!$this->page_needs_map($force)) {
         return;
     }
     wp_enqueue_script('google-maps', '//maps.googleapis.com/maps/api/js?v=3&libraries=geometry,places');
     wp_enqueue_script('listify-job-manager-map', Listify_Integration::get_url() . 'js/wp-job-manager-map.min.js', array('jquery', 'jquery-ui-slider', 'google-maps', 'underscore'), 20141204);
     $settings = array('facetwp' => listify_has_integration('facetwp'), 'canvas' => 'job_listings-map-canvas', 'useClusters' => listify_theme_mod('map-behavior-clusters'), 'gridSize' => listify_theme_mod('map-behavior-grid-size'), 'autoFit' => listify_theme_mod('map-behavior-autofit'), 'mapOptions' => array('zoom' => listify_theme_mod('map-behavior-zoom'), 'maxZoom' => listify_theme_mod('map-behavior-max-zoom')), 'searchRadius' => array('min' => listify_theme_mod('map-behavior-search-min'), 'max' => listify_theme_mod('map-behavior-search-max')));
     if ('' != ($center = listify_theme_mod('map-behavior-center'))) {
         $settings['mapOptions']['center'] = $center;
     }
     wp_localize_script('listify-job-manager-map', 'listifyMapSettings', apply_filters('listify_map_settings', $settings));
 }
 public function __construct()
 {
     $this->includes = array();
     $this->integration = 'visual-composer';
     parent::__construct();
 }
 public function enqueue_scripts($force = false)
 {
     $deps = array('jquery', 'jquery-ui-slider', 'google-maps', 'wp-backbone', 'wp-job-manager-ajax-filters');
     if (class_exists('WP_Job_Manager_Extended_Location')) {
         $deps[] = 'wpjm-extended-location';
     }
     $deps[] = 'listify';
     $bias = strtolower(listify_theme_mod('region-bias'));
     $base = '//maps.googleapis.com/maps/api/js';
     $args = array('v' => 3, 'libraries' => 'geometry,places', 'key' => listify_theme_mod('map-behavior-api-key'), 'language' => get_locale() ? substr(get_locale(), 0, 2) : '');
     if ('' != $bias) {
         $args['region'] = $bias;
     }
     wp_enqueue_script('google-maps', esc_url_raw(add_query_arg($args, $base)));
     wp_enqueue_script('listify-app-map', Listify_Integration::get_url() . 'js/map/app.min.js', $deps, '20150213', true);
     $settings = array('displayMap' => (bool) $this->display(), 'facetwp' => listify_has_integration('facetwp'), 'useClusters' => (bool) listify_theme_mod('map-behavior-clusters'), 'autoFit' => (bool) listify_theme_mod('map-behavior-autofit'), 'trigger' => listify_theme_mod('map-behavior-trigger'), 'mapOptions' => array('zoom' => listify_theme_mod('map-behavior-zoom'), 'maxZoom' => listify_theme_mod('map-behavior-max-zoom'), 'maxZoomOut' => listify_theme_mod('map-behavior-max-zoom-out'), 'gridSize' => listify_theme_mod('map-behavior-grid-size'), 'scrollwheel' => listify_theme_mod('map-behavior-scrollwheel') == 'on' ? true : false), 'searchRadius' => array('min' => listify_theme_mod('map-behavior-search-min'), 'max' => listify_theme_mod('map-behavior-search-max'), 'default' => listify_theme_mod('map-behavior-search-default')));
     if ('' != ($center = listify_theme_mod('map-behavior-center'))) {
         $settings['mapOptions']['center'] = array_map('trim', explode(',', $center));
     }
     if (has_filter('job_manager_geolocation_region_cctld')) {
         $settings['autoComplete']['componentRestrictions'] = array('country' => $bias);
     }
     $settings = apply_filters('listify_map_settings', $settings);
     wp_localize_script('listify-app-map', 'listifyMapSettings', apply_filters('listify_map_settings', $settings));
 }
 public function __construct()
 {
     $this->includes = array();
     $this->integration = 'wp-job-manager-bookmarks';
     parent::__construct();
 }
 public function __construct()
 {
     $this->includes = array();
     parent::__construct();
 }
Пример #8
0
/**
 * Check if a specific integration is active.
 *
 * @since Listify 1.0.0
 *
 * @param string $integration
 * @return boolean
 */
function listify_has_integration($integration)
{
    return array_key_exists($integration, Listify_Integration::get_integrations());
}
 public function __construct()
 {
     $this->includes = array();
     $this->integration = 'wp-job-manager-field-editor';
     parent::__construct();
 }
Пример #10
0
 public function __construct()
 {
     $this->includes = array();
     $this->integration = 'polylang';
     parent::__construct();
 }
 public function __construct()
 {
     $this->integration = 'wp-job-manager-tags';
     $this->includes = array('widgets/class-widget-job_listing-tags.php');
     parent::__construct();
 }