Skip to content

Instantly share code, notes, and snippets.

View Galibri's full-sized avatar
🏠
Working from home

Muhammad Asadullah Al Galib Galibri

🏠
Working from home
View GitHub Profile
//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
<?php
/*
Plugin Name:Stock Toolkit
*/
function stock_alert_shortcode($atts, $content=null){
extract(shortcode_atts(
array(
'city' => '',
), $atts ));
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,
<?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',
//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
<div class="background-image">
<div class="overlay"></div>
<div class="anything-any-text">
<h2>Any other texts goes here</h2>
</div>
</div>
//null variable $amitumi
$amitumi;
if($amitumi == null){
echo 'ami tumi';
} else {
echo 'keu na';
}
//null variable $amitumi
$amitumi;
if(empty($amitumi)){
//demo link: http://andproductionbd.com/galibweb/about/
//codestar framework codes for custom title and breadcrumb
$options[] = array(
'id' => '_industry_apbd_global_page_options',
'title' => 'Slide Configuration',
'post_type' => 'page',
'context' => 'normal',
'priority' => 'default',
'sections' => array(
@Galibri
Galibri / kc-elements-with-custom-style
Created December 2, 2017 19:20
My KC shortcodes with styling options
<?php
//section title shortcode
function apbd_industry_section_title_shortcode($atts){
extract( shortcode_atts( array(
'subtitle' => '',
'title' => '',
'description' => ''
), $atts) );
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.',