This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _API={}; | |
_API.call_api=function(method, path, passing_data) { | |
var xhttp = new XMLHttpRequest(); | |
return new Promise(function(resolve, reject) { | |
xhttp.onreadystatechange = function() { | |
if (this.readyState == 4 && this.status == 200) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Plugin_DataTypeSlug_Template { | |
public function __construct() { | |
$this->option = new Options(); | |
} | |
public function add_actions_and_filters() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Plugin_Shortcodes_SearchAndResults { | |
public function __construct() { | |
$this->data = new Api(); | |
$this->options = new Options(); | |
$this->_params = new Params(); | |
add_shortcode('search-form', [$this, '_form']); | |
add_shortcode('result', [$this, '_results']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class PLUGIN_DataTypeSlug_AIOseo{ | |
public function __construct() { | |
$this->option = new Options(); | |
$this->data = new Apiu(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
jQuery("form[name='cartForm']").on("submit", function(event) { | |
jQuery("form[name='cartForm'] input[required], form[name='cartForm'] select[required]").each(function() { | |
if (jQuery(this).val() == "") { | |
jQuery(this).addClass("error"); | |
} | |
else { | |
jQuery(this).removeClass("error"); | |
} | |
}).each(function() { |
NewerOlder