/** * Section template. */ function section_template($clone_id = null) { // Options $per_row = ploption('box_col_number', $this->oset) ? ploption('box_col_number', $this->oset) : 3; $box_set = ploption('box_set', $this->oset) ? ploption('box_set', $this->oset) : null; $box_limit = ploption('box_items', $this->oset); $this->thumb_type = ploption('box_thumb_type', $this->oset) ? ploption('box_thumb_type', $this->oset) : 'inline_thumbs'; $this->thumb_size = ploption('box_thumb_size', $this->oset); $this->framed = ploption('box_thumb_frame', $this->oset); $class = ploption('box_class', $this->oset) ? ploption('box_class', $this->oset) : null; // Actions // Set up the query for this page $orderby = ploption('box_orderby', $this->oset) ? ploption('box_orderby', $this->oset) : 'ID'; $order = ploption('box_order', $this->oset) ? ploption('box_order', $this->oset) : 'DESC'; $params = array('orderby' => $orderby, 'order' => $order, 'post_type' => $this->ptID); $params['showposts'] = ploption('box_items', $this->oset) ? ploption('box_items', $this->oset) : $per_row; $params[$this->taxID] = ploption('box_set', $this->oset) ? ploption('box_set', $this->oset) : null; $params['no_found_rows'] = 1; $q = new WP_Query($params); if (empty($q->posts)) { echo setup_section_notify($this, 'Add Box Posts To Activate.', admin_url('edit.php?post_type=' . $this->ptID), 'Add Posts'); return; } // Grid Args $args = array('per_row' => $per_row, 'callback' => array(&$this, 'draw_boxes'), 'class' => $class); // Call the Grid printf('<div class="fboxes fix">%s</div>', grid($q, $args)); }
<jdoc:include type="modules" name="main-content-bottom" style="mod" /> </div> </div> </div> <?php } ?> </div> <?php if ($this->countModules('right')) { ?> <!-- Right --> <div id="right" class="<?php echo grid($rightWidth, $gDef); ?> "> <jdoc:include type="modules" name="right" style="mod" /> </div> <?php } ?> </div> </div> </div> </div> </div> <?php // INFO BOTTOM (breadcrumb, extra-content...)
/** * Section template. */ function section_template() { $grid_args = array('data' => 'array_callback', 'callback' => array(&$this, 'morefoot_sidebar'), 'per_row' => 3); // Call the Grid printf('<div class="morefoot fix"><div class="morefoot-pad">%s</div></div>', grid($this->master, $grid_args)); }
<?php require_once "../classes/YASE/Framework.php"; require_once "../classes/Template.php"; require_once "app/views/grid.php"; Template::admintop(); ?> <br> <H1>Crawler filter for <?php print $_SESSION['account_domain']; ?> </H1> <br><br> Edit this list with regular expressions that identifies pages to be skipped. <br><br> <div id="setting"> <div id="crawler"></div> </div> <?php grid("crawlerfilters", "crawler", "{}"); ?> <?php Template::bottom(); ?>
<?php require_once "../classes/YASE/Framework.php"; require_once "../classes/Template.php"; require_once "app/views/grid.php"; Template::admintop(); ?> <H1>Body filter </h1> <br><br> <p> Identify regular expressions that can be used to extract content from known page types </p> <p> <i>NOTE: this page is not finished</i> </p> <div id="setting"> <div id="bodyfilter"></div> </div> <?php grid("bodyfilter", "bodyfilter", "{}"); ?> <?php Template::bottom();
<?php require_once "../classes/YASE/Framework.php"; require_once "../classes/Template.php"; require_once "app/views/grid.php"; Template::admintop(); ?> <H1> Indexer filter for <?php print $_SESSION['account_domain']; ?> </H1> <br><br> Edit this list with regular expressions that identifies pages to be skipped during indexing. <br><br> <div id="setting"> <div id="indexer"></div> </div> <?php grid("indexerfilters", "indexer", "{}"); ?> <?php Template::bottom(); ?>