Skip to content

Instantly share code, notes, and snippets.

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

Salman Ahmed salmancreation

🏠
Working from home
View GitHub Profile
@salmancreation
salmancreation / service--box-shortcode.php
Created April 8, 2017 12:52
Factorian WordPress Theme Development
<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }
function factorian_service_box_shortcode($atts){
extract( shortcode_atts( array(
'service_image' => '',
'service_title' => '',
'service_desc' => '',
'service_link_page' => '',
@salmancreation
salmancreation / countUp-shortcode.php
Created April 27, 2017 13:50
CountUp Shortcode.php
<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }
function factorian_countUp_box_shortcode($atts){
extract( shortcode_atts( array(
'countup_title' => '',
'countup_icon' => '',
'countup_icon_color' => '',
'countup_numbers' => '',
<?php
function factorian_countTo_vc_addon() {
vc_map(
array(
"name" => __( "Factorian CountUp Box", "factorian-sctheme" ),
"base" => "factorian_countup_box",
"category" => __( "Factorian", "factorian-sctheme"),
"params" => array(
array(