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 | |
/* | |
Plugin Name: Enviar lead para CRM | |
Plugin URI: https://github.com/iuryLandin | |
Description: Enviar lead para CRM - WebHook para formulário do Elementor | |
Author: Iury Landin | |
Version: 1.0.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
class Insert_Comment extends ElementorPro\Modules\Forms\Classes\Action_Base { | |
public function get_name() { | |
return 'insert-comment'; | |
} | |
public function get_label() { | |
return 'Insert Comment'; | |
} |
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
/* Function to create TTS shortcode */ | |
function text_to_speech_shortcode($atts) { | |
$atts = shortcode_atts( | |
array( | |
'value' => 'Na', // Default Value | |
), | |
$atts | |
); | |
$value = $atts['value']; |
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
add_action( 'elementor_pro/forms/new_record', function( $record, $ajax_handler ) { | |
$form_name = $record->get_form_settings( 'form_name' ); | |
// Change Form name according to your need | |
if ( 'your_form_name_here' == $form_name ) { | |
$raw_fields = $record->get( 'fields' ); | |
$fields = []; | |
foreach ( $raw_fields as $id => $field ) { | |
$fields[ $id ] = $field['value']; |
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 | |
namespace MyTravelElementor\Modules\Search\Widgets; | |
use MyTravelElementor\Base\Base_Widget; | |
use Elementor\Controls_Manager; | |
use Elementor\Widget_Base; | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} |
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 | |
/** | |
* Twilio Elementor Pro form integration | |
* requirements: | |
* - php7.2 or greater | |
* - twilio php helper library - https://github.com/twilio/twilio-php/archive/main.zip | |
* - copy into theme folder /twilio and ref below on init | |
*/ |
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 | |
/* | |
This is a quick a dirty way of saving JupiterX form submissions to your database, similar to how you can save the Elementor Pro ones. | |
I like the Jupiter X form widget because I work with its Hubspot action a lot, which Elementor Pro doesn't have. However the lack of local save sucks. | |
It seemed easier to implement saving submissions in the JX widget than Hubspot in the EPro one. | |
*/ | |
//Include the action class. You can save it where you want and adjust the path below | |
include_once(get_stylesheet_directory() . '/inc/localsave.php'); |
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 | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Http; | |
class ProcessHubSpotController extends Controller | |
{ |
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 | |
require_once(__DIR__ . '/vendor/autoload.php'); | |
use HubSpot\Factory; | |
use HubSpot\Client\Crm\Objects\Notes\ApiException; | |
use HubSpot\Client\Crm\Objects\Notes\Model\Filter; | |
use HubSpot\Client\Crm\Objects\Notes\Model\FilterGroup; | |
use HubSpot\Client\Crm\Objects\Notes\Model\PublicObjectSearchRequest; | |
$client = Factory::createWithAccessToken('pat-eu1-2e01d2f9-f02d-4943-b90a-b314991afa9'); |
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 namespace App; | |
enum AssociationEnum: int | |
{ | |
case CONTACT_TO_COMPANY = 1; | |
case DEAL_TO_CONTACT = 3; | |
case DEAL_TO_COMPANY = 5; | |
case QUOTE_TO_DEAL = 64; | |
case QUOTE_TO_QUOTE_TEMPLATE = 286; | |
case QUOTE_TO_LINE_ITEM = 67; |
NewerOlder