Пример #1
0
 static function get_options()
 {
     // Cache options
     $cache = new PLS_Cache('Theme PLS Options');
     $cache_args = array();
     if ($options = $cache->get($cache_args)) {
         self::$styles = array_merge(self::$styles, $options);
         return;
     }
     require PLS_Route::locate_blueprint_option('init.php');
     require_if_theme_supports("pls-user-options", PLS_Route::locate_blueprint_option('user.php'));
     require_if_theme_supports("pls-search-options", PLS_Route::locate_blueprint_option('search.php'));
     require_if_theme_supports("pls-color-options", PLS_Route::locate_blueprint_option('colors.php'));
     require_if_theme_supports("pls-slideshow-options", PLS_Route::locate_blueprint_option('slideshow.php'));
     require_if_theme_supports("pls-typography-options", PLS_Route::locate_blueprint_option('typography.php'));
     require_if_theme_supports("pls-header-options", PLS_Route::locate_blueprint_option('header.php'));
     require_if_theme_supports("pls-navigation-options", PLS_Route::locate_blueprint_option('navigation.php'));
     require_if_theme_supports("pls-listing-options", PLS_Route::locate_blueprint_option('listings.php'));
     require_if_theme_supports("pls-post-options", PLS_Route::locate_blueprint_option('post.php'));
     require_if_theme_supports("pls-widget-options", PLS_Route::locate_blueprint_option('widget.php'));
     require_if_theme_supports("pls-footer-options", PLS_Route::locate_blueprint_option('footer.php'));
     require_if_theme_supports("pls-css-options", PLS_Route::locate_blueprint_option('css.php'));
     // Cache options
     $cache->save(self::$styles);
 }
Пример #2
0
 public static function get_compliance($args)
 {
     $message = PLS_Plugin_API::mls_message($args);
     if ($message && !empty($message) && isset($args['context'])) {
         $_POST['compliance_message'] = $message;
         PLS_Route::router(array($args['context'] . '-compliance.php'), true, false);
     }
     return false;
 }
Пример #3
0
<?php 
} else {
    ?>

    <?php 
    pls_do_atomic('before_sidebar_primary');
    ?>

	<aside id="sidebar-primary" class="grid_4 omega sidebar">

        <?php 
    pls_do_atomic('open_sidebar_primary');
    ?>

        <?php 
    PLS_Route::handle_default_sidebar();
    ?>

        <?php 
    pls_do_atomic('close_sidebar_primary');
    ?>

	</aside><!-- #sidebar-primary .aside -->

    <?php 
    pls_do_atomic('after_sidebar_primary');
    ?>
	
<?php 
}
Пример #4
0
<?php

PLS_Route::handle_header();
?>

<div class="inner">
	<?php 
PLS_Route::handle_dynamic();
?>
</div>

<?php 
PLS_Route::handle_footer();
?>

Пример #5
0
<?php

global $query_string;
$args = wp_parse_args($query_string, array('mlsid' => false));
// $taxonomy = PLS_Taxonomy::get($args);
//pls_dump($args);
$args = array('mlsid' => $args['mlsid'], 'post_type' => 'property', 'post_status' => 'publish');
$my_query = new WP_Query($args);
//pls_dump($my_query);
PLS_Route::get_template_part('loop', 'meta');
// Loads the loop-meta.php template.
?>

<?php 
PLS_Route::get_template_part('single', 'property');
?>

Пример #6
0
<?php

/**
 * Archive Template
 *
 * The archive template is the default template used for archives pages without a more specific template. 
 *
 * @package PlacesterBlueprint
 * @subpackage Template
 */
PLS_Route::get_template_part('loop', 'meta');
// Loads the loop-meta.php template.
?>

<?php 
PLS_Route::get_template_part('loop', 'entries');
Пример #7
0
    
    <article <?php 
        post_class();
        ?>
 id="post-<?php 
        the_ID();
        ?>
