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 include 'config.php'; ?> | |
<?php | |
if (isset($_POST['form_referer_add'])) { | |
try{ | |
$refer_name = $_POST['refer_name']; | |
if (empty($refer_name)) { | |
throw new Exception("Referance name can't be empty"); | |
} |
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
$term_slug_list = array() | |
$query = new WP_Query( $args ); | |
// loop through every product | |
while($query->have_posts()){ | |
$query->the_post(); | |
// get categories of product | |
$product_terms = wp_get_post_terms( get_the_id(), 'product_cat'); |
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
if All is selected | |
$cat_list = get all terms | |
else | |
$cat_list = get selected terms | |
endif | |
<div class="tab_menu"> | |
<ul> | |
foreach $cat_list |
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
//register field | |
array( | |
'type' => 'text', | |
'label' => __( 'Image Size', 'uniqlo' ), | |
'name' => 'image_size', | |
'value' => '570x290-crop', | |
'description' => __(' Set the image size: "full", "thumbnail", "medium", "large", "390x450-crop" or ex:500x250', 'uniqlo'), | |
), | |
// custom image size |
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
$container_size = 'container'; | |
// theme option value | |
if($uniqlo_opt['uniqlo_header_full_width'] == true){ | |
$container_size = 'container-fluid'; | |
} | |
// page meta value | |
$page_box_style = get_post_meta( get_the_id(), '_uniqlo_page_box_style', true ); |
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
//metabox field | |
$pages->add_field( array( | |
'name' => esc_html__( 'Select header layout', 'uniqlo' ), | |
'id' => $prefix.'page_header_style', | |
'type' => 'select', | |
'options' => array( | |
'none' => esc_html__( 'None', 'uniqlo' ), | |
'header_default' => esc_html__( 'Header Default', 'uniqlo' ), | |
'header_style_2' => esc_html__( 'Header Style 2', 'uniqlo' ), | |
'header_style_3' => esc_html__( 'Header Style 3', 'uniqlo' ), |
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
#i/bin/bash | |
echo Number of inputs | |
read n | |
echo Imput $n numbers | |
for ((i=0;i<$n;i++)) | |
do | |
read num[$i] | |
done |
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
$layout = isset($_GET['layout']) ? $_GET['layout'] : 'fullw'; | |
switch($layout){ | |
case 'left': | |
$shoplayout = 'left'; | |
$shopcolclass = 9; | |
break; | |
case 'right': | |
$shoplayout = 'right'; | |
$shopcolclass = 9; |
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
Router>enable | |
Router#conf t | |
Enter configuration commands, one per line. End with CNTL/Z. | |
Router(config)#hostname Azad | |
Azad(config)#int | |
Azad>enable | |
Azad#conf t | |
Enter configuration commands, one per line. End with CNTL/Z. | |
Azad(config)#int f0/0 |
OlderNewer