Created
February 12, 2019 10:39
-
-
Save ashour/b71db2d8e108ae1614e9670ce68c5c50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/classes/HMT_Language_Switcher_Widget.php'; | |
// ... | |
/** | |
* Register our sidebars and widgetized areas. | |
*/ | |
function hmt_widgets_init() | |
{ | |
register_sidebar(array( | |
'name' => __('Trailing Main Navigation'), | |
'id' => 'trailing_main_nav', | |
'before_widget' => '<div>', | |
'after_widget' => '</div>', | |
'before_title' => '<h2>', | |
'after_title' => '</h2>', | |
)); | |
} | |
add_action('widgets_init', 'hmt_widgets_init'); | |
/** | |
* Register our widgets. | |
*/ | |
function hmt_language_switcher_widget() | |
{ | |
register_widget('HMT_Language_Switcher_Widget'); | |
} | |
add_action('widgets_init', 'hmt_language_switcher_widget'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment