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
[
'id' => 'device_type',
'label' => esc_html__( 'Device', 'fusion-builder' ),
'fields' => [
'options' => [
'id' => 'options',
'label' => esc_html__( 'Device Type', 'fusion-builder' ),
'description' => __( 'Select the Device.', 'fusion-builder' ),
'type' => 'select',
'choices' => [
[fusion_builder_column type="1_1" layout="1_1" background_blend_mode="overlay" first="true" last="true" hover_type="none" border_position="all" element_content="" min_height="" link=""][fusion_post_card_image layout="crossfade" aspect_ratio="1-1" custom_aspect_ratio="100" show_title="yes" show_cats="yes" show_price="yes" show_rating="yes" show_sale="yes" show_outofstock="yes" show_buttons="yes" image_link="yes" image_link_target="_self" hide_on_mobile="small-visibility,medium-visibility,large-visibility" crossfade_bg_color="hsla(var(--awb-color8-h),var(--awb-color8-s),var(--awb-color8-l),calc(var(--awb-color8-a) - 100%))" animation_direction="left" animation_speed="0.3" animation_delay="0" /][fusion_title title_type="text" rotation_effect="bounceIn" display_time="1200" highlight_effect="circle" loop_animation="off" highlight_width="9" highlight_top_margin="0" title_link="on" link_target="_self" hide_on_mobile="medium-visibility,large-visibility" sticky_display="normal,sticky" content_align="center" size="2" f
[fusion_builder_container admin_label="Hero Content" hundred_percent="no" hundred_percent_height="min" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" background_color="var(--awb-color8)" background_image="https://avada.website/cryptocurrency/wp-content/uploads/sites/110/2019/01/avada-crypto-header-bg.jpg" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" border_style="solid" admin_toggled="yes" flex_align_items="flex-start" type="flex" render_logics="W3sib3BlcmF0b3IiOiJhbmQiLCJjb21wYXJpc29uIjoibm90LWVxdWFsIiwiZmllbGQiOiJkZXZpY2VfdHlwZSIsInZhbHVlIjoibW9iaWxlIn1d" padding_top_medium="48px" padding_bottom_medium="48px" min_height="76vh" align_content="flex-end" flex_justify_content="flex-start"][fusion_builder_row][fus
[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