| | |
| | | use JVBase\managers\Cache; |
| | | use JVBase\meta\Meta; |
| | | use JVBase\registrar\Registrar; |
| | | use JVBase\utility\Features; |
| | | use JVBase\base\Site; |
| | | use WP_Block; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | |
| | | public function render(array $attributes, string $content, WP_Block $block) |
| | | { |
| | | global $post; |
| | | $registrar = Registrar::getInstance($post->post_type)); |
| | | $registrar = Registrar::getInstance($post->post_type); |
| | | if (!$post || !$registrar || !$registrar->hasFeature('is_timeline') ) { |
| | | return ''; |
| | | } |
| | |
| | | ?> |
| | | </ul> |
| | | </header> |
| | | <section id="info"> |
| | | <?php |
| | | $content = $this->get_field('post_content', $extra); |
| | | if ($content !== '') { |
| | | echo $this->formatContent($content); |
| | | } |
| | | ?> |
| | | </section> |
| | | <section id="at-a-glance" class="row nowrap"> |
| | | <div class="before"> |
| | | <h3>Before</h3> |
| | |
| | | <?php endif; ?> |
| | | </div> |
| | | </section> |
| | | <section id="info"> |
| | | <?php |
| | | $content = $this->get_field('post_content', $extra); |
| | | if ($content !== '') { |
| | | echo $this->formatContent($content); |
| | | } |
| | | ?> |
| | | </section> |
| | | <?php |
| | | } |
| | | |