C:\xampp\htdocs\landing\wp-content\plugins\wp-asset-clean-up\classes\Lite.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
namespace WpAssetCleanUp;

/**
 * The code is triggered only in Asset CleanUp Lite
 *
 * Class Lite
 * @package WpAssetCleanUp
 */
class Lite
{
    
/**
     * Lite constructor.
     */
    
public function __construct()
    {
        
add_action('current_screen', array($this'currentScreen'));

        }

    
/**
     *
     */
    
public function currentScreen()
    {
        
$current_screen = \get_current_screen();

        if (
$current_screen->base === 'term' && isset($current_screen->taxonomy) && $current_screen->taxonomy != '') {
            
add_action ($current_screen->taxonomy '_edit_form_fields', static function ($tag) {
                
?>
                <tr class="form-field">
                    <th scope="row" valign="top"><label for="wpassetcleanup_list"><?php echo WPACU_PLUGIN_TITLE?><?php _e('CSS &amp; JavaScript Load Manager''wp-asset-clean-up'); ?></label></th>
                    <td data-wpacu-taxonomy="<?php echo $tag->taxonomy?>">
                        <img width="20" height="20" src="<?php echo WPACU_PLUGIN_URL?>/assets/icons/icon-lock.svg" valign="top" alt="" /> &nbsp;
                        <?php
                        
echo sprintf(
                            
__('Managing the loading of the styles &amp; scripts files for this <strong>%s</strong> taxonomy is %savailable in the Pro version%s''wp-asset-clean-up'),
                            
$tag->taxonomy,
                            
'<a href="'.WPACU_PLUGIN_GO_PRO_URL.'?utm_source=taxonomy_edit_page&utm_medium=upgrade_link" target="_blank">',
                            
'</a>'
                        
);
                        
?>
                    </td>
                </tr>
                <?php
            
});
        }
    }

    }
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586