Exemplo n.º 1
0
/**
 * Function is responsible for printing out all of the stylesheets
 */
function show_stylesheets()
{
    //initializing
    $styles = register_stylesheet();
    foreach ((array) $styles as $path => $type) {
        echo '<link rel="stylesheet" type="' . $type . '" href="' . url($path) . '"/>';
    }
}
Exemplo n.º 2
0
require_once INCLUDES . "path.php";
require_once INCLUDES . "factory.php";
require_once INCLUDES . "application.php";
require_once INCLUDES . "router.php";
require_once INCLUDES . "set.php";
require_once INCLUDES . "string.php";
require_once INCLUDES . "files.php";
require_once INCLUDES . "compression.php";
require_once INCLUDES . "database" . DS . "database.php";
require_once INCLUDES . "database" . DS . "table.php";
/**
 * Initializing the system
 * 
 * This is generally for internal calls only.
 */
do_action('system');
/**
 * Loading the theme functions
 * 
 * Making sure that we load the themes functions file as soon as possible.
 */
if (file_exists($functions = get_theme_dir() . 'functions.php')) {
    require_once $functions;
}
/**
 * Stylesheets
 * 
 * default system styles
 */
register_stylesheet('five-includes/views/style.css');
Exemplo n.º 3
0
<?php

register_page("albums", 'index.php?p=albums');
register_text_engine("albums", "albums/album_page.php");
register_stylesheet(sculpt_system("plugin_path") . "albums/album_styles.css");
register_script(sculpt_system("plugin_path") . "albums/album.js");
function album_categories_list($active_album)
{
    $directory = sculpt_system("content_path") . 'albums';
    $page_data = '';
    $page_data .= '<ul>';
    if (file_exists($directory)) {
        $categories = glob($directory . '/*', GLOB_ONLYDIR);
        foreach ($categories as $category) {
            $category_parts = pathinfo($category);
            $category_name = $category_parts['filename'];
            if (!$active_album) {
                $active_album = $category_name;
            }
            if ($category_name === $active_album) {
                $category_class = "active_tab";
            } else {
                $category_class = "inactive_tab";
            }
            $page_data .= '<li class="' . $category_class . '"><a href=index.php?p=albums&sac=' . $category_name . '>' . ucfirst($category_name) . '</a></li>';
        }
    }
    $page_data .= '</ul>';
    echo $page_data;
    return $active_album;
}
Exemplo n.º 4
0
<?php

/**
 * @Author Jonathon byrd
 * @link http://www.5twentystudios.com
 * @Package Importing
 * @Since 1.0.0
 * @copyright  Copyright (C) 2011 5Twenty Studios
 * 
 */
defined('ABSPATH') or _die("Cannot access pages directly.");
/**
 * Template Management
 * 
 * Declaring this folder as a folder that template files can be
 * located within.
 */
add_view_path(dirname(__FILE__));
/**
 * Pemalink Management
 * 
 * Defining exactly what 
 */
Router::connect('/import', array('controller' => 'import', 'action' => 'index', 'plugin' => 'import'));
/**
 * Stylesheets
 */
register_stylesheet(plugin_url(__FILE__, 'css/import.css'));