Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
/**
* Created by PhpStorm.
* User: radu
* Date: 11.08.2014
* Time: 15:25
*/
class TCB_Event_Trigger_Click extends TCB_Event_Trigger_Abstract {
/**
* should return the Event name
*
* @return mixed
*/
public function getName() {
return __( 'Click on element', 'thrive-cb' );
}
public function get_options() {
return array(
'label' => __( 'Click', 'thrive-cb' ),
'name' => $this->getName(),
);
}
}

View File

@@ -0,0 +1,65 @@
<?php
/**
* Created by PhpStorm.
* User: radu
* Date: 30.10.2014
* Time: 09:47
*/
class TCB_Event_Trigger_Exit_Intent extends TCB_Event_Trigger_Abstract {
/**
* should return the Event name
*
* @return mixed
*/
public function getName() {
return __( 'Exit intent (user about to leave the page)', 'thrive-cb' );
}
/**
* render the exit_intent settings
*
* @param $data
*
* @return string
*/
public function renderSettings( $data ) {
return $this->renderTCBSettings( 'exit_intent.php', $data );
}
/**
* setup the main code for triggering exit intent events
*
* @return mixed|void
*/
public function outputGlobalJavascript() {
if ( wp_is_mobile() ) {
return;
}
include dirname( dirname( dirname( __FILE__ ) ) ) . '/views/js/trigger_exit_intent.php';
}
/**
* only on mobile devices, if the user explicitely set this, it will trigger the action after a delay
*
* @param $config
*
* @return string
*/
public function getInstanceJavascript( $event_data ) {
$config = $event_data['config'];
if ( ! wp_is_mobile() || empty( $config['e_mobile'] ) ) {
return '';
}
return 'jQuery(function () {setTimeout(function () {jQuery(document).trigger("tve-page-event-exit")}, ' . (int) $config['e_delay'] * 1000 . ')})';
}
public function get_options() {
return array(
'label' => __( 'Exit intent', 'thrive-cb' ),
'name' => $this->getName(),
);
}
}

View File

@@ -0,0 +1,25 @@
<?php
/**
* Created by PhpStorm.
* User: radu
* Date: 11.08.2014
* Time: 15:31
*/
class TCB_Event_Trigger_Mouseover extends TCB_Event_Trigger_Abstract {
/**
* should return the Event name
*
* @return mixed
*/
public function getName() {
return __( 'Mouse over element', 'thrive-cb' );
}
public function get_options() {
return array(
'label' => __( 'Hover', 'thrive-cb' ),
'name' => $this->getName(),
);
}
}

View File

@@ -0,0 +1,52 @@
<?php
/**
* Created by PhpStorm.
* User: radu
* Date: 30.10.2014
* Time: 09:48
*/
class TCB_Event_Trigger_Timer extends TCB_Event_Trigger_Abstract {
/**
* should return the Event name
*
* @return mixed
*/
public function getName() {
return __( 'Timer (duration after page load)', 'thrive-cb' );
}
/**
* render the timer settings
*
* @param $data
*
* @return string
*/
public function renderSettings( $data ) {
return $this->renderTCBSettings( 'timer.php', $data );
}
/**
* trigger the event after a duration specified by the user
*
* @param $config
*
* @return string
*/
public function getInstanceJavascript( $event_data ) {
$config = $event_data['config'];
if ( empty( $config['t_delay'] ) ) {
return '';
}
return 'jQuery(function () {setTimeout(function () {jQuery(document).trigger("tve-page-event-timer", ["' . $config['t_delay'] . '"])}, ' . (int) $config['t_delay'] * 1000 . ')})';
}
public function get_options() {
return array(
'label' => __( 'Timer', 'thrive-cb' ),
'name' => $this->getName(),
);
}
}

View File

@@ -0,0 +1,34 @@
<?php
/**
* Created by PhpStorm.
* User: radu
* Date: 11.08.2014
* Time: 15:33
*/
class TCB_Event_Trigger_Viewport extends TCB_Event_Trigger_Abstract {
/**
* should return the Event name
*
* @return mixed
*/
public function getName() {
return __( 'Comes into viewport', 'thrive-cb' );
}
/**
* this needs to listen to window scroll and trigger events if an element enters the viewport
*
* @return mixed|void
*/
public function outputGlobalJavascript() {
include dirname( dirname( dirname( __FILE__ ) ) ) . '/views/js/trigger_viewport.php';
}
public function get_options() {
return array(
'label' => __( 'Into view', 'thrive-cb' ),
'name' => $this->getName(),
);
}
}