Skip to content

Instantly share code, notes, and snippets.

View sulmanpucit's full-sized avatar
🎯
Focusing

Salman Aslam sulmanpucit

🎯
Focusing
  • Lahore, Pakistan
View GitHub Profile
[fusion_builder_container align_content="stretch" is_nested="0" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" type="flex" flex_align_items="flex-start" flex_column_spacing="3%" flex_justify_content="flex-start" container_tag="div" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_position="center center" background_repeat="no-repeat" background_parallax="none" parallax_speed="0.3" background_blend_mode="none" opacity="100" break_parents="0" fade="no" hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" margin_top="0px" margin_bottom="0px" border_sizes_top="0px" border_sizes_bottom="0px" border_sizes_left="0px" border_sizes_right="0px" border_style="solid" equal_height_columns="no" enable_mobile="no" absolute="off" absolute_devices="small,medium,large" sticky="off" sticky_devices="small-visibility,medium-
@sulmanpucit
sulmanpucit / dl-file.php
Created September 27, 2021 15:05 — forked from hakre/dl-file.php
Wordpress login to download uploaded files
<?php
/*
* dl-file.php
*
* Protect uploaded files with login.
*
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in
*
* @author hakre <http://hakre.wordpress.com/>
* @license GPL-3.0+
<?php
// Template Name: Service Directory
?>
<?php get_header(); ?>
<?php
/**
* Instantiate the Avada_Contact class
*/
[fusion_builder_container type="flex" hundred_percent="no" hundred_percent_height="no" min_height="" hundred_percent_height_scroll="no" align_content="stretch" flex_align_items="flex-start" flex_justify_content="flex-start" flex_column_spacing="" hundred_percent_height_center_content="yes" equal_height_columns="no" container_tag="div" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" id="" link_color="" link_hover_color="" border_sizes="" border_sizes_top="" border_sizes_right="" border_sizes_bottom="" border_sizes_left="" border_color="" border_style="solid" spacing_medium="" margin_top_medium="" margin_bottom_medium="" spacing_small="" margin_top_small="" margin_bottom_small="" margin_top="" margin_bottom="" padding_dimensions_medium="" padding_top_medium="" padding_right_medium="" padding_bottom_medium="" padding_left_medium="" padding_dimensions_small="" padding_top_small="" padding_right_small="" padding_bottom_small="" padding
!(function (e, t, a) {
function n() {
c(".circle{width: 10px;height: 10px;position: fixed;background: #f00;border-radius:50%}"), o(), r();
}
function r() {
for (var e = 0; e < d.length; e++)
d[e].alpha <= 0
? (t.body.removeChild(d[e].el), d.splice(e, 1))
: (d[e].y--,
(d[e].scale += 0.004),
<?php
namespace Leadin\admin;
use Leadin\LeadinOptions;
/**
* Class containing all the filters used for the admin side of the plugin.
*/
class AdminFilters {
/**
[fusion_builder_container type="flex" hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" align_content="stretch" flex_align_items="flex-start" flex_justify_content="flex-start" hundred_percent_height_center_content="yes" equal_height_columns="no" container_tag="div" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" background_blend_mode="none" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" absolute="off" absolute_devices="small,medium,large" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" sticky_transition_offset="0" scroll_offset="0" animation_di
if [ $# -lt 1 ]; then
echo "------------------------"
echo "usage: $0 \$1"
echo " \$1: Git branch to checkout."
echo "usage: $0 tag \$2"
echo " \$2: Tag to checkout."
echo "usage: $0 tag \$2 update_version"
echo " \$2: Tag to checkout."
echo " : Update WP DB version."
echo "usage: $0 date \$2 \$3"
[fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" align_content="stretch" flex_align_items="center" flex_justify_content="flex-start" hundred_percent_height_center_content="yes" equal_height_columns="no" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" border_style="solid" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="180" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" background_blend_mode="none" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" container_tag="div" absolute="off" absolute_devices="small,medium,large" sticky="off" sticky_devices="small-visibility,medium-visibility,large-visibility" sticky_transition_offset="0" scroll_offset="0" animation_direction="left" a
[fusion_builder_container hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="yes" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" border_style="solid" gradient_start_color="#0b2621" gradient_end_color="" gradient_start_position="0" gradient_end_position="100" gradient_type="linear" radial_direction="center center" linear_angle="0" background_image="http://localhost/avada-dev/wp-content/uploads/2019/12/landscaper-cta-background-4.jpg" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" background_blend_mode="none" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" filter_hue="0" filter_saturation="100" filter_brightness="100" filter_contrast="100" filter_invert="0" filter_sepia="0" filter_opacity="100" filter_blur="0" filter_hue_hover="0" filter_saturation_hover="100" filter_