| Current Path : /home/xbodynamge/dev/wp-content/themes/zerif-lite/sections/ |
| Current File : /home/xbodynamge/dev/wp-content/themes/zerif-lite/sections/ribbon_with_bottom_button.php |
<?php
/**
* Ribbon with button on the bottom area
*
* @package zerif-lite
*/
$zerif_bottomribbon_text = get_theme_mod( 'zerif_bottomribbon_text' );
$zerif_bottomribbon_buttonlabel = get_theme_mod( 'zerif_bottomribbon_buttonlabel' );
$zerif_bottomribbon_buttonlink = get_theme_mod( 'zerif_bottomribbon_buttonlink' );
/* For new users, add default values for the Ribbon section controls */
if ( ! zerif_check_if_old_version_of_theme() && current_user_can( 'edit_theme_options' ) ) {
/* translators: BottomButton Ribbon in customizer */
$zerif_bottomribbon_text = get_theme_mod( 'zerif_bottomribbon_text', sprintf( __( 'Change this text in %s', 'zerif-lite' ), sprintf( '<a href="%1$s" class="zerif-default-links">%2$s</a>', esc_url( admin_url( 'customize.php?autofocus[control]=zerif_bottomribbon_text' ) ), __( 'BottomButton Ribbon', 'zerif-lite' ) ) ) );
$zerif_bottomribbon_buttonlabel = get_theme_mod( 'zerif_bottomribbon_buttonlabel', __( 'Get in touch', 'zerif-lite' ) );
$zerif_bottomribbon_buttonlink = get_theme_mod( 'zerif_bottomribbon_buttonlink', esc_url( admin_url( 'customize.php?autofocus[control]=zerif_bottomribbon_buttonlink' ) ) );
}
if ( ! empty( $zerif_bottomribbon_text ) ) :
echo '<section class="separator-one" id="ribbon_bottom">';
echo '<div class="color-overlay">';
echo '<h3 class="container text" data-scrollreveal="enter left after 0s over 1s">';
echo wp_kses_post( $zerif_bottomribbon_text );
echo '</h3>';
if ( ! empty( $zerif_bottomribbon_buttonlabel ) && ! empty( $zerif_bottomribbon_buttonlink ) ) :
echo '<div data-scrollreveal="enter right after 0s over 1s">';
echo '<a href="' . esc_url( $zerif_bottomribbon_buttonlink ) . '" class="btn btn-primary custom-button green-btn">' . wp_kses_post( $zerif_bottomribbon_buttonlabel ) . '</a>';
echo '</div>';
elseif ( is_customize_preview() ) :
echo '<div data-scrollreveal="enter right after 0s over 1s">';
echo '<a href="" class="btn btn-primary custom-button green-btn zerif_hidden_if_not_customizer"></a>';
echo '</div>';
endif;
echo '</div>';
echo '</section>';
elseif ( is_customize_preview() ) :
echo '<section class="separator-one zerif_hidden_if_not_customizer" id="ribbon_bottom">';
echo '<div class="color-overlay">';
/* text */
echo '<h3 class="container text" data-scrollreveal="enter left after 0s over 1s"></h3>';
$zerif_bottomribbon_buttonlabel = get_theme_mod( 'zerif_bottomribbon_buttonlabel' );
$zerif_bottomribbon_buttonlink = get_theme_mod( 'zerif_bottomribbon_buttonlink' );
if ( ! empty( $zerif_bottomribbon_buttonlabel ) && ! empty( $zerif_bottomribbon_buttonlink ) ) :
echo '<div data-scrollreveal="enter right after 0s over 1s">';
echo '<a href="' . esc_url( $zerif_bottomribbon_buttonlink ) . '" class="btn btn-primary custom-button green-btn">' . wp_kses_post( $zerif_bottomribbon_buttonlabel ) . '</a>';
echo '</div>';
elseif ( is_customize_preview() ) :
echo '<div data-scrollreveal="enter right after 0s over 1s">';
echo '<a href="" class="btn btn-primary custom-button green-btn zerif_hidden_if_not_customizer"></a>';
echo '</div>';
endif;
echo '</div>';
echo '</section>';
endif;