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
$(".actionable-select").change(function (e) { | |
e.preventDefault(); | |
var href = $(this).data('url'); | |
var method = $(this).data('method') || 'GET'; | |
var isClickable = $(e.target).is(":disabled"); | |
var _data = {}; | |
if (method == 'PUT' || method == 'POST') { |
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
function __clean_js($tag, $handle) { | |
$__files = [ | |
'async' => [ | |
// 'recaptcha', // Plugin breaks | |
], | |
'defer' => [ | |
'easy-testimonial', | |
'contact-form-7', | |
'themepunch', | |
], |
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
/** | |
* CCAvenue Encrypt Function | |
* | |
* @param $plainText | |
* @param $key | |
* @return string | |
*/ | |
protected function encrypt($plainText, $key) | |
{ | |
$key = $this->hextobin(md5($key)); |
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
/** | |
Usage: | |
<div class="row same-height" data-class="col-md-4"> | |
<div class="col-md-4"><p></p></div> | |
<div class="col-md-4"><p></p><p></p></div> | |
<div class="col-md-4"><p></p></div> | |
<div class="col-md-4"><p></p></div> | |
</div> | |
All columns will have height similar to second column as It has highest height amount all of them. |
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
$counties = array( | |
"AL" => array( | |
"Autauga", | |
"Baldwin", | |
"Barbour", | |
"Bibb", | |
"Blount", | |
"Bullock", | |
"Butler", | |
"Calhoun", |
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
Form::macro('editor', function($name, $value){ | |
// Requires "dakshhmehta/helpers" in composer.json for Template | |
Template::addJS(asset('assets/js/ckeditor/ckeditor.js')); | |
Template::addJS(asset('assets/js/ckeditor/adapters/jquery.js')); | |
$html = '<textarea class="form-control ckeditor" name="'.$name.'" id="'.$name.'">'.$value.'</textarea>'; | |
return $html; | |
}); |
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 Template { | |
protected static $rawData = array(); | |
protected static $files = array(); | |
public function __construct() | |
{ | |
self::$rawData['js'] = array(); | |
self::$rawData['css'] = array(); |
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 | |
use LaravelBook\Ardent\Ardent; | |
// You can extend Eloquent | |
// Example: http://laravel.io/bin/89V7 | |
class JsModel extends Ardent { | |
/** | |
* Mapping in an array of Laravel Validator class rules | |
* and jQuery validator rules in format as |