This file contains 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 | |
class PE_Random_Post extends WP_Widget { | |
public function __construct() { | |
// actual widget processes | |
parent::__construct( | |
'pe_random_post', // Base ID | |
'Random Post', // Name | |
array( 'description' => __( 'Display random post in sidebar widget.', 'projectsengine' ), ) // Args |
This file contains 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 | |
function pe_custom_post_product() { | |
$labels = array( | |
'name' => _x( 'Products', 'post type general name' ), | |
'singular_name' => _x( 'Product', 'post type singular name' ), | |
'add_new' => _x( 'Add New', 'book' ), | |
'add_new_item' => __( 'Add New Product' ), | |
'edit_item' => __( 'Edit Product' ), | |
'new_item' => __( 'New Product' ), |
This file contains 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 | |
// Wrap two adjacent elements in a containing div using jQuery. | |
function pe_load_js() { | |
?> | |
<script type='text/javascript'> | |
jQuery(document).ready(function ($) { | |
$("#billing_customer_age_field span input").each(function(index) { |
This file contains 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 | |
/** | |
* Projects Engine | |
* | |
* @copyright Copyright (C) 2021-2021, Projects Engine - contact@projectsengine.com | |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 or higher | |
* | |
* @wordpress-plugin | |
* Plugin Name: Projects Engine | |
* Version: 1.9.2 |
This file contains 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 | |
/** | |
* PE_Elementor class. | |
* | |
* @category Class | |
* @package PEElementor | |
* @subpackage WordPress | |
* @author Dragi Postolovski <contact@projectsengine.com> | |
* @copyright 2021 Dragi Postolovski |
This file contains 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 | |
// We check if the Elementor plugin has been installed / activated. | |
if ( ! in_array( 'elementor/elementor.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
return; | |
} | |
/** | |
* Include the widgets and create a custom category. | |
* |
This file contains 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\Controls_Manager; | |
use Elementor\Group_Control_Background; | |
use Elementor\Plugin; | |
use Elementor\Widget_Base; | |
if ( ! defined( 'ABSPATH' ) ) { | |
// Exit if accessed directly. | |
exit; |
This file contains 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\Controls_Manager; | |
use Elementor\Group_Control_Background; | |
use Elementor\Plugin; | |
use Elementor\Widget_Base; | |
if ( ! defined( 'ABSPATH' ) ) { | |
// Exit if accessed directly. | |
exit; |
This file contains 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\Controls_Manager; | |
use Elementor\Group_Control_Background; | |
use Elementor\Plugin; | |
use Elementor\Widget_Base; | |
if ( ! defined( 'ABSPATH' ) ) { | |
// Exit if accessed directly. | |
exit; |
This file contains 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
// WordPress | |
jQuery(document).ready(function ( $ ) { | |
let payment = $('#your-button'); | |
// let secureFields = new SecureFields(); | |
let styles = { | |
// your style goes here | |
// Specific Style for Each Element | |
cardNumber: "border: 1px solid #eaeaea; height: 40px; padding: 10px; " + |
OlderNewer