Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--option tree installation-->
- <?php
- // enable theme option
- add_filter( 'ot_show_pages', '__return_false' );
- add_filter( 'ot_show_new_layout', '__return_false' );
- add_filter( 'ot_theme_mode', '__return_true' );
- include_once( 'theme_option/ot-loader.php' );
- // intregrate theme option
- include_once('func/theme-options.php');
- // intregrate meta box
- include_once('func/meta-boxes.php');
- ?>
- <!--get data from option tree-->
- <?php if ( function_exists( 'get_option_tree') ) : if( get_option_tree( 'option_id') ) : ?>
- <!--conditional data from option tree-->
- <?php if ( function_exists( 'get_option_tree') ) : if( get_option_tree( 'option_id') ) : ?>
- <?php get_option_tree( 'option_id', '', 'true' ); ?>
- <?php else : ?>
- <!--default data goes here-->
- <?php endif; endif; ?>
- <!--option tree list item-->
- <?php // dynamic social link by theme option
- $list_item = ot_get_option( 'social-bookmarks', array() );
- if ( !empty( $list_item ) ) {
- echo '<div class="content-container">';
- foreach( $list_item as $_social ) {
- echo ' <a href="'.$_social['sicial-bookmarks-icon-link'].'"><i class="fa '.$_social['sicial-bookmarks-icon-name'].'" style="color:'.$_social['sicial-bookmarks-icon-color'].'" title="'.$_social['title'].'"></i></a>';
- }
- echo '</div>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement