Exemplo n.º 1
0
 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';
     }
 }
Exemplo n.º 2
0
 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';
     }
 }
Exemplo n.º 3
0
<?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>
Exemplo n.º 4
0
    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;
    }