| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/laragon/www/prensa/wp-content/plugins/td-standard-pack/ |
Upload File : |
<?php
/*
Plugin Name: tagDiv Standard Pack
Plugin URI: https://tagdiv.com
Description: Standard Pack Support
Author: tagDiv
Version: 2.5 | built on 18.04.2024 12:54
Author URI: https://tagdiv.com
*/
//hash
define('TD_STANDARD_PACK', '4a3a1b49b2d9e88d0d2e7189313f4145');
// don't run anything else in the plugin, if the tagDiv Composer plugin is not active
if ( ! defined('TD_COMPOSER' ) ) {
add_action( 'admin_notices', function (){
$td_brand = defined('TD_COMPOSER') ? td_util::get_wl_val('tds_wl_brand', 'tagDiv') : 'tagDiv';
?>
<div class="notice notice-error is-dismissible td-plugins-deactivated-notice">
<p style="font-size: 15px; font-weight: 600; color: red; margin-bottom: 5px;">The tagDiv Standard Pack plugin requires the <?php echo $td_brand ?> Composer plugin!</p>
<br>Please check the theme plugins section to update/install/activate theme plugins.</p>
<p><a class="button button-secondary" href="admin.php?page=td_theme_plugins">Go to Theme Plugins</a></p>
</div>
<?php
});
return;
}
// the deploy mode: dev or deploy - it's set to deploy automatically on deploy
define("TD_STANDARD_PACK_DEPLOY_MODE", 'deploy');
define("TD_STANDARD_PACK_USE_LESS", false);
define('TDSP_URL', plugins_url('td-standard-pack'));
define('TSP_PATH', dirname( __FILE__ ));
//version check
require_once('tdsp_version_check.php');
add_action('td_wp_booster_legacy', function() {
define('TDSP_THEME_URL', TDSP_URL . '/' . TD_THEME_NAME);
define('TDSP_THEME_PATH', TSP_PATH . '/' . TD_THEME_NAME);
define('TDSP_COMMON_URL', TDSP_URL . '/common');
define('TDSP_COMMON_PATH', TSP_PATH . '/common');
require_once(TD_THEME_NAME . '/functions.php');
}, 9); // priority set to 9 so it can run before composer
add_action('tdm_functions', function() {
define('TDSP_THEME_URL', TDSP_URL . '/' . TD_THEME_NAME);
define('TDSP_THEME_PATH', TSP_PATH . '/' . TD_THEME_NAME);
define('TDSP_COMMON_URL', TDSP_URL . '/common');
define('TDSP_COMMON_PATH', TSP_PATH . '/common');
require_once(TD_THEME_NAME . '/functions.php');
}, 9); // priority set to 9 so it can run before composer
// load the wp booster
add_action('td_global_after', function () {
require_once "common/common.php";
});
add_filter( 'body_class', function($classes) {
$classes[] = 'td-standard-pack';
return $classes;
});
add_filter( 'admin_body_class', function($classes) {
return "$classes td-standard-pack";
});