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 to functions.php in child theme | |
function e_collapse_sections(){ | |
?> | |
<!-- Scripts and styles should enqueued properly but for the sake of having it all in one function...--> | |
<script> | |
if ( self !== top ) { // Check if we're in a preview window / iframe | |
jQuery(document).ready(function($){ |
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 | |
/** | |
* Plugin Name: Elementor Form Additional Webhook | |
* Plugin URI: https://coreysalzano.com/ | |
* Description: Adds a second Webhook to the Lot Wizard trial signup form | |
* Version: 1.0.0 | |
* Author: Corey Salzano | |
* Author URI: https://github.com/mistercorey | |
* License: GPLv2 or later | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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
var paramsSheetName = "GitHub Params"; | |
function createGitHubParams() { | |
var sheets = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = sheets.insertSheet(paramsSheetName); | |
sheet.appendRow(["API Token", "TODO"]); | |
sheet.appendRow(["Owner", "TODO"]); | |
sheet.appendRow(["Repository", "TODO"]); | |
} |
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 | |
namespace ElementorLandingPress\Widgets; | |
use Elementor\Controls_Manager; | |
use Elementor\Group_Control_Border; | |
use Elementor\Group_Control_Typography; | |
use Elementor\Scheme_Color; | |
use Elementor\Scheme_Typography; | |
use Elementor\Utils; | |
use Elementor\Widget_Base; |
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 | |
/** | |
* Elementor get the local templates via a CPT query and use a filter to let us change the template data | |
* https://github.com/pojome/elementor/blob/master/includes/template-library/sources/local.php#L202 | |
* In ouy theme or plugin we can hook that filter as follow | |
* | |
* This filter change the source only for the *page* template type to show it in the main tab | |
* @see https://cl.ly/1z2Y1n2x0K0F | |
**/ |
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 // Leave this out if you already have an opening php tag in your file! | |
function elementor_accordion_title() { ?> | |
<script> | |
jQuery(document).ready(function() { | |
jQuery('.elementor-accordion-title').removeClass('active'); | |
jQuery('.elementor-accordion-content').css('display', 'none'); | |
}); | |
</script> | |
<?php } | |
add_action( 'wp_footer', 'elementor_accordion_title' ); |
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 Image Stretch Option Control to the Image Gallery Widget */ | |
add_action( 'elementor/element/before_section_end', function( $element, $section_id, $args ) { | |
/** @var \Elementor\Element_Base $element */ | |
if ( 'image-gallery' === $element->get_name() && 'section_gallery' === $section_id ) { | |
$element->add_control( | |
'image_stretch', | |
[ | |
'label' => __( 'Image Stretch', 'elementor' ), |
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 | |
// Elementor Class | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
// This file is pretty much a boilerplate WordPress plugin. | |
// It does very little except including wp-widget.php | |
class ElementorRecentProduct { | |
private static $instance = null; |
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 | |
// This example will add a custom "select" drop down to the "Image Box" | |
// This will change the class="" on the rendered image box so we can style the Image Box differently | |
// based on the selected option from the editor. | |
// The class will be "my-image-box-style-blue" or "my-image-box-style-green" based on the selected option. | |
add_action('elementor/element/before_section_end', function( $section, $section_id, $args ) { | |
if( $section->get_name() == 'image-box' && $section_id == 'section_image' ){ | |
// we are at the end of the "section_image" area of the "image-box" | |
$section->add_control( |
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 | |
/** | |
* Template Name: Elementor | |
* | |
* @package WordPress | |
* @subpackage Orangeweb | |
* @since 1.0.0 | |
* | |
* 2016 - Desenvolvido por Agência Orangeweb - www.orangeweb.com.br | |
*/ |