Esempio n. 1
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     Metronic::registerThemeAsset($this->getView());
     Html::addCssClass($this->options, 'page-sidebar-menu');
     if (!$this->visible || Metronic::getComponent()->layoutOption == Metronic::LAYOUT_FULL_WIDTH) {
         Html::addCssClass($this->options, 'visible-sm visible-xs');
     }
 }
Esempio n. 2
0
                <!-- END PAGE CONTENT-->
            </div>
        </div>
        <!-- END CONTENT -->
    </div>
    <!-- END CONTAINER -->
    <!-- BEGIN FOOTER -->
    <div class="footer">
        <div class="footer-inner">
            <?php 
echo date('Y');
?>
 &copy; YiiMetronic.
        </div>
        <div class="footer-tools">
		<span class="go-top">
			<i class="fa fa-angle-up"></i>
		</span>
        </div>
    </div>
    <?php 
echo Metronic::getComponent()->layoutOption == Metronic::LAYOUT_BOXED ? Html::endTag('div') : '';
?>
    <?php 
$this->endBody();
?>
    </body>
    <!-- END BODY -->
    </html>
<?php 
$this->endPage();
Esempio n. 3
-1
 public static function getHtmlOptions($tag, $asString = true)
 {
     $tag = strtolower($tag);
     $options = [];
     switch ($tag) {
         case 'body':
             if (strcasecmp(Metronic::getComponent()->headerOption, 'fixed') === 0) {
                 Html::addCssClass($options, 'page-header-fixed');
             }
             switch (Metronic::getComponent()->layoutOption) {
                 case Metronic::LAYOUT_FULL_WIDTH:
                     Html::addCssClass($options, Metronic::LAYOUT_FULL_WIDTH);
                     break;
                 case Metronic::LAYOUT_BOXED:
                     Html::addCssClass($options, Metronic::LAYOUT_BOXED);
                     break;
             }
             break;
         case 'header':
             Html::addCssClass($options, 'header navbar');
             if (strcasecmp(Metronic::getComponent()->headerOption, 'fixed') === 0) {
                 Html::addCssClass($options, 'navbar-fixed-top');
             } else {
                 Html::addCssClass($options, 'navbar-static-top');
             }
             break;
     }
     return $asString ? Html::renderTagAttributes($options) : $options;
 }