Beispiel #1
0
 public function testAliasAndHelperFunctions()
 {
     $this->assertSame('active', \Active::getClassIf(true));
     $this->assertSame('active', active_class(true));
 }
Beispiel #2
0
                <li class="<?php 
echo active_class($artigo_atual, $manutencao["Id"]);
?>
"><?php 
echo anchor("artigos/Descricao/{$manutencao["Id"]}", "Manutenção", array("class" => ""));
?>
</li>                               
            </ul>
                
            <h2>Produtos Integrados</h2>
            <ul>
                <?php 
foreach ($produtos_integrados as $content) {
    ?>
                     <li class="<?php 
    echo active_class($artigo_atual, $content["Id"]);
    ?>
">
                        <?php 
    echo anchor("artigos/Descricao/{$content["Id"]}", $content["Titulo"]);
    ?>
                                 
                    </li>
                <?php 
}
?>
            </ul>
            
        </aside>
        
    </div>
Beispiel #3
0
?>
">
                            <?php 
echo anchor("empresa", "Empresa");
?>
                        </li>
                        <li class="<?php 
echo active_class("sistema", $atual_page);
?>
">
                            <?php 
echo anchor("sistema", "Sistema");
?>
                        </li>
                        <li class="<?php 
echo active_class("clientes", $atual_page);
?>
">
                            <?php 
echo anchor("clientes", "Nossos Clientes");
?>
                        </li>
                        <li>
                            <a href="" data-toggle="modal" data-target="#mdlContato">Contato</a>
                        </li>
                    </ul>
                </nav>
                
            </div>    

        </header>
Beispiel #4
0
 /**
  * @param array  $routes
  * @param string $activeClass
  * @param string $inactiveClass
  *
  * @return string
  */
 public function activate(array $routes, $activeClass = 'active', $inactiveClass = '')
 {
     return active_class(app('active')->checkRoute($routes), $activeClass, $inactiveClass);
 }
Beispiel #5
0
    }
}
//Middle
echo $middle->skin_echo();
//Mobile Layout Loop
$layout_path = opendir(__DIR_PATH__ . "layoutskin/m/");
while ($layout_dir = readdir($layout_path)) {
    if ($layout_dir != "." && $layout_dir != "..") {
        //스킨의 _information.xml 파일에서 스킨 정보를 불러옴
        $xml = simplexml_load_file(__DIR_PATH__ . "layoutskin/m/{$layout_dir}/_information.xml");
        $skin_thumb = __URL_PATH__ . "layoutskin/m/{$layout_dir}/_thumb.jpg";
        $skin_title = $xml->skin[0]->title;
        //스킨 타이틀
        $skin_description = $xml->skin[0]->description;
        //스킨 설명
        $skin_author = $xml->skin[0]->author;
        //스킨 제작자
        $skin_date = $xml->skin[0]->date;
        //스킨 제작 일자
        $m_loop->skin_modeling("[active_class]", active_class("m", $layout_dir));
        $m_loop->skin_modeling("[thumb]", "<img src=\"{$skin_thumb}\" width=\"160\" height=\"160\" />");
        $m_loop->skin_modeling("[name]", $layout_dir);
        $m_loop->skin_modeling("[title]", $skin_title);
        $m_loop->skin_modeling("[description]", $skin_description);
        $m_loop->skin_modeling("[author]", $skin_author);
        $m_loop->skin_modeling("[date]", $skin_date);
        echo $m_loop->skin_echo();
    }
}
//Footer
echo $footer->skin_echo();
Beispiel #6
0
    echo $musica["Pontuacao"];
    ?>
</td>
                </tr>
                 
            <?php 
    $cont++;
}
?>
                    
        </table>
        
            <!-- Pagination -->
            <ul class="pagination">
            	<?php 
for ($i = 1; $i <= $numero_paginas; $i++) {
    ?>
            	   <li class="<?php 
    echo active_class($i, $atual_page);
    ?>
"><?php 
    echo anchor("home/index/" . $i, $i);
    ?>
</li>
		    	<?php 
}
?>
            	
        	</ul>
    </div>
</section>