/**
  * @covers \NewFrontiers\Framework\Output\Template::getInstance
  * @covers \NewFrontiers\Framework\Output\Template::css
  */
 public function testCss()
 {
     Template::getInstance();
     $baseUrl = Configuration::get('site.internalUrl') . '/templates/bootadmin';
     $cssString = Template::css('file1.css', 'pathToCss', true);
     $this->assertEquals('<link rel="stylesheet" type="text/css" href="pathToCss/file1.css" />', $cssString);
     $cssString = Template::css('file1.css', null, true);
     $this->assertEquals('<link rel="stylesheet" type="text/css" href="' . $baseUrl . '/css/file1.css" />', $cssString);
     $cssString = Template::css('file1.css', 'anotherPath/to///', false);
     $this->assertEquals('<link rel="stylesheet" type="text/css" href="anotherPath/to////file1.css" />', $cssString);
     $this->expectOutputString('<link rel="stylesheet" type="text/css" href="pathToCss/file1.css" />' . '<link rel="stylesheet" type="text/css" href="' . $baseUrl . '/css/file1.css" />');
 }
예제 #2
0
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">

    <?php 
Template::css('default.css?v2');
?>
    <?php 
Template::css('bootstrap-datetimepicker.min.css');
?>
    <?php 
Template::css('jquery.fileupload.css');
?>
    <?php 
Template::css('typeahead.css');
?>
    <?php 
Template::css('bootstrap-slider.min.css');
?>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="//oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->

    <script src="//code.jquery.com/jquery-1.11.2.min.js"></script>


</head>
<body style="padding-top: 70px;">

예제 #3
0
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>
        <?php 
echo Application::getInstance()->response->getMetadata()->getTitle();
?>
    </title>

    <?php 
Template::css('bootstrap.min.css');
Template::css('font-awesome.css', Configuration::get('site.internalUrl') . '/templates/inspina/font-awesome/css');
Template::css('animate.css');
Template::css('style.css');
Template::css('nostromo.css');
?>

</head>

<body>

<div id="wrapper">

    <!-- Navigation -->
    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav metismenu" id="side-menu">
                <li class="nav-header">

                    <div class="dropdown profile-element">
예제 #4
0
<!DOCTYPE html>
<html>
<head lang="de">
    <meta charset="UTF-8">
    <title>Ausdruck</title>
    <?php 
use NewFrontiers\Framework\Core\Application;
use NewFrontiers\Framework\Output\Template;
Template::css('default.css?v2');
?>
</head>
<body>

<?php 
Application::getInstance()->displayMain();
?>

</body>
</html>