Open on click for PHP
-
Hi
Could anyone help me how to create a link for my button in a php code?
$enable_right_button = (realfactory_get_option('general', 'enable-header-right-button', 'disable') == 'enable')? true: false; if( $enable_right_button ){ $button_link = realfactory_get_option('general', 'header-right-button-link', ''); $button_link_target = realfactory_get_option('general', 'header-right-button-link-target', '_self'); $logo_right .= '<a class="realfactory-header-right-button" href="' . esc_url($button_link) . '" target="' . esc_attr($button_link_target) . '" >'; $logo_right .= realfactory_get_option('general', 'header-right-button-text', ''); $logo_right .= '</a>'; } if( !empty($logo_right) ){ echo '<div class="realfactory-logo-right-text realfactory-item-pdlr" >'; echo gdlr_core_escape_content($logo_right); echo '</div>'; } ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Open on click for PHP’ is closed to new replies.