Skip to content

Instantly share code, notes, and snippets.

View TANVIRFAZLEY's full-sized avatar
🎯
Focusing

Tanvir Fazley TANVIRFAZLEY

🎯
Focusing
View GitHub Profile
@obiPlabon
obiPlabon / for-rasel-bro.php
Last active November 23, 2020 23:57
Elementor snippet to get the option name from a repeater select field by passing option key
<?php
'title_field' => "<#
// This snippet doesn't ensure that it won't throw any error if there's no row/repeater item
// Make sure to check that
// First get the repeater control
var repeaterControl = elementor.getPanelView().getCurrentPageView().children.find(function(view) {
return view.model.get('name') === 'staffs';
}),
@oooh-boi
oooh-boi / gist:3e3fbb773ebbd647b92de8880aa4c5ef
Last active August 5, 2022 07:39
CSS and jQuery code used in "Custom Slider in Elementor built with Elementor" video tutorial
/* ---------- CSS
- should be "attached" to the master Section */
/* make 100% wide columns possible for Desktop devices in Elementor */
.custom-swiper .elementor-container .elementor-row {
/*flex-wrap: wrap;*/
}
/* make all the colums-slides 100% wide and full screen tall */
.custom-swiper > .elementor-container > .elementor-row > .elementor-element.elementor-column {
width: 100%;
@TANVIRFAZLEY
TANVIRFAZLEY / ifelsedemo.php
Last active October 8, 2022 12:03
If else example
<?php
/* Provide an example of an "if – elseif - else" control structure that tests if $day is ‘Monday.’
If so, display ‘Today is Monday.’ Repeat the test of each weekday, displaying ‘Today is (name of the week day),
’ otherwise display “It is the weekend.”*/
$dayname = 'Monday';
if($dayname = 'Monday') :
echo 'Today is Monday.';
elseif() :
echo 'Today is ';
@gabrielem
gabrielem / class-milo-shortcodes.php
Created March 12, 2016 18:06
milo-shortcodes/includes/class-milo-shortcodes.php
<?php
/**
* The file that defines the core plugin class
*
* A class definition that includes attributes and functions used across both the
* public-facing side of the site and the admin area.
*
* @link http://www.europadns.com/
* @since 1.0.0