/[drupal]/contributions/modules/photos/inc/photos.data.inc
ViewVC logotype

Diff of /contributions/modules/photos/inc/photos.data.inc

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

revision 1.1.2.2 by eastcn, Tue Mar 10 02:18:59 2009 UTC revision 1.1.2.3 by eastcn, Sun Mar 22 18:53:55 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: photos.data.inc,v 1.1.2.1 2009/03/06 08:22:41 eastcn Exp $  // $Id: photos.data.inc,v 1.1.2.2 2009/03/10 02:18:59 eastcn Exp $
3    
4  function photos_page_slide($ac){  function photos_page_slide($ac){
5    if($ac->album['album']['count'] && $ac->album['image']['count']){    if($ac->album['album']['count'] && $ac->album['image']['count']){
6      list($width, $height) = explode('x', variable_get('photos_display_slide', '640x480'));      list($width, $height) = explode('x', variable_get('photos_display_slide', '640x480'));
7      $v = dfgallery_html(array('url' => url("photos/data/user/$ac->uid", array('absolute' => true, 'query' => array('type' => 'json.json'))), 'width' => $width, 'height' => $height));      $v = dfgallery_html(array('url' => url("photos/data/user/$ac->uid/json.json", array('absolute' => true)), 'width' => $width, 'height' => $height));
8    }else{    }else{
9      $v = photos_page_title($ac, t('has not yet create an album'));      $v = photos_page_title($ac, t('has not yet create an album'));
10    }    }
# Line 40  function photos_data_user($ac){ Line 40  function photos_data_user($ac){
40          'images' => $t[$key]['image']          'images' => $t[$key]['image']
41        );        );
42      }      }
43      print dfgallery_json($album);      if(variable_get('photos_slide_music', false)){
44          $setting['config']['theme']['config_theme_music'] = variable_get('photos_slide_music', false);
45        }
46        print dfgallery_json($album, $setting);
47    }    }
48  }  }
49    
# Line 110  function photos_data_album($node){ Line 113  function photos_data_album($node){
113          'images' => $array,          'images' => $array,
114        )        )
115      );      );
116      print dfgallery_json($albums);      if(variable_get('photos_slide_music', false)){
117          $setting['config']['theme']['config_theme_music'] = $node->album['slide_music'] ? $node->album['slide_music'] : variable_get('photos_slide_music', false);
118        }
119        print dfgallery_json($albums, $setting);
120    }    }
121  }  }
122    

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.3