function wpex_toggle_bar_btn() { if (!wpex_toggle_bar_active()) { return; } echo '<a href="#" class="toggle-bar-btn fade-toggle ' . get_theme_mod('toggle_bar_visibility') . '"><span class="fa fa-plus"></span></a>'; }
* Togglebar output * * @package Total * @subpackage Partials/Togglebar * @author Alexander Clarke * @copyright Copyright (c) 2014, Symple Workz LLC * @link http://www.wpexplorer.com * @since Total 1.6.0 * @version 1.0.0 */ // Exit if accessed directly if (!defined('ABSPATH')) { exit; } // Bail if toggle bar isn't active on this page if (!wpex_toggle_bar_active()) { return; } // Classes for the togglebar wrap $classes = 'clr'; if ($animation = get_theme_mod('toggle_bar_animation', 'fade')) { $classes .= ' toggle-bar-' . $animation; } if ($visibility = get_theme_mod('toggle_bar_visibility', 'always-visible')) { $classes .= ' ' . $visibility; } // Get toggle bar page content based on ID $id = get_theme_mod('toggle_bar_page'); $id = apply_filters('wpex_toggle_bar_page_id', $id); // Fix for WPML if (function_exists('icl_object_id')) {