Property | Type | Description | |
---|---|---|---|
$__version | string | Override version | |
$assetsURL | string | The Theme URL more assets/. This property is very useful for read style sheet and Javascript file in the 'assets' folder. | |
$classPath | string | The Filesystem theme path more classes/ | |
$cssURL | string | The Theme URL more assets/css/ | |
$imagesURL | string | The Theme URL more assets/css/images/ | |
$javascriptURL | string | The Theme URL more assets/js/ | |
$path | string | Filesystem theme path. Alias TEMPLATEPATH | |
$setup | WPDKThemeSetup | Theme Setup class model | |
$theme | WP_Theme | Instance of WP_Theme class |
Method | Description | |
---|---|---|
__construct ( string $file, boolean | WPDKThemeSetup $setup = false ) : WPDKTheme | Create an instance of WPDKTheme class | |
_after_setup_theme ( ) | Internal use | |
_body_classes ( $classes ) | Add a your custom class in body tag class attribute and make the array (classes attribute) unique. | |
_init ( ) | Do a several Clean Up | |
_wp_head ( ) | Print scripts or data in the head tag on the front end. | |
admin_init ( ) | This action is used to avoid display the admin backend area to subscriber user | |
after_setup_theme ( ) | Setup theme | |
ajax ( ) | Subclass for init Ajax gateway | |
autoloadEnvironment ( string $sClassName ) | This function performs runtime autoloading of a class specifically related to this instance; this autoloading is based on previous class registering that has to be executed before. | |
image_size_names_choose ( array $sizes ) : array | Allows modification of the list of image sizes that are available to administrators in the WordPress Media Library. | |
init_shortcode ( ) | Subclass for inti your shortcode. | |
init_theme ( ) | Init the theme | |
registerAutoloadClass ( string | array $sLoadingPath, string $mClassName = '' ) | This function records a WPX theme class into autoloading register, joined with its loading path. | |
wp_enqueue_scripts ( ) | Fires when scripts and styles are enqueued. | |
wp_footer ( ) | Subclass to insert output in the fotter | |
wp_head ( ) | Print scripts or data in the head tag on the front end. | |
wp_print_styles ( ) | Fires before styles in the $handles queue are printed. |
public __construct ( string $file, boolean | WPDKThemeSetup $setup = false ) : WPDKTheme | ||
$file | string | |
$setup | boolean | WPDKThemeSetup | Optional. A your custom theme setup class model |
return | WPDKTheme |
public _body_classes ( $classes ) |
public _wp_head ( ) |
public admin_init ( ) |
public autoloadEnvironment ( string $sClassName ) | ||
$sClassName | string | - The class that has to be loaded right now |
public image_size_names_choose ( array $sizes ) : array | ||
$sizes | array | Sizes list |
return | array |
public wp_enqueue_scripts ( ) |
public wp_print_styles ( ) |
public string $assetsURL | ||
return | string |
public string $classPath | ||
return | string |
public string $imagesURL | ||
return | string |
public string $javascriptURL | ||
return | string |