Exemplo n.º 1
0
    public static function print_site_logo_css_rule()
    {
        // Fullsize Logo
        $width = trim(of_get_option('site_logo_width'));
        $height = trim(of_get_option('site_logo_height'));
        $voffset = trim(of_get_option('site_logo_voffset'));
        $width = AdapThemeOptions::strip_nonnumeric($width);
        $height = AdapThemeOptions::strip_nonnumeric($height);
        $voffset = AdapThemeOptions::strip_nonnumeric($voffset);
        ?>
		.brand img, .brand a {
		width: <?php 
        echo $width;
        ?>
px;
		height: <?php 
        echo $height;
        ?>
px;
		}
		body > .navbar .brand {
		margin-top: <?php 
        echo $voffset;
        ?>
px;
		}

		<?php 
        // Mobile Logo
        $width = trim(of_get_option('site_mobile_logo_width'));
        $height = trim(of_get_option('site_mobile_logo_height'));
        $voffset = trim(of_get_option('site_mobile_logo_voffset'));
        $width = AdapThemeOptions::strip_nonnumeric($width);
        $height = AdapThemeOptions::strip_nonnumeric($height);
        $voffset = AdapThemeOptions::strip_nonnumeric($voffset);
        ?>

		@media (max-width: 979px) {
		.brand img, .brand a {
		width: <?php 
        echo $width;
        ?>
px;
		height: <?php 
        echo $height;
        ?>
px;
		}
		body > .navbar .brand {
		margin-top: <?php 
        echo $voffset;
        ?>
px;
		}
		}

	<?php 
    }