1. Go to this page and download the library: Download mvrk/icenberg library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mvrk / icenberg example snippets
$composer_path = $_SERVER['DOCUMENT_ROOT'] . '/../vendor/';
if (file_exists($composer_path)) {
use MVRK\Icenberg\Icenberg;
$ice = new Icenberg($layout = 'block_name', $prefix = 'block', $post_id = false);
if (have_rows('content_blocks', $id)) :
while (have_rows('content_blocks', $id)) : the_row();
get_template_part('inc/blocks/block_template');
endwhile;
endif;
use MVRK\Icenberg\Icenberg;
$ice = new Icenberg(get_row_layout());
$ice->the_element('quote');
$ice->the_element('attribution');
$ice->the_element('portrait');
use MVRK\Icenberg\Icenberg;
$icenberg = new Icenberg(strtolower($block['title']));
$icenberg::wrap(
[
$icenberg->get_element('quote'),
$icenberg->get_element('attribution'),
$icenberg->get_element('portrait'),
],
$block,
true
);