/[drupal]/contributions/modules/mysite/plugins/layouts/default.php
ViewVC logotype

Diff of /contributions/modules/mysite/plugins/layouts/default.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.16, Sun Aug 26 19:38:51 2007 UTC revision 1.17, Sun Apr 6 23:08:27 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: default.php,v 1.15 2007/08/07 01:04:34 agentken Exp $  // $Id: default.php,v 1.16 2007/08/26 19:38:51 agentken Exp $
3    
4  /**  /**
5   * @file   * @file
6   * The default page layout file for MySite.  Required.   * The default page layout file for MySite.  Required.
7     *
8     * @ingroup mysite_plugins
9   */   */
10    
11  /**  /**
12   * Implements theme_mysite_hook_layout()   * Implements theme_mysite_hook_layout()
  *  
  * @ingroup themes  
13   */   */
14  function theme_mysite_default_layout($content) {  function theme_mysite_default_layout($content) {
15    // break the array into pieces    // break the array into pieces
# Line 23  function theme_mysite_default_layout($co Line 23  function theme_mysite_default_layout($co
23      $output = '<div class="messages">'.  $header .'</div>';      $output = '<div class="messages">'.  $header .'</div>';
24    }    }
25    // ajax-generated message class    // ajax-generated message class
26    $output .= '<div class="mysite-ajax"></div>';    $output .= '<div class="mysite-ajax"></div>';
27    $output .= '<div class="mysite-sortable mysite-full-width" id="mysite-sort0">';    $output .= '<div class="mysite-sortable mysite-full-width" id="mysite-sort0">';
28    // cycle through the data    // cycle through the data
29    foreach ($data as $key => $value) {    foreach ($data as $key => $value) {
30      if ($value['mid'] && !$value['locked']) {      if ($value['mid'] && !$value['locked']) {
# Line 38  function theme_mysite_default_layout($co Line 38  function theme_mysite_default_layout($co
38      if (!empty($value['output'])) {      if (!empty($value['output'])) {
39        if (!empty($value['output']['image'])) {        if (!empty($value['output']['image'])) {
40          $output .= $value['output']['image'];          $output .= $value['output']['image'];
41        }        }
42        $output .= theme('mysite_'. $value['format'] .'_item', $value['output']['items']);        $output .= theme('mysite_'. $value['format'] .'_item', $value['output']['items']);
43      }      }
44      else {      else {
# Line 50  function theme_mysite_default_layout($co Line 50  function theme_mysite_default_layout($co
50        $output .= '<div class="mysite-footer-left">'. l(t('Read more'), $value['output']['base']) .'</div>';        $output .= '<div class="mysite-footer-left">'. l(t('Read more'), $value['output']['base']) .'</div>';
51      }      }
52      $output .= ' <div class="mysite-footer-right">'. $value['actions'] .'</div> ';      $output .= ' <div class="mysite-footer-right">'. $value['actions'] .'</div> ';
53      $output .= '</div>';      $output .= '</div>';
54      $output .= '</div>';      $output .= '</div>';
55    }    }
56    $output .= '</div>';    $output .= '</div>';
57    print theme('page', $output, variable_get('mysite_fullscreen', 1));    print theme('page', $output, variable_get('mysite_fullscreen', 1));
# Line 67  function mysite_layout_default() { Line 67  function mysite_layout_default() {
67    $data['count'] = count($data['regions']);    $data['count'] = count($data['regions']);
68    $data['name'] = t('Basic layout');    $data['name'] = t('Basic layout');
69    $data['description'] = t('A single-column display of your personal content.');    $data['description'] = t('A single-column display of your personal content.');
70    $data['image'] = 'default.png';    $data['image'] = 'default.png';
71    return $data;    return $data;
72  }  }

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.2