This file contains 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 | |
/*Site Base url */ | |
session_start(); | |
define("BASEURL","http://localhost/Erp/"); | |
// Finance | |
define("FINANCE","".BASEURL."module/finance/"); | |
define("SCRIPT","".BASEURL."inc/scripts/"); | |
// Payroll | |
define("PAYROLL","".BASEURL."module/payroll/"); |
This file contains 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 windowWidth = jQuery(window).width(); | |
if(windowWidth > 768){ | |
jQuery('.menu').addClass("remove-scrol"); | |
jQuery(window).scroll(function() { | |
if (jQuery(this).scrollTop() > 100){ | |
jQuery('.menu').addClass("sticky"); | |
} |
This file contains 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
$('#searhform').submit(function(event) { | |
event.preventDefault(); | |
var formData = new FormData($(this)[0]); | |
var url = $(this).attr('action'); | |
$.ajax({ | |
type: 'post', | |
url: url, | |
contentType: false, | |
processData: false, |
This file contains 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
/*bootstrap media queries*/ | |
/*xs*/ | |
@media (min-width: 1px) and (max-width: 767px){ | |
} | |
/*sm*/ | |
@media (min-width: 768px) and (max-width: 992px){ | |
} | |
/*MD*/ |
This file contains 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
//get product url with its id | |
$url = get_permalink( $product_id ); | |
<?php | |
$args = array( | |
'post_type' => 'product', | |
'product_cat' => 'feature', | |
'posts_per_page' => 3 | |
); | |
$loop = new WP_Query( $args ); | |
if ( $loop->have_posts() ) { |
This file contains 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 | |
/** | |
* Template Name: Fullwidth | |
*/ | |
get_header(); ?> | |
<div class="container"> | |
<?php /* The loop */ ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php the_post_thumbnail(); ?> |
This file contains 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
//add in function in function.php | |
function pagination($pages = '', $range = 4) | |
{ | |
$showitems = ($range * 2)+1; | |
global $paged; | |
if(empty($paged)) $paged = 1; | |
if($pages == '') | |
{ |
This file contains 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
//Ajax Delete | |
swal({ | |
title: "Are you sure ?", | |
text: "Are you sure you want to delete this Voucher?", | |
type: "info", | |
showCancelButton: true, | |
closeOnConfirm: false, | |
showLoaderOnConfirm: true, | |
}, function(){ | |
setTimeout(function(){ |
This file contains 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
//Reset Password Message | |
Your request was processed. You will receive an E-mail with further instructions to set a new password. | |
//Email for reset Passwrod | |
Hello, | |
We were asked to reset your TeamViewer account. Follow the instructions below if this request comes from you. | |
Ignore the E-Mail if the request to reset your password does not come from you. Don't worry, your account is safe. | |
Click the following link to set a new password. |
This file contains 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
<configuration> | |
<system.web> | |
<customErrors mode="Off"/> | |
<compilation debug="true"/> | |
</system.web> | |
<system.webServer> | |
<httpErrors errorMode="Detailed" /> | |
<asp scriptErrorSentToBrowser="true"/> | |
<rewrite> |
OlderNewer