Skip to content

Instantly share code, notes, and snippets.

View humayunahmed8's full-sized avatar
🤡
code fool

Humayun Ahmed humayunahmed8

🤡
code fool
View GitHub Profile
@humayunahmed8
humayunahmed8 / awesome-website.txt
Created June 28, 2018 11:13
Some Awsome Website
** Some Awsome Website Using With Animation:
===========================================
1. https://waaark.com/
2. http://www.species-in-pieces.com/
** Improve the Payment Experience With Animations:
==================================================
It can be helping the user better understand what’s going on and how to use your product most effectively.
@humayunahmed8
humayunahmed8 / wp_function.php
Last active July 18, 2018 03:37
Most Important WordPress Function
1. Get Header
==============
<?php get_header( $name ); ?>
=>Parameters
# $name (Calls for header-name.php)
=> Different header for different pages.
<?php
if ( is_home() ) :
@humayunahmed8
humayunahmed8 / maps-shortcode.php
Created July 19, 2018 06:15
Google Maps Shortcode (Static)
function crazyland_maps_shortcode($atts) {
$default = array(
'lat' => '22.9196383',
'lon' => '91.520781',
'zoom' => '16',
'width' => '600',
'height' => '400',
);
@humayunahmed8
humayunahmed8 / vc-dropdown-item.php
Created July 22, 2018 05:47 — forked from mahafuz/vc-dropdown-item.php
Dropdown attribute with default value in WPBakery Visual Composer
<?php
/**
* Visual Composer DropDown Item Example in Right Way
* Dropdown attribute with default value in WPBakery Visual Composer
*
* @package VC_Dropdown
* @author Mahfuz <asrmahfuz8@gmail.com>
*/
vc_map(array(
"name" => __( "VC Dropdown", 'textdomain' ),
<?php
/*
Shortcode Documentation
=======================
=> Bootstrap 4 Component
=> Github Documentation
=> Gist Link: https://goo.gl/vuhT4r
TOC:
<?php
function stock_styled_map_shortcode($atts, $content = null) {
extract( shortcode_atts( array(
'lat' => '40.7433379',
'lng' => '-74.0103219',
'title' => 'Head Office',
'desc' => 'House 21, Grand St.<br/> New York, USA',
@humayunahmed8
humayunahmed8 / slide-options.php
Last active September 14, 2018 11:18
Metabox and Slide Options for Custom Shortcode Slider.
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
function stock_theme_page_metabox($options){
$options = array(); // remove old options
// -----------------------------------------
// Slide Options -
// -----------------------------------------
@humayunahmed8
humayunahmed8 / service-shortcode.php
Created August 2, 2018 05:35
Service box shortcode
<?php
function stock_service_box_shortcode($atts, $content = null){
extract( shortcode_atts( array(
'title' => '',
'desc' => '',
'type' => 1,
'link_to_page' => '',
'external_link' => '',
@humayunahmed8
humayunahmed8 / google-fonts.php
Created August 7, 2018 09:45 — forked from raselahmed7/google-fonts.php
How to call google fonts from theme option in best way
<?php
$frozen_body_font_get = cs_get_option('frozen_body_font');
$frozen_heading_font_get = cs_get_option('frozen_headding_font');
function frozen_crazycafe_body_gf_url() {
$font_url = '';
$frozen_body_font_get = cs_get_option('frozen_body_font');
if(array_key_exists('family', $frozen_body_font_get)) {
$frozen_body_font_get_family = $frozen_body_font_get['family'];
if ( ! function_exists( 'prefix_fonts_url' ) ) :
/**
* Register Google fonts.
*
* @return string Google fonts URL for the theme.
*/
function prefix_fonts_url() {
$fonts_url = '';
$fonts = array();
$subsets = '';