/var/www/hkosl.com/aga/wp-content/plugins/jetpack/modules/minileven.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
51
52
53
54
55
56
57
<?php

/**
 * Module Name: Mobile Theme
 * Module Description: Enable the Jetpack Mobile theme
 * Sort Order: 21
 * Recommendation Order: 11
 * First Introduced: 1.8
 * Requires Connection: No
 * Auto Activate: No
 * Module Tags: Appearance, Mobile, Recommended
 * Feature: Appearance
 * Additional Search Queries: mobile, theme, minileven
 */

function jetpack_load_minileven() {
    include 
dirname__FILE__ ) . "/minileven/minileven.php";

    if ( 
Jetpack_Options::get_option_and_ensure_autoload'wp_mobile_app_promos''0' ) != '1' )
        
remove_action'wp_mobile_theme_footer''jetpack_mobile_app_promo' );
}

add_action'jetpack_modules_loaded''minileven_loaded' );

function 
minileven_loaded() {
    
Jetpack::enable_module_configurable__FILE__ );
}

function 
minileven_theme_root$theme_root ) {
    if ( 
jetpack_check_mobile() ) {
        return 
dirname__FILE__ ) . '/minileven/theme';
    }

    return 
$theme_root;
}

add_filter'theme_root''minileven_theme_root' );

function 
minileven_theme_root_uri$theme_root_uri ) {
    if ( 
jetpack_check_mobile() ) {
        return 
plugins_url'modules/minileven/theme'dirname__FILE__ ) );
    }

    return 
$theme_root_uri;
}

add_filter'theme_root_uri''minileven_theme_root_uri' );

function 
minileven_enabled$wp_mobile_disable_option ) {
    return 
true;
}

if ( 
defined'IS_WPCOM' ) && IS_WPCOM ) {
    
add_filter'option_wp_mobile_disable''minileven_enabled' );
}

jetpack_load_minileven();