Exemple #1
19
    if (is_day()) {
        addScript("div.titleBar", "html", "<h1>Daily Archive: " . get_the_date() . "</h1>");
    } else {
        if (is_month()) {
            addScript("div.titleBar", "html", "<h1>Monthly Archive: " . get_the_date("F Y") . "</h1>");
        } else {
            if (is_year()) {
                addScript("div.titleBar", "html", "<h1>Yearly Archive: " . get_the_date("Y") . "</h1>");
            } else {
                if (is_category()) {
                    addScript("div.titleBar", "html", "<h1>Category: " . substr(get_category_parents($cat, false, ','), 0, -1) . "</h1>");
                } else {
                    if (is_tag()) {
                        addScript("div.titleBar", "html", "<h1>Tag: " . ucwords($wp_query->queried_object->name) . "</h1>");
                    } else {
                        addScript("div.titleBar", "html", "<h1>Archive: " . ucwords($wp_query->queried_object->name) . "</h1>");
                    }
                }
            }
        }
    }
}
get_template_part('content', 'loop');
?>
    <span class="older"><?php 
next_posts_link('&laquo; Older Entries');
?>
</span>
    <span class="newer"><?php 
previous_posts_link('Newer Entries &raquo;');
?>
Exemple #2
1
function IncludeAngularModule($basepath, $baseuri, $module)
{
    $display = array('js');
    // Module definition first
    addScript("{$baseuri}/{$module}/{$module}.module.js");
    // Module files (controllers, services, directives, etc...)
    $it = new RecursiveDirectoryIterator("{$basepath}/{$module}");
    foreach (new RecursiveIteratorIterator($it) as $name) {
        $name = str_replace("{$basepath}/{$module}/", '', $name);
        $uripath = "{$baseuri}/{$module}/{$name}";
        // Load js files, but do not reload module definition
        if (in_array(strtolower(array_pop(explode('.', $uripath))), $display) && strpos($uripath, "module.js") === false) {
            addScript($uripath);
        }
    }
}
function displayXFTemplate()
{
    $breadCrumb = buildBreadCrumbs();
    //    echo $breadCrumb;
    addScript(".breadBoxTop", "html", $breadCrumb);
    addScript(".breadBoxBottom", "html", $breadCrumb);
    addScript(".tabLinks", "html", "<ul class='secondaryContent blockLinksList'><li><a href='forums/-/mark-read?date=1316264858'>Mark All Forums Read</a></li><li><a href='search/?type=post'>Search Forums</a></li><li><a href='watched/threads'>Watched Threads</a></li></ul>");
    global $templateParts;
    $templateParts['middle'] = str_replace("<!-- main template -->", '<div class="mainContainer XenDynamicMC">
            <div class="mainContent">
            </div>
        </div>
        <aside>
        </aside>', $templateParts['middle']);
    echo $templateParts['middle'];
}
Exemple #4
0
function addQR()
{
    global $added_qr;
    if ($added_qr == false) {
        $added_qr = true;
        addGBase();
        $q = QRJS();
        addScript($q);
    }
}
Exemple #5
0
/*
 * Theme Name: XenDynamic
 * Theme URI: http://www.rcbdesigns.net
 * Description: The Dynamic XenForo v1.0.4 Theme For WordPress 
 * Version: 0.1.0
 * Author: Rich Berrill
 * Author URI: http://www.rcbdesigns.net
 * Tags: xenforo
 * File: content-page.php
 * 
 * Loads the loop for a static page in wordpress.
 */
if (have_posts()) {
    while (have_posts()) {
        the_post();
        addScript("div.titleBar", "html", "<h1>" . get_the_title() . "</h1>");
        ?>
        <fieldset>
            <?php 
        if (is_front_page()) {
            ?>
                <ol class="nodeList sectionMain frontPageMain" id="forums">
                    <?php 
        } else {
            ?>
                    <ol class="nodeList sectionMain" id="forums">
                        <?php 
        }
        ?>
                    <li class="node category level_1" id="main-category.1">
                        <ol class="nodeList">
Exemple #6
0
 * Description: The Dynamic XenForo v1.0.4 Theme For WordPress 
 * Version: 0.1.0
 * Author: Rich Berrill
 * Author URI: http://www.rcbdesigns.net
 * Tags: xenforo
 * File: 404.php
 * 
 * This is the default page template, it is loaded for any page that doesn't 
 * either specify a template or have one that matches it's slug.
 */
get_header();
?>
<div id="contentMover" style="display: none;">
            <div id="post-0" class="post error404 not-found">
                <?php 
addScript("div.titleBar", "html", "<h1>404 Not Found</h1>");
?>
                <div class="entry-content">
                    <img src="<?php 
echo get_stylesheet_directory_uri();
?>
/images/404.png" style="width: 100%" />
                    <p><?php 
_e('Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'your-theme');
?>
</p>
<br /><?php 
get_search_form();
?>
                </div><!-- .entry-content -->
            </div><!-- #post-0 --></div>
Exemple #7
0
<?php

/*
 * Theme Name: XenDynamic
 * Theme URI: http://www.rcbdesigns.net
 * Description: The Dynamic XenForo v1.0.4 Theme For WordPress 
 * Version: 0.1.0
 * Author: Rich Berrill
 * Author URI: http://www.rcbdesigns.net
 * Tags: xenforo
 * Template Name: No Sidebar
 * File: page-full.php
 * 
 * This is a page template that loads the standard template minus the sidebar.
 */
get_header();
?>
<div id="contentMover" style="display: none;">
    <?php 
get_template_part('content', 'page');
?>
</div>
<?php 
addScript("aside", "remove", "");
addScript("div.mainContent", "css", array("margin-right", "0px"));
displayXFTemplate();
get_footer();
Exemple #8
0
<?php

/*
 * Theme Name: XenDynamic
 * Theme URI: http://www.rcbdesigns.net
 * Description: The Dynamic XenForo v1.0.4 Theme For WordPress 
 * Version: 0.1.0
 * Author: Rich Berrill
 * Author URI: http://www.rcbdesigns.net
 * Tags: xenforo
 * File: single.php
 * 
 * This is the file that renders a single post.
 */
get_header();
?>
<div id="contentMover" style="display: none;">
    <?php 
addScript("div.titleBar", "html", "<h1>" . get_bloginfo('name') . "</h1>");
get_template_part('content', 'loop');
?>
</div>
<?php 
get_sidebar();
?>

<?php 
displayXFTemplate();
get_footer();
Exemple #9
0
    </form>

    <table>
      <?php 
$searchParams = array();
$query = "SELECT * FROM flight";
$hasWhere = false;
// Search for departure port
if (isset($_GET['departurePort']) && $_GET['departurePort'] != NULL) {
    $query .= " WHERE departurePort = :departurePort";
    $searchParams[':departurePort'] = $_GET['departurePort'];
    $hasWhere = true;
}
// Search for arrival port
if (isset($_GET['arrivalPort']) && $_GET['arrivalPort'] != NULL) {
    addScript($hasWhere, $query);
    $query .= "arrivalPort = :arrivalPort";
    $searchParams[':arrivalPort'] = $_GET['arrivalPort'];
}
// Set order params -- Not working
if (isset($_GET['order'])) {
    $query .= " ORDER BY " . $_GET['order'];
}
$results = fetchAllRecords($query, $searchParams);
// If query produces results
if (isset($results[0])) {
    ?>
        <th>Id</th>
        <th>Number</th>
        <th>Airline Id</th>
        <th>Aircraft Number</th>
Exemple #10
0
<?php

include_once 'functions.php';
?>
<html>
<head>
    <?php 
echo addStyle('css/style.css');
?>
    <?php 
echo addScript('js/script.js');
?>
</head>
<body>
<p>Hello</p>
</body>
</html>