| Server IP : 172.67.187.206 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/training/wp-content/themes/flatsome/inc/functions/ |
Upload File : |
<?php
/**
* Display placeholder with tooltip message on header elements when they miss a resource.
*
* @param string $resource Name of the resource.
*/
function fl_header_element_error( $resource ) {
$title = '';
switch ( $resource ) {
case 'woocommerce':
$title = 'WooCommerce needed';
}
echo '<li><a class="element-error tooltip" title="' . esc_attr( $title ) . '">-</a></li>';
}
/**
* Get flatsome_breadcrumb hooked content.
*
* @param string|array $class One or more classes to add to the class list.
* @param bool $display Whether to display the breadcrumb (true) or return it (false).
*/
function flatsome_breadcrumb( $class = '', $display = true ) {
do_action( 'flatsome_breadcrumb', $class, $display );
}
/**
* Outputs the beginning markup of a sticky column.
*
* Outputs the markup directly if no theme modification name has been
* given. Else based on the return value of the mod.
*
* @param string $name Theme modification name.
*/
function flatsome_sticky_column_open( $name = '' ) {
if ( empty( $name ) || get_theme_mod( $name ) ) {
echo '<div class="is-sticky-column">';
echo '<div class="is-sticky-column__inner">';
}
}
/**
* Outputs the end markup of a sticky column.
*
* Outputs the markup directly if no theme modification name has been
* given. Else based on the return value of the mod.
*
* @param string $name Theme modification name.
*/
function flatsome_sticky_column_close( $name = '' ) {
if ( empty( $name ) || get_theme_mod( $name ) ) {
echo '</div></div>';
}
}
/**
* @deprecated 3.7
*/
function get_flatsome_breadcrumbs() {
_deprecated_function( __FUNCTION__, '3.7', 'flatsome_breadcrumb' );
flatsome_breadcrumb();
}