function frontend_js() { $general_opts = new ET_GeneralOptions(); $website_logo = $general_opts->get_website_logo(); $paypill = $this->get_api(); if (is_page_template('page-post-a-job.php') || is_page_template('page-upgrade-account.php')) { wp_enqueue_script('paymill_checkout', 'https://bridge.paymill.com/', array('jquery')); //wp_enqueue_script('paypill', 'https://js.stripe.com/v1/'); wp_enqueue_script('paymill_modal', plugin_dir_url(__FILE__) . '/paymill.js', array('jquery')); wp_localize_script('paymill_modal', 'je_paymill', array('PAYMILL_PUBLIC_KEY' => $paypill["public_key"], 'currency' => ET_Payment::get_currency(), 'invalid_card' => __("Your card number is incorrect.", ET_DOMAIN), 'invalid_date' => __("Your card's expiry date is invalid.", ET_DOMAIN), 'invalid_cvc' => __("Your card's code is invalid.", ET_DOMAIN), 'invalid_account_holder' => __("Account holder is invalid.", ET_DOMAIN), 'unknow_error' => __("Unknown error!!!", ET_DOMAIN))); include_once dirname(__FILE__) . '/form-template.php'; } }
function frontend_js() { $general_opts = new ET_GeneralOptions(); $website_logo = $general_opts->get_website_logo(); $stripe = $this->get_api(); if (is_page_template('page-post-a-job.php') || is_page_template('page-upgrade-account.php')) { wp_enqueue_script('stripe.checkout', 'https://checkout.stripe.com/v2/checkout.js', array('jquery')); wp_enqueue_script('stripe', 'https://js.stripe.com/v1/'); wp_enqueue_script('stripe.modal', plugin_dir_url(__FILE__) . '/stripe.js', array('jquery')); wp_localize_script('stripe.modal', 'je_stripe', array('public_key' => $stripe["public_key"], 'currency' => ET_Payment::get_currency())); include_once dirname(__FILE__) . '/form-template.php'; } }
/** * */ public function jobs_ajax_response($response) { $opt = new ET_GeneralOptions(); $is_indeed_job = et_get_post_field($response['id'], 'indeed_url'); $indeed_logo = $opt->get_default_logo(); $url = et_get_post_field($response['id'], 'indeed_url'); $plus = array('is_indeed_job' => et_get_post_field($response['id'], 'indeed_url') != '' ? true : false, 'indeed_url' => et_get_post_field($response['id'], 'indeed_url'), 'indeed_logo' => is_array($indeed_logo) ? array_shift($indeed_logo) : '', 'indeed_company' => et_get_post_field($response['id'], 'indeed_company'), 'indeed_ref_url' => str_replace('viewjob', 'rc/clk', $url)); return $response + $plus; }
<?php $general_opts = new ET_GeneralOptions(); $website_logo = $general_opts->get_website_logo(); ?> <div class="modal-job modal modal-login modal-stripe" id="stripe_modal"> <div class="edit-job-inner"> <?php if (!function_exists('et_is_mobile') || !et_is_mobile()) { ?> <div class="stripe-header bg-main-header"> <div class="logo"><img src="<?php echo $website_logo[0]; ?> " height="50" /></div> <div class="info slogan"> <span class="plan_name">{$plan_name}</span> <br/> <span class="plan_desc">{$plan_description}</span> </div> </div> <?php } ?> <form class="modal-form" id="stripe_form" novalidate="novalidate" autocomplete="on"> <div class="content clearfix"> <div class="form-item"> <div class="label"> <?php _e('Card number:', ET_DOMAIN); ?> </div>
public function get_alert_message_template() { $option = new ET_GeneralOptions(); $site_logo = $option->get_website_logo(); $customize = $option->get_customization(); $header = '<html class="no-js" lang="en"> <body style="margin: 0px; font-family: ' . $customize['font-text'] . ', sans-serif; font-size: 13px; line-height: 1.3;"> <style> .job_list { color : #000; } </style> <div style="margin: 0px auto; width:660px; border: 1px solid ' . $customize['background'] . '"> <table width="100%" cellspacing="0" cellpadding="0"> <tr style="background-color: ' . $customize['header'] . '; display:block; padding:10px 0px; vertical-align: middle; box-shadow: 0 2px 0 2px #E3E3E3;"> <td style="padding: 0 10px 0 20px; width: 0px;"> <a href="[site_url]" target="_blank"> <img title="" alt="[blogname]" src="[site_logo]" /> </a> </td> <td style="padding-bottom: 3px;"> <span style="text-shadow: 0 0 1px #151515; color: #b0b0b0;">[blogdescription]</span> </td> <td style="padding-right: 20px; width : 25%"> <!-- see more button --> <a href="[site_url]" target="_blank" style="display: block; position: relative; box-shadow: 0 1px 2px #222; -moz-box-shadow: 0 1px 2px #222; -webkit-box-shadow: 0 1px 2px #222; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; text-decoration: none; padding: 0 10px; height: 40px; line-height: 40px; background-repeat: repeat-x; background: ' . $customize['action'] . ';"> <span style="color: #fff; font-size: 12px; font-weight: bold; text-shadow: 1px -1px 1px #9e4230;"> ' . __("VIEW MORE JOBS", ET_DOMAIN) . ' </span> </a> </td> </tr> <tr style="height: 3px; background-color: ' . $customize['background'] . '"><td colspan="3"></td></tr> <tr> <td colspan="3" style="padding: 10px 20px"> <table> <tr> <td colspan="2" style="line-height : 26px ;font-size : 24px; color: #5c5c5c; padding-bottom: 10px; font-weight: normal; font-family :' . $customize['font-heading'] . ';"> Re-discover your potentials. Re-vision your future. Meet Success. Let [blogname] take you there! </td> </tr> <tr> <td style="padding: 8px 10px 8px 0;" class="job_list"> [list_jobs] </td> </tr> '; $footer = '</table> </td> </tr> <tr style="padding: 10px 20px; color: #909090; height: 89px; background-repeat: repeat-x; background-color:#f7f7f7;"> <td colspan="3"> <table width="100%" cellspacing="0" cellpadding="0"> <tr> <td style="text-align: left; padding: 10px 20px; width:140px;"> <a href="[site_url]" target="_blank" style="display: block; position: relative; box-shadow: 0 1px 2px #999; -moz-box-shadow: 0 1px 2px #999; -webkit-box-shadow: 0 1px 2px #999; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; text-decoration: none; padding: 0 10px; height: 40px; line-height: 40px; background-repeat: repeat-x; background: ' . $customize['action'] . ';"> <span style="color: #fff; font-size: 12px; font-weight: bold; text-shadow: 1px -1px 1px #9e4230;"> ' . __("VIEW MORE JOBS", ET_DOMAIN) . ' </span> </a> </td> <td style="text-align: left; padding: 10px 20px;"> <table> <tr> <td>[copyright]</td> </tr> <tr> <td style="text-align:center;"><a href="[unsubscribe_link]">Unsubscribe</a> </td> </tr> </table> </td> <td style="text-align: right; padding: 10px 20px;"> [admin_email] </td> </tr> </table> </td> </tr> </table> </div> </body> </html>'; $mail_alert_message = $header . $footer; return $mail_alert_message; }
_e("QUICK VIEW", ET_DOMAIN); ?> </div> <iframe id="frame_preview" style="border:0; overflow:hidden;" src="<?php echo $url; ?> " frameborder="0" height="400px" allowtransparency="true" marginheight="0" marginwidth="0"></iframe> </div> </div> </div> </div> <?php get_footer(); } else { extract($_REQUEST); $opt = new ET_GeneralOptions(); $customize = $opt->get_customization(); $args = array('post_type' => 'job', 'post_status' => 'publish', 'posts_per_page' => $number ? $number : 5); if (isset($job_types) && $job_types) { $args['tax_query'][] = array('taxonomy' => 'job_type', 'field' => 'slug', 'terms' => $job_types); } if (isset($categories) && $categories) { $args['tax_query'][] = array('taxonomy' => 'job_category', 'field' => 'id', 'terms' => $categories); } $args['tax_query']['relation'] = 'AND'; echo '<pre>'; //var_dump($args); echo '</pre>'; $query = new WP_Query($args); if ($query->have_posts()) { ?>
function ajax_jobs_response($job) { $opt = new ET_GeneralOptions(); $company = et_create_companies_response($job['author_id']); $company_logo = $company['user_logo']; $logo = ''; $default = $opt->get_default_logo(); $default = $default[0]; if ($company_logo['thumbnail'][0] && $company_logo['thumbnail'][0] != '') { $logo = $company_logo['thumbnail'][0]; } $job += array('rss_url' => et_get_post_field($job['ID'], 'rss_url'), 'rss_logo' => $logo == '' ? $default : $logo); return $job; }
/** * */ public function jobs_ajax_response($response) { $opt = new ET_GeneralOptions(); $simplyhired_logo = $opt->get_default_logo(); $is_simplyhired_job = et_get_post_field($response['id'], 'simplyhired_url'); $company = et_create_companies_response($response['author_id']); $company_logo = $company['user_logo']; $logo = ''; if ($company_logo['thumbnail'][0] && $company_logo['thumbnail'][0] != '') { $logo = $company_logo['thumbnail'][0]; } $url = et_get_post_field($response['id'], 'simplyhired_url'); $plus = array('is_simplyhired_job' => et_get_post_field($response['id'], 'simplyhired_url') != '' ? true : false, 'simplyhired_url' => et_get_post_field($response['id'], 'simplyhired_url'), 'simplyhired_logo' => $logo == '' ? array_shift($simplyhired_logo) : $logo, 'simplyhired_company' => et_get_post_field($response['id'], 'simplyhired_creator')); return $response + $plus; }