Files
roi-theme/wp-content/plugins/sociallocker-next-premium/plugin/admin/pages/license-manager.php
root a22573bf0b 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>
2025-11-03 21:04:30 -06:00

38 lines
987 B
PHP
Executable File

<?php
/**
* License page is a place where a user can check updated and manage the license.
*/
class SocialLocker_LicenseManagerPage extends OnpLicensing325_LicenseManagerPage {
public $purchasePrice = '$28';
public function configure() {
if( !current_user_can('administrator') )
$this->capabilitiy = "manage_opanda_licensing";
$this->purchasePrice = '$27'; global $sociallocker;
if ( in_array( $sociallocker->license->type, array( 'free' ) ) ) {
$this->menuTitle = __('Social Locker', 'plugin-sociallocker');
$this->menuIcon = BizPanda::getMenuIcon();
}
global $sociallocker;
if ( !in_array( $sociallocker->license->type, array( 'free' ) ) ) {
$this->menuPostType = OPANDA_POST_TYPE;
}
}
}
FactoryPages321::register($sociallocker, 'SocialLocker_LicenseManagerPage');