" class="grid_8 alpha" itemscope itemtype="BlogPosting">

        <?php 
        pls_do_atomic('open_entry');
        ?>

        <header>
            <?php 
        PLS_Route::get_template_part('loop', 'meta');
        ?>
        </header>

        <?php 
        pls_do_atomic('before_entry_content');
        ?>

        <?php 
        the_content('Read the rest of this entry &raquo;');
        ?>

        <div class="entry-meta">
            <?php 
        wp_link_pages(array('before' => '<p><strong>' . 'Pages' . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
        ?>
Пример #8
0
 public static function handle_taxonomy()
 {
     global $query_string;
     $args = wp_parse_args($query_string, array('state' => false, 'city' => false, 'neighborhood' => false, 'zip' => false, 'street' => false, 'mlsid' => false));
     extract($args);
     $templates = array();
     if ($state || $city || $zip || $neighborhood || $street || $mlsid) {
         if ($street) {
             $templates[] = 'attribute-street.php';
         } elseif ($neighborhood) {
             $templates[] = 'attribute-neighborhood.php';
         } elseif ($zip) {
             $templates[] = 'attribute-zip.php';
         } elseif ($city) {
             $templates[] = 'attribute-city.php';
         } elseif ($state) {
             $templates[] = 'attribute-state.php';
         } elseif ($mlsid) {
             $templates[] = 'attribute-mlsid.php';
         }
         $templates[] = 'attribute.php';
         self::$request = array_merge(self::$request, $templates);
     } else {
         $term = get_queried_object();
         $taxonomy = $term->taxonomy;
         $templates[] = "taxonomy-{$taxonomy}-{$term->slug}.php";
         $templates[] = "taxonomy-{$taxonomy}.php";
         $templates[] = 'taxonomy.php';
     }
     self::$request = array_merge(self::$request, $templates);
 }
Пример #9
0
        edit_post_link('Edit this entry', ' ', '.');
        ?>
            </p>

        </footer>

        <?php 
        comments_template('/comments.php', true);
        ?>
        
        <?php 
        pls_do_atomic('close_entry');
        ?>

    </article>

    <?php 
        pls_do_atomic('after_entry');
        ?>
        
<?php 
    }
} else {
    ?>
    
    <?php 
    PLS_Route::get_template_part('loop-error');
    ?>
    
<?php 
}
Пример #10
0
 public static function metadata_customizations()
 {
     include_once PLS_Route::locate_blueprint_option('meta.php');
     //throws random errors if you aren't an admin, can't be loaded with admin_init...
     if (!is_admin() || !class_exists('Tax_Meta_Class')) {
         return;
     }
     $config = array('id' => 'demo_meta_box', 'title' => 'Demo Meta Box', 'pages' => array('state', 'city', 'zip', 'street', 'neighborhood'), 'context' => 'normal', 'fields' => array(), 'local_images' => false, 'use_with_theme' => false);
     $my_meta = new Tax_Meta_Class($config);
     foreach (self::$custom_meta as $meta) {
         switch ($meta['type']) {
             case 'text':
                 $my_meta->addText($meta['id'], array('name' => $meta['label']));
                 break;
             case 'textarea':
                 $my_meta->addTextarea($meta['id'], array('name' => $meta['label']));
                 break;
             case 'wysiwyg':
                 $my_meta->addCheckbox($meta['id'], array('name' => $meta['label']));
                 break;
             case 'image':
                 $my_meta->addImage($meta['id'], array('name' => $meta['label']));
                 break;
             case 'file':
                 $my_meta->addFile($meta['id'], array('name' => $meta['label']));
                 break;
             case 'checkbox':
                 $my_meta->addCheckbox($meta['id'], array('name' => $meta['label']));
                 break;
         }
     }
     $my_meta->Finish();
 }
Пример #11
0
}
?>

                </hgroup>

                <?php 
pls_do_atomic('header');
?>

                <div class="header-membership"><?php 
echo PLS_Plugin_API::placester_lead_control_panel(array('separator' => '|'));
?>
</div>

            </div>

            <?php 
pls_do_atomic('before_nav');
?>

            <?php 
PLS_Route::get_template_part('menu', 'primary');
// Loads the menu-primary.php template.
?>

            <?php 
pls_do_atomic('close_header');
?>
        </header>
    <?php 
pls_do_atomic('after_header');
Пример #12
0
<?php

/**
 * Index Template
 *
 * This is the default template. It is used when a more specific template can't be found to display
 * posts. It is unlikely that this template will ever be used, but there may be rare cases.
 *
 * @package PlacesterBlueprint
 * @subpackage Template
 */
PLS_Route::handle_dynamic();