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
$icenberg->the_element('client_logos');
$composer_path = $_SERVER['DOCUMENT_ROOT'] . '/../vendor/';
if (file_exists($composer_path)) {
\MVRK\Icenberg\Hooks::init();
$is_wp_cli = defined('WP_CLI') && WP_CLI;
if ($is_wp_cli) {
\MVRK\Icenberg\Commands\Bootstrap::setup();
}
use MVRK\Icenberg\Icenberg;
$ice = new Icenberg($layout = 'block_name');
use MVRK\Icenberg\Icenberg;
$ice = new Icenberg(strtolower($block['title']));
$wrapped = true;
$ic->wrap(
[
$ice->get_element('quote'),
$ice->get_element('attribution'),
$ice->get_element('portrait_image'),
],
$block,
$wrapped
);
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');