Skip to content

Instantly share code, notes, and snippets.

View manchumahara's full-sized avatar
💭
Life is beautiful!

Sabuj Kundu manchumahara

💭
Life is beautiful!
View GitHub Profile
/**
* 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
<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="">
</field>
@manchumahara
manchumahara / Repeatable Form Field for Joomla - Step2
Created August 11, 2015 19:31
Repeatable Form Field for Joomla - Step2
<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="">
<fieldset hidden="true" name="myrepeatfield_modal" repeat="true">
<field name="customfield1"
@manchumahara
manchumahara / Repeatable Form Field for Joomla - Step3
Last active March 15, 2017 11:49
Repeatable Form Field for Joomla
<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="">
<fieldset hidden="true" name="myrepeatfield_modal" repeat="true">
<field name="customfield1"
<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="{'customfield1':['Custom Field 1 value repeat1', 'Custom Field 1 value repeat2'], 'customfield2':['Custom Field 2 value repeat1','Custom Field 2 value repeat2']}">
<fieldset hidden="true" name="myrepeatfield_modal" repeat="true">
<field name="customfield1"
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
@manchumahara
manchumahara / gist:77da3f0da3c1b9932d3d
Last active February 1, 2017 09:38
CBX Rating & Review - Showing reviews for any post id and form id http://codeboxr.com/cbx-multi-criteria-rating-review-system-documentation
if(function_exists('cbratingStandaloneReviews')){
$form_id = ''; //form id
$post_id = '';
echo cbratingStandaloneReviews($form_id, $post_id);
}
class JFormFieldCheckboxFacility extends JFormField
{
/**
* The form field type.
*
* @var string
* @since 1.6
*/
public $type = 'CheckboxFacility';