public function load_includes()
 {
     wp_enqueue_style('frontend-styles', Instore()->plugin_url() . '/css/frontend-styles.css');
     wp_enqueue_style('ui_smoothness', "//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css");
     wp_enqueue_script('frontend-scripts', Instore()->plugin_url() . '/js/instore-frontend.js', array('jquery', 'jquery-ui-button'));
     wp_enqueue_script('instore-ajax', Instore()->plugin_url() . '/js/instore-ajax.js', array('jquery', 'jquery-ui-dialog', 'jquery-ui-button', 'jquery-ui-tabs', 'jquery-ui-datepicker', 'chosen'));
     wp_localize_script('instore-ajax', 'instore_ajax_params', array('ajax_url' => admin_url('admin-ajax.php')));
 }
function instore_load_template($template)
{
    $file = Instore()->plugin_path() . 'frontend/templates/' . $template . '.php';
    include $file;
}
예제 #3
0
<?php

if (!defined('ABSPATH')) {
    exit;
}
//exit if accessed directly
get_header();
?>

<div id="content">
  <div class="instore_security">
    <div class="instore_logo"> <img src="<?php 
echo esc_attr(Instore()->plugin_url() . '/images/instore-logo.png');
?>
" /> </div>
    <form id="instore_login">
      <?php 
wp_nonce_field('instore_login_action', 'instore_login_nonce');
?>
      <span class="ins_error"></span>
      <p>In-Store console locked.<br />
        Please enter In-Store login pin to unlock.</p>
      <p>
        <label for="instore_login_pin">Login Pin: </label>
        <input type="password" id="instore_login_pin" required="required"/>
      </p>
      <p>
        <input type="submit" class="instore_login_btn" id="instore_login_btn" value="Login"  />
        <input type="button" class="instore_login_btn" id="instore_exit" value="Exit" />
      </p>
    </form>