- 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>
91 lines
3.2 KiB
PHP
Executable File
91 lines
3.2 KiB
PHP
Executable File
<?php
|
|
|
|
|
|
class OPanda_SocialLocker_Detailed_StatsTable extends OPanda_StatsTable {
|
|
|
|
public function getColumns() {
|
|
|
|
return array(
|
|
'index' => array(
|
|
'title' => ''
|
|
),
|
|
'title' => array(
|
|
'title' => __('Post Title', 'sociallocker')
|
|
),
|
|
'unlock' => array(
|
|
'title' => __('Total', 'sociallocker'),
|
|
'hint' => __('The total number of unlocks made by visitors.', 'sociallocker'),
|
|
'highlight' => true,
|
|
'cssClass' => 'opanda-col-number'
|
|
),
|
|
'channels' => array(
|
|
'title' => __('Unlocks Via', 'sociallocker'),
|
|
'cssClass' => 'opanda-col-common',
|
|
'columns' => array(
|
|
'unlock-via-facebook-like' => array(
|
|
'title' => __('FB Like'),
|
|
'cssClass' => 'opanda-col-number'
|
|
),
|
|
'unlock-via-facebook-share' => array(
|
|
'title' => __('FB Share'),
|
|
'cssClass' => 'opanda-col-number'
|
|
),
|
|
'unlock-via-twitter-tweet' => array(
|
|
'title' => __('Twitter Tweet'),
|
|
'cssClass' => 'opanda-col-number'
|
|
),
|
|
'unlock-via-twitter-follow' => array(
|
|
'title' => __('Twitter Follow'),
|
|
'cssClass' => 'opanda-col-number'
|
|
),
|
|
'unlock-via-youtube-subscribe' => array(
|
|
'title' => __('YouTube Subscribe'),
|
|
'cssClass' => 'opanda-col-number'
|
|
),
|
|
'unlock-via-linkedin-share' => array(
|
|
'title' => __('LinkedIn Share'),
|
|
'cssClass' => 'opanda-col-number'
|
|
)
|
|
)
|
|
)
|
|
);
|
|
}
|
|
}
|
|
|
|
class OPanda_SocialLocker_Detailed_StatsChart extends OPanda_StatsChart {
|
|
|
|
public $type = 'line';
|
|
|
|
public function getFields() {
|
|
|
|
return array(
|
|
'aggregate_date' => array(
|
|
'title' => __('Date')
|
|
),
|
|
'unlock-via-facebook-like' => array(
|
|
'title' => __('FB Likes'),
|
|
'color' => '#7089be'
|
|
),
|
|
'unlock-via-facebook-share' => array(
|
|
'title' => __('FB Shares'),
|
|
'color' => '#566a93'
|
|
),
|
|
'unlock-via-twitter-tweet' => array(
|
|
'title' => __('Tweets'),
|
|
'color' => '#3ab9e9'
|
|
),
|
|
'unlock-via-twitter-follow' => array(
|
|
'title' => __('Twitter Followers'),
|
|
'color' => '#1c95c3'
|
|
),
|
|
'unlock-via-youtube-subscribe' => array(
|
|
'title' => __('YouTube Subscribe'),
|
|
'color' => '#8f352b'
|
|
),
|
|
'unlock-via-linkedin-share' => array(
|
|
'title' => __('LinkedIn Shares'),
|
|
'color' => '#006080'
|
|
)
|
|
);
|
|
}
|
|
} |