<?php if (function_exists('get_field') && get_field('post_preamble')) { ?> <div id="js-entry-preamble" class="l-gutter m-entry-preamble"> <h2 class="a-preamble"><?php echo acf_tag_stripper('post_preamble'); ?> </h2> </div> <?php } ?> <div id="js-entry-content" class="l-gutter o-entry-content<?php echo function_exists('get_field') && get_field('toc') ? ' has-toc' : ''; ?> "> <?php if (function_exists('get_field') && get_field('external_linkText') && get_field('external_linkUrl')) { ?> <p class="a-external__a"> Extern källa: <a href="<?php echo get_field('external_linkUrl'); ?> " target="_blank"><?php echo get_field('external_linkText'); ?> </a> </p> <?php
<?php if (function_exists('get_field')) { if (get_field('options_ccard_profilepic', 'option') && function_exists('makeitSrcset')) { makeitSrcset(get_field('options_ccard_profilepic', 'option'), 50, 30, 20, 13, 22, 'm-prf avatar m-ccard-avatar'); } else { echo '<script>console.log("Lägg till en bild via wp-admin / options (minst 620px bred). Se till att plugin Make it Srcset är aktiverad / konfigurerad.")</script>'; } if (get_field('options_ccard_profilebio', 'option')) { echo '<div class="a-ccard__bio">'; //echo get_field('options_ccard_profilebio', 'option'); echo acf_tag_stripper('options_ccard_profilebio', false, true); echo '</div>'; } }