telephone label
prosty kod do osadzenia telefonu jako klikalnego numeru pobranego z pola ACF:
<!-- header telephone label --> <?php if( function_exists('acf_add_options_page') ) { $telLabel = get_field('tel_header_label', 'option'); $telLink = str_replace(array(' ', ')', '(', '-', '/', '+'), array('', '', '', '', '', ''), $telLabel); ?> <a class="tel_label" href="tel:+<?php echo $telLink; ?>" title="<?php echo $telLabel; ?>"> <i class="icon-phone"></i><span><?php echo $telLabel; ?></span> </a> <?php } ?>
Hope this helps and happy coding :)
Zobacz jeszcze
JSX
JSX - syntax extension of JavaScript. Using it with React to describe what the UI should look like. JSX remind a template language, but it comes with the full power of JavaScript. JSX produces...