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,134 @@
<?php
class OPanda_SignInLocker_Bounces_StatsTable extends OPanda_StatsTable {
public function getColumns() {
return array(
'index' => array(
'title' => ''
),
'title' => array(
'title' => __('Post Title', 'signinlocker')
),
'impress' => array(
'title' => __('Impressions', 'signinlocker'),
'highlight' => true,
'cssClass' => 'opanda-col-number'
),
'users' => array(
'title' => __('Visitors Who', 'signinlocker'),
'cssClass' => 'opanda-col-common',
'columns' => array(
/*
'ignored' => array(
'title' => __('Ignored Locker', 'signinlocker'),
'hint' => __('The number of visitors who viewed the locker but didn\'t try to interact with the one (no clicks on any buttons).', 'signinlocker'),
'cssClass' => 'opanda-col-number'
),*/
'errors' => array(
'title' => __('Faced Errors', 'signinlocker'),
'hint' => __('Visitors who faced with any errors and were not able to unlock the content. This value normally should be equal 0. If not, please check settings of your locker or contact OnePress support.', 'signinlocker'),
'cssClass' => 'opanda-col-number'
),
'social-fails' => array(
'title' => __('Declined Social Apps', 'signinlocker'),
'hint' => __('Visitors who refused to authorize of your social apps. If you think this value is too large, try to set less social actions to be performed on signing in through social networks.', 'signinlocker'),
'cssClass' => 'opanda-col-number'
)
)
)
);
}
public function columnIgnored( $row ) {
if ( !isset( $row['impress'] ) ) $row['impress'] = 0;
if ( !isset( $row['interaction'] ) ) $row['interaction'] = 0;
$diff = $row['impress'] - $row['interaction'];
if ( $diff < 0 ) $diff = 0;
echo $diff;
}
public function columnErrors( $row ) {
if ( !isset( $row['error'] ) ) $row['error'] = 0;
echo $row['error'];
}
public function columnNotConfirmed( $row ) {
if ( !isset( $row['email-received'] ) ) $row['email-received'] = 0;
if ( !isset( $row['email-confirmed'] ) ) $row['email-confirmed'] = 0;
$diff = $row['email-received'] - $row['email-confirmed'];
if ( $diff < 0 ) $diff = 0;
echo $diff;
}
public function columnSocialFails( $row ) {
if ( !isset( $row['social-app-declined'] ) ) $row['social-app-declined'] = 0;
echo $row['social-app-declined'];
}
}
class OPanda_SignInLocker_Bounces_StatsChart extends OPanda_StatsChart {
public $type = 'column';
public function getFields() {
return array(
'aggregate_date' => array(
'title' => __('Date')
),
/*
'ignored' => array(
'title' => __('Who Ignored Locker', 'signinlocker'),
'cssClass' => 'opanda-col-number',
'color' => '#cccccc'
),*/
'errors' => array(
'title' => __('Who Faced Errors', 'signinlocker'),
'cssClass' => 'opanda-col-number',
'color' => '#F97D81'
),
'social-fails' => array(
'title' => __('Who Declined Social Apps', 'signinlocker'),
'cssClass' => 'opanda-col-number',
'color' => '#29264E'
)
);
}
public function fieldIgnored( $row ) {
if ( !isset( $row['impress'] ) ) $row['impress'] = 0;
if ( !isset( $row['interaction'] ) ) $row['interaction'] = 0;
$diff = $row['impress'] - $row['interaction'];
if ( $diff < 0 ) $diff = 0;
return $diff;
}
public function fieldErrors( $row ) {
if ( !isset( $row['error'] ) ) $row['error'] = 0;
return $row['error'];
}
public function fieldNotConfirmed( $row ) {
if ( !isset( $row['email-received'] ) ) $row['email-received'] = 0;
if ( !isset( $row['email-confirmed'] ) ) $row['email-confirmed'] = 0;
$diff = $row['email-received'] - $row['email-confirmed'];
if ( $diff < 0 ) $diff = 0;
return $diff;
}
public function fieldSocialFails( $row ) {
if ( !isset( $row['social-app-declined'] ) ) $row['social-app-declined'] = 0;
return $row['social-app-declined'];
}
}

