/** * @return string */ protected function get_brick_html() { $html = ''; while ($this->have_rows('modules')) { $this->the_row(); $html .= acf_fields\flexible_content::get_sub_field_brick_instance()->get_html(); } return $html; }
/** * @return string */ protected function get_brick_html() { $html = ''; while ($this->have_rows('modules')) { $this->the_row(); /** @noinspection PhpUndefinedMethodInspection */ $html .= acf_fields\flexible_content::get_sub_field_brick_instance()->get_html(); } return $html; }
?> <hr> <?php echo (new \fewbricks\bricks\demo_flexible_columns('fcol2'))->get_html(); ?> <hr> <?php // loop through the rows of data while (have_rows('fc1')) { the_row(); /** @noinspection PhpUndefinedMethodInspection */ echo \fewbricks\acf\fields\flexible_content::get_sub_field_brick_instance()->get_html(false, 'demo-layout-2'); } ?> <hr> <?php echo (new \fewbricks\bricks\demo_buttons_list('buttons_list'))->get_html(false, ['demo-layout-1']); ?> <hr> <?php echo (new \fewbricks\bricks\demo_standard_list('a_list'))->get_html(false, ['demo-layout-2']); ?>
<code> <?php echo highlight_string($snippet, true); ?> </code> <p><b>..outputs all of the below between the red lines</b></p> <div class="demo-output-wrapper"> <?php // loop through the rows of data while (have_rows('fc1')) { the_row(); echo \fewbricks\acf\fields\flexible_content::get_sub_field_brick_instance()->get_html(); } ?> </div> <h2 class="demo-h2">Field Group "Main content 4"</h2> <p><b>This code:</b></p> <?php