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
//shrotcode for slider post type query | |
function apbd_slider_list_shortcode($atts){ | |
extract( shortcode_atts( array( | |
'count' => 2, | |
'type' => 'industry-slide' | |
), $atts) ); | |
$args = array( | |
'posts_per_page' => $count, | |
'post_type' => $type |
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 | |
/* | |
Plugin Name:Stock Toolkit | |
*/ | |
function stock_alert_shortcode($atts, $content=null){ | |
extract(shortcode_atts( | |
array( | |
'city' => '', | |
), $atts )); |
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 stock_carousel_post($atts) { | |
extract( shortcode_atts( array( | |
'count' => -1 , | |
'type' => 'page', | |
'custom_css' => '', | |
), $atts) ); | |
$q = new WP_Query( | |
array( | |
'posts_per_page' => $count, |
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 | |
require get_template_directory() . '/inc/cs-framework/cs-framework.php'; | |
function industry_apbd_theme_options( $options ) { | |
$options = array(); // remove old options | |
$options[] = array( | |
'id' => '_apbd_industry_page_options', |
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
//shrotcode for slider post type query | |
function apbd_slider_list_shortcode($atts){ | |
extract( shortcode_atts( array( | |
'count' => 2, | |
'type' => 'industry-slide' | |
), $atts) ); | |
$args = array( | |
'posts_per_page' => $count, | |
'post_type' => $type |
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
<div class="background-image"> | |
<div class="overlay"></div> | |
<div class="anything-any-text"> | |
<h2>Any other texts goes here</h2> | |
</div> | |
</div> |
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
//null variable $amitumi | |
$amitumi; | |
if($amitumi == null){ | |
echo 'ami tumi'; | |
} else { | |
echo 'keu na'; | |
} | |
//null variable $amitumi | |
$amitumi; | |
if(empty($amitumi)){ |
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 | |
//section title shortcode | |
function apbd_industry_section_title_shortcode($atts){ | |
extract( shortcode_atts( array( | |
'subtitle' => '', | |
'title' => '', | |
'description' => '' | |
), $atts) ); | |
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
array( | |
'id' => 'slider_color', | |
'type' => 'color_picker', | |
'title' => 'Select Text color' | |
), | |
array( | |
'id' => 'overlay_enable', | |
'type' => 'switcher', | |
'title' => 'Overlay Enable', | |
'label' => 'Yes, Please do it.', |
OlderNewer