| 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 |
} |
} |
| 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 |
|
|
| 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 |
|
|