Skip to content

Instantly share code, notes, and snippets.

View Sharifur's full-sized avatar
🎯
Focusing

Sharifur Rahman Sharifur

🎯
Focusing
View GitHub Profile
@Sharifur
Sharifur / index.html
Created December 4, 2017 10:45
Multi Step Form with Progress Bar using jQuery and CSS3
<!-- multistep form -->
<form id="msform">
<!-- progressbar -->
<ul id="progressbar">
<li class="active">Account Setup</li>
<li>Social Profiles</li>
<li>Personal Details</li>
</ul>
<!-- fieldsets -->
<fieldset>
/*====================
** Mixins Scss
====================*/
@mixin gradient-border-with-radius($left,$right){
background-image: linear-gradient(white, white),
radial-gradient(circle at top left, $left, $right);
background-origin: border-box;
background-clip: content-box,
border-box;
}
@Sharifur
Sharifur / custom taxonomy in custom post type
Created March 25, 2018 18:10
custom taxonomy register with custom post type in wordpress
register_taxonomy(
'Category',
'xgenious_teams',
array(
'label' => __( 'Category' ),
'query_var' => true,
'show_admin_column' => true,
'rewrite' => array(
'slug' => 'category',
'with_front' => true
@Sharifur
Sharifur / tex query
Created March 25, 2018 18:28
custom taxonomy query
$arg = array(
'post_type' => 'xgenious_teams',
'posts_per_page'=> $count,
'tax_query' => array(
array(
'taxonomy' => 'xgenious_teams',
'field' => 'term_id',
'terms' => $category
)
),
@Sharifur
Sharifur / Create New Param Type
Created March 26, 2018 06:01
Create New Param Type in visual composer
<?php
vc_add_shortcode_param( $name , $form_field_callback, $script_url );
vc_add_shortcode_param( 'my_param', 'my_param_settings_field' );
function my_param_settings_field( $settings, $value ) {
return '<div class="my_param_block">'
.'<input name="' . esc_attr( $settings['param_name'] ) . '" class="wpb_vc_param_value wpb-textinput ' .
esc_attr( $settings['param_name'] ) . ' ' .
esc_attr( $settings['type'] ) . '_field" type="text" value="' . esc_attr( $value ) . '" />' .
'</div>'; // This is html markup that will be outputted in content elements edit form
@Sharifur
Sharifur / slick slider activation with reponsive
Created April 4, 2018 11:03
slick slider activation with reponsive
//testimonial carousel
var $testimonial = $('#testimonial-carousel');
var $testimonialNav = $('#testimonial-thumbnail');
$testimonial.slick({
slidersToShow:1,
slidersToScroll:1,
arrows:false,
autoplay:true,
fade:true,
asNavFor: $testimonialNav,
// define route like this
Route::get('single/{id}/{any}',"BaseController@Single_Items")->name('item.single');
//make a function like below in your helper file
function Replace($data) {
$data = str_replace("'", "", $data);
$data = str_replace("!", "", $data);
$data = str_replace("@", "", $data);
$data = str_replace("#", "", $data);
@Sharifur
Sharifur / .htaccess
Created April 8, 2018 05:23
hide laravel .env file . to direct access
# Disable index view
Options -Indexes
# Hide a specific file
<Files .env>
Order allow,deny
Deny from all
</Files>
@Sharifur
Sharifur / php strom licence key & server
Created April 9, 2018 19:03
php strom 2018 licence key . 100% working licence server
-----------------------------
Work fine on 10-April-2018
-----------------------------
http://207.246.109.4:8000
-----------------------------
@Sharifur
Sharifur / graph-loader-animation.markdown
Created April 10, 2018 08:59
Graph Loader Animation