| 1 |
<?php |
| 2 |
/* |
| 3 |
* Widget being added soon |
| 4 |
*/ |
| 5 |
|
| 6 |
//add_action( 'init', 'kadence_toolkit_initialize_theme_widgets', 5 ); |
| 7 |
function kadence_toolkit_initialize_theme_widgets() { |
| 8 |
$the_theme = wp_get_theme(); |
| 9 |
if ( 'Pinnacle' == $the_theme->get( 'Name' ) || 'pinnacle' == $the_theme->get( 'Template') ) { |
| 10 |
require_once( VIRTUE_TOOLKIT_PATH .'widgets/class-kad-image-widget.php'); |
| 11 |
} else if( 'Virtue' == $the_theme->get( 'Name' ) || 'virtue' == $the_theme->get( 'Template') ) { |
| 12 |
require_once( VIRTUE_TOOLKIT_PATH .'widgets/class-simple-about-with-image.php'); |
| 13 |
} else if( 'Ascend' == $the_theme->get( 'Name' ) || 'ascend' == $the_theme->get( 'Template') ) { |
| 14 |
require_once( VIRTUE_TOOLKIT_PATH .'widgets/class-ascend-image-widget.php'); |
| 15 |
} |
| 16 |
|
| 17 |
} |
| 18 |
|