function __construct() { global $wp; parent::__construct(); $this->table = new JS_Table('jobs_relationships'); add_action('wp_enqueue_scripts', array($this, 'add_scripts')); add_filter('body_class', array($this, 'jobsshopper_body_classes')); if (JS_Helper::get_input('snap_user')) { $this->user = JS_User::getUser(JS_Helper::get_input('snap_user')); } }
function __construct() { global $_js_helper; if (!$_js_helper->is_logged()) { wp_redirect(add_query_arg(array('redirect_to' => urlencode(site_url('search'))), $_js_helper->jobsshops_login_url()), 301); exit; } parent::__construct(); add_filter('body_class', array($this, 'jobsshopper_body_classes')); wp_enqueue_script('datepair', get_template_directory_uri() . '/js/datepair.js', false, false, true); }
function __construct() { global $wp, $snapjobs, $_js_helper; parent::__construct(); add_filter('body_class', array($this, 'jobsshopper_body_classes')); $this->user_role = $wp->query_vars['snap_option']; if ($_js_helper->is_logged()) { wp_redirect($_js_helper->jobsshops_login_url($this->user_role)); exit; } if ($this->user_role == 'jobsshopper') { $this->page_id = $snapjobs->register_jobsshopper_page; } elseif ($this->user_role == 'jobsboss') { $this->page_id = $snapjobs->register_jobsboss_page; } require JS_Helper::getSetting('plugin_path') . 'paypal/paypal_functions.php'; }
function __construct() { global $wp; parent::__construct(); add_action('wp_enqueue_scripts', array($this, 'add_scripts')); $this->user_name = isset($wp->query_vars['snap_user']) ? $wp->query_vars['snap_user'] : $this->user_name; if ($this->user_name !== false) { $this->user = get_user_by('login', $this->user_name); } else { if (is_user_logged_in()) { $this->user = wp_get_current_user(); } else { wp_redirect(site_url()); exit; } } $this->user = JS_User::getUser($this->user); }
function __construct() { global $wp; parent::__construct(); add_filter('body_class', array($this, 'jobsshopper_body_classes')); $user_name = JS_Helper::get_input('snap_user') ? JS_Helper::get_input('snap_user') : false; if ($user_name !== false) { $user = new JS_User(urldecode($user_name)); $user = $user->user; } else { if (is_user_logged_in()) { $user = JS_Helper::get_current_js_user(); } } $this->user = $user; if (!$this->user) { wp_redirect(site_url()); exit; } }
function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); add_filter('body_class', array($this, 'jobsshopper_body_classes')); $this->user = JS_Helper::get_current_js_user(); }