Ejemplo n.º 1
0
        <?php 
if (empty($wp_properties['property_groups']) || $wp_properties['configuration']['property_overview']['sort_stats_by_groups'] != 'true') {
    ?>
          <ul id="property_stats" class="<?php 
    wpp_css('property::property_stats', "property_stats overview_stats list");
    ?>
">
            <?php 
    @draw_stats("display=list&make_link=true");
    ?>
          </ul>
        <?php 
} else {
    ?>
          <?php 
    @draw_stats("display=list&make_link=true");
    ?>
        <?php 
}
?>

        <?php 
if (!empty($wp_properties['taxonomies'])) {
    foreach ($wp_properties['taxonomies'] as $tax_slug => $tax_data) {
        ?>
          <?php 
        if (get_features("type={$tax_slug}&format=count")) {
            ?>
          <div class="<?php 
            echo $tax_slug;
            ?>
Ejemplo n.º 2
0
    if (isset($_GET['dl_alog'])) {
        header("content-type: text/plain");
        readfile($alog);
        exit;
    } else {
        if (isset($_GET['dl_elog'])) {
            if (is_readable($elog)) {
                header("content-type: text/plain");
                readfile($elog);
                exit;
            } else {
                output_and_exit("<h1>Couldn't Read Error Log</h1>");
            }
        } else {
            # down here is the normal case, drawing the stats
            output_and_exit(draw_stats());
        }
    }
} else {
    $logdir = preg_replace("/\\/[^\\/]+\$/", "", $alog);
    output_and_exit("\n        <h1>Couldn't Read Access Log</h1>\n        Try running the following from the command line:\n        <pre>chmod 777 {$logdir}\n        chmod 666 {$alog}\n        chmod 666 {$elog}</pre>\n    ");
}
#-------------------------------------------
# draw stats in HTML (returns a string)
#-------------------------------------------
function draw_stats()
{
    global $maxlines, $alog, $elog;
    # start timer
    $starttime = microtime(true);
    $out = "";
        wpp_css('property_overview::property_title', 'property_title');
        ?>
">
            <a <?php 
        echo $in_new_window;
        ?>
 href="<?php 
        echo $property['permalink'];
        ?>
"><?php 
        echo $property['post_title'];
        ?>
</a>
          </li>
          <?php 
        echo @draw_stats('display=list&sort_by_groups=false', $property);
        ?>
        </ul>

      </div>
      <div class="<?php 
        wpp_css('property_overview::right_column', 'wpp_overview_feps_column');
        ?>
" style="margin-left:<?php 
        echo $thumbnail_dimentions['width'] + 12;
        /* 12 is boubled image border */
        ?>
px; ">
        <ul class="<?php 
        wpp_css('property_overview::data', 'wpp_overview_data feps_action clearfix');
        ?>
<?php

/**
 * [property_attributes] template
 *
 * To modify it, copy it to your theme's root.
 */
?>

<?php 
if ($data['display'] == 'list' && $data['sort_by_groups'] != 'true') {
    ?>
  <ul id="property_stats" class="<?php 
    wpp_css('property::property_stats', "property_stats overview_stats list");
    ?>
">
    <?php 
    @draw_stats($data);
    ?>
  </ul>
<?php 
} else {
    ?>
  <?php 
    @draw_stats($data);
}