View File

@@ -0,0 +1,77 @@
<?php
class OPanda_SignInLocker_Channels_StatsTable extends OPanda_StatsTable {
public function getColumns() {
return array(
'index' => array(
'title' => ''
),
'title' => array(
'title' => __('Post Title', 'signinlocker')
),
'unlock' => array(
'title' => __('Number of Unlocks', 'signinlocker'),
'hint' => __('The number of unlocks made by visitors.', 'signinlocker'),
'highlight' => true,
'cssClass' => 'opanda-col-number'
),
'unlock-via-form' => array(
'title' => __('Via Opt-In Form'),
'cssClass' => 'opanda-col-number'
),
'unlock-via-facebook' => array(
'title' => __('Via Facebook'),
'cssClass' => 'opanda-col-number'
),
'unlock-via-twitter' => array(
'title' => __('Via Twitter'),
'cssClass' => 'opanda-col-number'
),
'unlock-via-google' => array(
'title' => __('Via Google'),
'cssClass' => 'opanda-col-number'
),
'unlock-via-linkedin' => array(
'title' => __('Via LinkedIn'),
'cssClass' => 'opanda-col-number'
)
);
}
}
class OPanda_SignInLocker_Channels_StatsChart extends OPanda_StatsChart {
public $type = 'line';
public function getFields() {
return array(
'aggregate_date' => array(
'title' => __('Date')
),
'unlock-via-form' => array(
'title' => __('Via Opt-In Form'),
'color' => '#31ccab'
),
'unlock-via-facebook' => array(
'title' => __('Via Facebook'),
'color' => '#7089be'
),
'unlock-via-twitter' => array(
'title' => __('Via Twitter'),
'color' => '#3ab9e9'
),
'unlock-via-google' => array(
'title' => __('Via Google'),
'color' => '#e26f61'
),
'unlock-via-linkedin' => array(
'title' => __('Via LinkedIn'),
'color' => '#006080'
)
);
}
}

View File

@@ -0,0 +1,134 @@
<?php
class OPanda_SignInLocker_Profits_StatsTable extends OPanda_StatsTable {
public function getColumns() {
$columns = array(
'index' => array(
'title' => ''
),
'title' => array(
'title' => __('Post Title', 'signinlocker')
),
'unlock' => array(
'title' => __('Unlocks', 'signinlocker'),
'hint' => __('The number of unlocks made by visitors.', 'signinlocker'),
'highlight' => true,
'cssClass' => 'opanda-col-number'
)
);
$columns['leads'] = array(
'title' => __('Leads', 'signinlocker'),
'hint' => __('The number of new leads collected via the locker.', 'signinlocker'),
'cssClass' => 'opanda-col-number'
);
$columns['account-registered'] = array(
'title' => __('Users Registered', 'signinlocker'),
'hint' => __('The number of new accounts created via the locker.', 'signinlocker'),
'cssClass' => 'opanda-col-number',
'prefix' => '+'
);
if ( BizPanda::hasPlugin('sociallocker') ) {
$columns['got-twitter-follower'] = array(
'title' => __('Twitter Followers', 'signinlocker'),
'hint' => __('The number of new followers attracted via the locker.', 'signinlocker'),
'cssClass' => 'opanda-col-number',
'prefix' => '+'
);
$columns['tweet-posted'] = array(
'title' => __('Tweets', 'signinlocker'),
'hint' => __('The number of new tweets posted via the locker.', 'signinlocker'),
'cssClass' => 'opanda-col-number',
'prefix' => '+'
);
$columns['got-youtube-subscriber'] = array(
'title' => __('Youtube Subscribers', 'signinlocker'),
'hint' => __('The number of new subscribers attracted via the locker.', 'signinlocker'),
'cssClass' => 'opanda-col-number',
'prefix' => '+'
);
/*
$columns['got-linkedin-follower'] = array(
'title' => __('LinkedIn Followers', 'signinlocker'),
'hint' => __('The number of new followers attracted via the locker.', 'signinlocker'),
'cssClass' => 'opanda-col-number',
'prefix' => '+'
);
*/
}
return $columns;
}
public function columnLeads( $row ) {
if ( !isset( $row['email-received'] ) ) $row['email-received'] = 0;
if ( $row['email-received'] > 0 ) echo '+';
echo $row['email-received'];
}
}
class OPanda_SignInLocker_Profits_StatsChart extends OPanda_StatsChart {
public $type = 'line';
public function getFields() {
$fields = array();
$fields['aggregate_date'] = array(
'title' => __('Date')
);
if ( BizPanda::hasPlugin('optinpanda') ) {
$fields['got-twitter-follower'] = array(
'title' => __('Emails', 'signinlocker'),
'color' => '#FFCC66'
);
}
$fields['leads'] = array(
'title' => __('Leads Collected', 'signinlocker'),
'color' => '#FFCC66'
);
$fields['account-registered'] = array(
'title' => __('Users Registered', 'signinlocker'),
'color' => '#336699'
);
if ( BizPanda::hasPlugin('sociallocker') ) {
$fields['tweet-posted'] = array(
'title' => __('Twitter Tweets', 'signinlocker'),
'color' => '#3bb4ea'
);
$fields['got-twitter-follower'] = array(
'title' => __('Twitter Followers', 'signinlocker'),
'color' => '#1e92c9'
);
$fields['got-youtube-subscriber'] = array(
'title' => __('Youtube Subscribers', 'signinlocker'),
'color' => '#ba5145'
);
/*
$fields['got-linkedin-follower'] = array(
'title' => __('LinkedIn Followers', 'signinlocker'),
'color' => '#006080'
);
*/
}
return $fields;
}
}

