Skip to content

Instantly share code, notes, and snippets.

View vishnusomanus's full-sized avatar

Vishnu Soman U S vishnusomanus

View GitHub Profile
PHP
................................
sudo apt update
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php5.6 (Apache->PHP-> /var/www/html/)
install composer
open cmd
cd xampp/htdocs
composer create-project laravel/laravel project_name
...............
cd project_name
php artisan serve
/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;
$('.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 } },
var data = {
action: 'image_color',
id: 1234
}
//jQuery
jQuery.ajax(
{
url: " http://domain.com/wp-admin/admin-ajax.php",
type: "POST",
<?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;
<?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) {
Download wp plugin
............................................
https://wordpress.org/plugins/qtranslate-x/
header style sheet code
............................................
<?php
$lang='en';
$page='@';
//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(){
<!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;