/** * @param string $innerPath The path to append to the url without leading slash * * @return string The url to the baobab framework */ public static function baobabFramework($innerPath = '') { $baobabPath = Paths::baobabFramework(); $themePath = Paths::theme(); $path = str_replace($themePath, '', $baobabPath); if (!empty($innerPath)) { $innerPath = untrailingslashit($innerPath); $path .= '/' . $innerPath; } return apply_filters('baobab/urls/storage', self::theme($path), $innerPath); }
<article #{{ post_class() }}> <header class="entry-header"> @if(has_post_thumbnail()) <div class="featured-image"> #{{ the_post_thumbnail() }} </div> @endif <h1>{{ get_the_title() }}</h1> @include('parts.single.meta.default') </header> <div class="entry-content"> #{{ the_content() }} </div> <footer class="entry-footer"> #{{ previous_post_link('<span class="previous-entry">%link</span>') }} #{{ next_post_link('<span class="next-entry">%link</span>') }} </footer> <?php // TODO CHANGE THIS IN ORDER TO USE BLADE IF POSSIBLE comments_template(Paths::theme('app/views/parts/comments/list.php')); ?> </article>