View File

@@ -0,0 +1,59 @@
<?php
class OPanda_SignInLocker_Skips_StatsTable extends OPanda_StatsTable {
public function getColumns() {
return array(
'index' => array(
'title' => ''
),
'title' => array(
'title' => __('Post Title', 'signinlocker')
),
'unlock' => array(
'title' => __('Number of Unlocks', 'signinlocker'),
'hint' => __('The number of unlocks made by visitors.', 'signinlocker'),
'highlight' => true,
'cssClass' => 'opanda-col-number'
),
'skip-via-timer' => array(
'title' => __('Skipped by Timer'),
'cssClass' => 'opanda-col-number'
),
'skip-via-cross' => array(
'title' => __('Skipped by Close Icon'),
'cssClass' => 'opanda-col-number'
)
);
}
}
class OPanda_SignInLocker_Skips_StatsChart extends OPanda_StatsChart {
public $type = 'column';
public function getFields() {
return array(
'aggregate_date' => array(
'title' => __('Date')
),
'unlock' => array(
'title' => __('Number of Unlocks', 'signinlocker'),
'color' => '#0074a2'
),
'skip-via-timer' => array(
'title' => __('Skipped by Timer'),
'color' => '#333333'
),
'skip-via-cross' => array(
'title' => __('Skipped by Close Icon'),
'color' => '#dddddd'
)
);
}
}

View File

@@ -0,0 +1,51 @@
<?php
class OPanda_SignInLocker_Summary_StatsTable extends OPanda_StatsTable {
public function getColumns() {
return array(
'index' => array(
'title' => ''
),
'title' => array(
'title' => __('Post Title', 'signinlocker')
),
'impress' => array(
'title' => __('Impressions', 'signinlocker'),
'cssClass' => 'opanda-col-number'
),
'unlock' => array(
'title' => __('Number of Unlocks', 'signinlocker'),
'hint' => __('The number of unlocks made by visitors.', 'signinlocker'),
'highlight' => true,
'cssClass' => 'opanda-col-number'
),
'conversion' => array(
'title' => __('Conversion', 'signinlocker'),
'hint' => __('The ratio of the number of unlocks to impressions, in percentage.', 'signinlocker'),
'cssClass' => 'opanda-col-number'
)
);
}
}
class OPanda_SignInLocker_Summary_StatsChart extends OPanda_StatsChart {
public function getSelectors() {
return null;
}
public function getFields() {
return array(
'aggregate_date' => array(
'title' => __('Date')
),
'unlock' => array(
'title' => __('Number of Unlocks'),
'color' => '#0074a2'
)
);
}
}