Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function attitude_home_slogan() {
- global $attitude_theme_options_settings;
- $options = $attitude_theme_options_settings;
- $attitude_home_slogan = '';
- if( ( !$attitude_home_slogan = get_transient( 'attitude_home_slogan' ) ) && ( !empty( $options[ 'home_slogan1' ] ) || !empty( $options[ 'home_slogan2' ] ) ) ) {
- if ( "0" == $options[ 'disable_slogan' ] ) {
- $attitude_home_slogan .= '<section class="slogan-wrap clearfix"><div class="container"><div class="slogan">';
- if ( !empty( $options[ 'home_slogan1' ] ) ) {
- $attitude_home_slogan .= esc_html( icl_translate( 'wpml_custom', 'wpml_custom_slogan1', $options[ 'home_slogan1' ] ) );
- }
- if ( !empty( $options[ 'home_slogan2' ] ) ) {
- $attitude_home_slogan .= '<span>'.esc_html( icl_translate( 'wpml_custom', 'wpml_custom_slogan2', $options[ 'home_slogan2' ] ) ).'</span>';
- }
- $attitude_home_slogan .= '</div><!-- .slogan -->';
- if ( !empty( $options[ 'button_text' ] ) && !empty( $options[ 'redirect_button_link' ] ) ) {
- $attitude_home_slogan .= '<a class="view-work" href="'.esc_url( $options[ 'redirect_button_link' ] ).'" title="'.esc_attr( $options[ 'button_text' ] ).'">'.esc_html( $options[ 'button_text' ] ).'</a><!-- .view-work -->';
- }
- $attitude_home_slogan .= '</div><!-- .container --></section><!-- .slogan-wrap -->';
- }
- //set_transient( 'attitude_home_slogan', $attitude_home_slogan, 86940 );
- }
- echo $attitude_home_slogan;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement