b0y-101 Mini Shell


Current Path : E:/www/buriram/libraries/nextend2/nextend/library/libraries/html/fragments/
File Upload :
Current File : E:/www/buriram/libraries/nextend2/nextend/library/libraries/html/fragments/heading.phtml

<div class="n2-heading-bar <?php echo $snapClass; ?>">
    <?php
    if ($snap == false) :
        ?>
        <div class="n2-heading-bar-left">
            <div class="n2-h1 n2-heading"><?php echo $title; ?></div>
        </div>
    <?php
    endif;
    ?>

    <?php
    if (count($menu)):
        ?>
        <div class="n2-heading-menu">
            <?php
            foreach ($menu AS $menu):
                echo $menu;
            endforeach;
            ?>
        </div>
    <?php
    endif;
    ?>

    <?php
    if (!empty($actions)):
        ?>
        <div class="n2-heading-actions">
            <span class="n2-heading-actions-label n2-h4"></span>
            <?php
            echo $actions;
            ?>
        </div>
    <?php
    endif;
    ?>
</div>

<script type="text/javascript">
    N2R('documentReady', function ($) {
        var label = $('.n2-heading-actions-label');
        $('.n2-heading-actions > a').on({
            mouseenter: function () {
                label.html($(this).data('label'));
            },
            mouseleave: function () {
                label.html('');
            }
        });
    });
</script>

<?php
if ($snap !== false) :
    ?>
    <script type="text/javascript">
        N2R('documentReady', function ($) {
            var topOffset = $('#wpadminbar, .navbar-fixed-top').height() + $('.n2-top-bar').height() + 2 <?php echo $snap; ?>;
            $('.<?php echo $snapClass; ?>').each(function () {
                var bar = $(this);
                bar.css({height: 0, marginTop: -34});
                bar.fixTo(bar.parent(), {
                    top: topOffset
                });
            });
        });
    </script>
<?php
endif;

Copyright © 2019 by b0y-101