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
.c-posts { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
flex-wrap: wrap; | |
max-width: 1024px; | |
} | |
.c-post { | |
flex: 0 0 25%; |
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 | |
// make sure this line is here, the Widget Base belongs to Elementor Namespace | |
namespace Elementor; | |
if ( !defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
// Extend the \Elementor\Widget_Base class | |
class My_Widget_Custom_Blog_Loop extends 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 | |
/** | |
* Custom Elementor Widgets | |
*/ | |
class Custom_Elementor_Widgets { | |
protected static $instance = null; | |
public static function get_instance(){ | |
if ( !isset( static::$instance ) ) { |
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 | |
// make sure this line is here, the Widget Base belongs to Elementor Namespace | |
namespace Elementor; | |
if ( !defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
// Extend the \Elementor\Widget_Base class |
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 | |
protected function _register_controls() { | |
// Section Title | |
$this->start_controls_section( | |
'section_title', | |
[ | |
'label' => __( 'RAC Product Filters', '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 | |
// note: previous code above | |
// used to identify our widget | |
public function get_name() { | |
return 'rac-product-filters'; | |
} | |
// this is what the Widget name visible from the Widget Screen | |
public function get_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 | |
namespace Elementor; | |
class Widget_Product_Filters extends 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 | |
/* part of a php CLASS */ | |
add_filter( 'gform_field_value_v_vin', array($this, 'vehicle_vin_population') ); | |
public function vehicle_vin_population( $value ){ | |
if($this->vehicle_id != 0) { | |
return get_field('v_vin', $this->vehicle_id); | |
} | |
} |
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 | |
/* part of a PHP Class */ | |
public function login_form_after_submission($entry, $form) { | |
// get the username or email and pass | |
$username_or_email = $entry[1]; | |
$pass = $entry[3]; | |
$creds = array(); | |
// create the credentials array | |
if( email_exists($username_or_email) ){ | |
$user = get_user_by( 'email', $username_or_email ); |
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
<h2>Heading 2</h2> | |
Lorem ipsum dolor sit amet, <a href="http://www.example.org">consectetuer adipiscing</a> elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud <strong>exerci tation</strong> ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. | |
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse <em>molestie consequat</em>, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio <abbr title="dignissim qui blandit">dqb</abbr> praesent luptatum | |
zzril delenit augue duis dolore te feugait nulla facilisi. | |
<a href="#"><img class="alignright" src="http://placehold.it/150x100" alt="" /></a> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam,ac | |
quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem v |