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)) {
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;
$icenberg = new Icenberg(get_row_layout());
$random_text = "<span>I am some random text, isn't it wonderful?</span>";
$icenberg->enclose('text', [
$icenberg->get_element('cta_heading'),
$random_text
]);