Skip to content

Instantly share code, notes, and snippets.

View manchumahara's full-sized avatar
🎯
Focusing

Sabuj Kundu manchumahara

🎯
Focusing
View GitHub Profile
//usages [add_to_cart_variable]
add_shortcode('add_to_cart_variable', 'add_to_cart_variable_function');
function add_to_cart_variable_function(){
global $product;
// Enqueue variation scripts
<div class="span12">
<div class="hero-unit">
<h2>Give Your Visitors all Social Media Updates Without Leaving Your Joomla Site</h2>
<h3><img class="alignleft wp-image-1124" title="My Social Timeline for Joomla" src="http://localhost/codeboxr2/wp-content/uploads/2012/05/social-timeline-codeboxr.png" alt="My Social Timeline" width="200" height="200" /> An unique Joomla Component which show latest updates from all major social networks in Facebook like timeline fashion (and other layout and styles). Whichever is your social network of choice, now you can feature their updates as you like within your Joomla! A must have Component.</h3>
[cbdemourl] [cbjedurl] [cbversion] [cbjversion] <a class="btn btn-info" href="http://localhost/codeboxr2/documentation-for-my-social-timeline.html" target="_blank"><span style="color: white;">Documentation</span></a>
</div>
<div class="row-fluid">
<div class="span4">
<h2><i class="icon-thumbs-up "></i> Awesome Features</h2>
'ALL' => 'Albania Lek',
'AFN' => 'Afghanistan Afghani',
'ARS' => 'Argentina Peso',
'AWG' => 'Aruba Guilder',
'AUD' => 'Australia Dollar',
'AZN' => 'Azerbaijan New Manat',
'BSD' => 'Bahamas Dollar',
'BBD' => 'Barbados Dollar',
'BDT' => 'Bangladeshi Taka',
'BYR' => 'Belarus Ruble',
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@manchumahara
manchumahara / gist:672d5cc5028109fd9e6c
Created June 5, 2015 07:10
wordpress inline js enqueue
//http://wordpress.stackexchange.com/a/139530/6343
/**
* Enqueue inline Javascript. @see wp_enqueue_script().
*
* KNOWN BUG: Inline scripts cannot be enqueued before
* any inline scripts it depends on, (unless they are
* placed in header, and the dependant in footer).
*
* @param string $handle Identifying name for script
// Gruntfile.js
// our wrapper function (required by grunt and its plugins)
// all configuration goes inside this function
module.exports = function(grunt) {
'use strict';
// ===========================================================================
// CONFIGURE GRUNT ===========================================================
// ===========================================================================
/**
* Filters the WordPress comment_form() function that was added in WordPress 3.0. This allows
* the theme to preserve some backwards compatibility with its old comment form. It also allows
* users to build custom comment forms by filtering 'comment_form_defaults' in their child theme.
*
* @since 0.8.0
* @access public
* @param array $args The default comment form arguments.
* @return array $args The filtered comment form arguments.
*/
<?php
$dokan_template_settings = Dokan_Template_Settings::init();
/*$validate = $dokan_template_settings->profile_validate();
if ( $validate !== false && !is_wp_error( $validate ) ) {
$dokan_template_settings->insert_settings_info();
}*/
?>
<div class="dokan-dashboard-wrap">
@manchumahara
manchumahara / gist:5287a4f1959acf32d645
Created August 11, 2015 14:30
CBX User online plugin shortcode
Shortcode Details:
[cbxuseronline]
for other params
count default value 1 //show user count
count_individual default value 1 //show individual count as per user type member, guest and bot
member_count default value 1 //show member user type count
guest_count default value 1 //show guest user type count
avatarlist default 0 shows as regular list , 1 shows avatar list
avatarsize default 50 avatar size
grid default 0 shows the list as grid list
hidename default 0 hides User display name , good for avatar listing