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 | |
................................ | |
sudo apt update | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt update | |
sudo apt install php5.6 (Apache->PHP-> /var/www/html/) |
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
install composer | |
open cmd | |
cd xampp/htdocs | |
composer create-project laravel/laravel project_name | |
............... | |
cd project_name | |
php artisan serve |
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
/application/core/MY_Loader.php | |
............................................... | |
<?php | |
class MY_Loader extends CI_Loader { | |
public $layout_name = 'default'; | |
public function template($template_name, $vars = array()) | |
{ | |
$vars['Content_View'] = $template_name; |
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
$('.c_serv_slick_in').slick({ | |
speed: 300, | |
slidesToShow: 4, | |
slidesToScroll: 1, | |
arrows : true , | |
prevArrow : jQuery(".c_serv_slick .arrow_left"), | |
nextArrow : jQuery(".c_serv_slick .arrow_right"), | |
responsive: [ | |
{ breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll: 4, infinite: true, }}, | |
{ breakpoint: 600, settings: { slidesToShow: 2, slidesToScroll: 2 } }, |
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 data = { | |
action: 'image_color', | |
id: 1234 | |
} | |
//jQuery | |
jQuery.ajax( | |
{ | |
url: " http://domain.com/wp-admin/admin-ajax.php", | |
type: "POST", |
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 | |
$tabs = apply_filters( 'woocommerce_product_tabs', array() ); | |
if ( ! empty( $tabs ) ) : ?> | |
<div class="woocommerce-tabs wc-tabs-wrapper"> | |
<ul class="nav nav-tabs"> | |
<?php | |
$count = 1; | |
$count2 = 1; |
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 | |
$tax_terms = get_terms('product_cat', array( | |
'hide_empty' => false, | |
'parent' => 0 | |
)); | |
//print_r($tax_terms); | |
?> | |
<ul> | |
<?php | |
foreach ($tax_terms as $term_single) { |
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
Download wp plugin | |
............................................ | |
https://wordpress.org/plugins/qtranslate-x/ | |
header style sheet code | |
............................................ | |
<?php | |
$lang='en'; | |
$page='@'; |
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.php | |
<?php | |
add_action( 'add_meta_boxes', 'flatfee_field' ); | |
function flatfee_field() { | |
global $post; | |
if($post->ID == '40')//40 is page id | |
add_meta_box("flatfee", "Flatfee", "add_flatfee", "page", "normal", "high"); | |
} | |
function add_flatfee(){ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style type="text/css"> | |
.container { | |
background: rgba(0, 0, 0, 0.4); | |
text-align: center; | |
padding: 50px 0px; | |
position: relative; |