This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Elementor\Widget_Base; | |
use Elementor\Controls_Manager; | |
use Elementor\Repeater; | |
use Elementor\Group_Control_Typography; | |
use Elementor\Scheme_Typography; | |
use Elementor\Group_Control_Border; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( '.elementor-tab-title' ).prop('onfocus', null).off( 'focus' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'elementor/widget/render_content', function( $content, $widget ) { | |
if ( 'text-editor' === $widget->get_name() ) { | |
$content =wpautop($content); | |
} | |
return $content; | |
}, 10, 2 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('elementor/widget/render_content', function( $content, $widget ) { | |
$settings = $widget->get_settings(); | |
if (strpos($settings['_css_classes'], "portfolio-image") !== false) { | |
$caption = get_the_title(get_the_ID()); | |
$link=get_permalink(get_the_ID()); | |
$content .= '<a class="portfolio-hover" target="_blank" href="'.$link.'">' . $caption . '</a>'; | |
} | |
return $content; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if( current_user_can('editor') || current_user_can('administrator') ) { ?> | |
// stuff here for admins or editors | |
<?php } ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DynamicConditions | |
https://wordpress.org/plugins/dynamicconditions/ | |
---------------------- | |
Elementor Custom Skin | |
https://wordpress.org/plugins/ele-custom-skin/ | |
---------------------- | |
Elementor Google Map Extended | |
https://wordpress.org/plugins/extended-google-map-for-elementor/ | |
---------------------- | |
Lenix Elementor Leads addon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#target Illustrator | |
/* | |
Revision-1 | |
Author: Shivendra Agarwal | |
Year: 2017 | |
Title: Script to scale-up artwork and artboard above 15 Mpixel | |
*/ | |
if ( app.documents.length > 0 ) | |
alert("ERROR: \n Close all documents before running this script." ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects. | |
It will generate several classes such as: | |
.m-r-10 which gives margin-right 10 pixels. | |
.m-r-15 gives MARGIN to the RIGHT 15 pixels. | |
.m-t-15 gives MARGIN to the TOP 15 pixels and so on. | |
.p-b-5 gives PADDING to the BOTTOM of 5 pixels | |
.p-l-40 gives PADDING to the LEFT of 40 pixels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
At the begin: | |
@function rem-calc($size) { $remSize: $size / 16; @return #{$remSize}rem; } | |
then use it for example like this: | |
.navbar { height: rem-calc(90); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> | |
RewriteEngine On | |
RewriteCond %{HTTPS} !on | |
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ | |
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |