<?php
if (!defined('ABSPATH'))
    exit; // Exit if accessed directly
add_action("yeepdf_builder_tab_block_row", "superaddons_pdf_builder_block_row", 10);
function superaddons_pdf_builder_block_row()
{
    ?>
    <li class="builder-row-inner" data-type="row1">
        <span></span>
    </li>
    <li class="builder-row-inner" data-type="row2">
        <span></span>
        <span></span>
    </li>
    <li class="builder-row-inner" data-type="row3">
        <span class="bd-row-2"></span>
        <span></span>
    </li>
    <li class="builder-row-inner" data-type="row4">
        <span></span>
        <span class="bd-row-2"></span>
    </li>
    <li class="builder-row-inner" data-type="row33">
        <span class="bd-row-3"></span>
        <span></span>
    </li>
    <li class="builder-row-inner" data-type="row44">
        <span></span>
        <span class="bd-row-3"></span>
    </li>
    <li class="builder-row-inner " data-type="row5" title=" Pro Version">
        <span></span>
        <span></span>
        <span></span>
    </li>
    <li class="builder-row-inner pro_disable" data-type="row6" title=" Pro Version">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </li>
    <li class="builder-row-inner pro_disable" data-type="row7" title=" Pro Version">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </li>
    <li class="builder-row-inner pro_disable" data-type="row8" title=" Pro Version">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </li>
    <li class="builder-row-inner pro_disable" data-type="row9" title=" Pro Version">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <span></span>
    </li>
    <?php
}
add_filter('yeepdf_builder_block_html', "superaddons_pdf_builder_block_row_load");
function superaddons_pdf_builder_block_row_load($type)
{
    $col = array("row1", "row2", "row3", "row4", "row5", "row6", "row7", "row8", "row9", "row33", "row44");
    $padding = Yeepdf_Global_Data::$padding;
    $margin = Yeepdf_Global_Data::$margin;
    $pd_mg = array_merge($padding, $margin);
    $text_align = Yeepdf_Global_Data::$text_align;
    $pd_mg_al = array_merge($pd_mg, $text_align);
    $background = Yeepdf_Global_Data::$background;
    $pd_mg_al_bg = array_merge($pd_mg_al, $background);
    foreach ($col as $value) {
        $type["block"][$value]["editor"]["container"]["show"] = ["text-align", "padding", "margin", "background", "condition"];
        $type["block"][$value]["editor"]["container"]["style"] = $pd_mg_al_bg;
    }
    $type["block"]["row1"]["builder"] = '
    <div class="builder-row-container builder__item">
        <div style="background-color: transparent" background_full="not" data-type="row1" class="builder-row-container-row builder-row-container-row1">
            <div class="builder-row">
            </div>
        </div>
    </div>';
    $type["block"]["row2"]["builder"] = '
    <div class="builder-row-container builder__item">
        <div style="background-color: transparent" background_full="not" data-type="row2" class="builder-row-container-row builder-row-container-row2">
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
        </div>
    </div>';
    $type["block"]["row3"]["builder"] = '
    <div class="builder-row-container builder__item">
        <div style="background-color: transparent" background_full="not" data-type="row3" class="builder-row-container-row builder-row-container-row3">
            <div class="builder-row bd-row-2">
            </div>
            <div class="builder-row">
            </div>
        </div>
    </div>';
    $type["block"]["row33"]["builder"] = '
    <div class="builder-row-container builder__item">
        <div style="background-color: transparent" background_full="not" data-type="row33" class="builder-row-container-row builder-row-container-row33">
            <div class="builder-row bd-row-80">
            </div>
            <div class="builder-row bd-row-20">
            </div>
        </div>
    </div>';
    $type["block"]["row4"]["builder"] = '
    <div class="builder-row-container builder__item">
        <div style="background-color: transparent" background_full="not" data-type="row4" class="builder-row-container-row builder-row-container-row4">
            <div class="builder-row">
            </div>
            <div class="builder-row bd-row-2">
            </div>
        </div>
    </div>';
    $type["block"]["row44"]["builder"] = '
    <div class="builder-row-container builder__item">
        <div style="background-color: transparent" background_full="not" data-type="row44" class="builder-row-container-row builder-row-container-row44">
            <div class="builder-row bd-row-20">
            </div>
            <div class="builder-row bd-row-80">
            </div>
        </div>
    </div>';
    $type["block"]["row5"]["builder"] = '
    <div class="builder-row-container builder__item">
        <div style="background-color: transparent" background_full="not" data-type="row5" class="builder-row-container-row builder-row-container-row5">
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
        </div>
    </div>';
    $type["block"]["row6"]["builder"] = '
    <div style="background-color: transparent" background_full="not" class="builder-row-container builder__item">
        <div data-type="row6" class="builder-row-container-row builder-row-container-row6">
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
        </div>
    </div>';
    $type["block"]["row7"]["builder"] = '
    <div style="background-color: transparent" background_full="not" class="builder-row-container builder__item">
        <div data-type="row7" class="builder-row-container-row builder-row-container-row7">
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
        </div>
    </div>';
    $type["block"]["row8"]["builder"] = '
    <div style="background-color: transparent" background_full="not" class="builder-row-container builder__item">
        <div data-type="row8" class="builder-row-container-row builder-row-container-row8">
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
        </div>
    </div>';
    $type["block"]["row9"]["builder"] = '
    <div style="background-color: transparent" background_full="not" class="builder-row-container builder__item">
        <div data-type="row9" class="builder-row-container-row builder-row-container-row9">
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
            <div class="builder-row">
            </div>
        </div>
    </div>';
    return $type;
}