编辑“Gallery:我是如何将slider外观主题嵌入到我的网站中的”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第121行: | 第121行: | ||
<?php | <?php | ||
require_once(dirname(__FILE__) . "/../gallery2/embed.php"); | require_once(dirname(__FILE__) . "/../gallery2/embed.php"); | ||
/* | /* connect to embed library */ | ||
$ret = GalleryEmbed::init(array('embedUri' => '/gallery2/index.php','embedPath' => '/gallery2','relativeG2Path' => '','fullInit' => true)); | $ret = GalleryEmbed::init(array('embedUri' => '/gallery2/index.php','embedPath' => '/gallery2','relativeG2Path' => '','fullInit' => true)); | ||
/* | /* fetch all albums by item id */ | ||
list ($error,$albums) = GalleryCoreApi::fetchAlbumTree(<font color="red">69</font>); | list ($error,$albums) = GalleryCoreApi::fetchAlbumTree(<font color="red">69</font>); | ||
/* fetch all thumbnails for these albums */ | /* fetch all thumbnails for these albums */ | ||
if(!$error) { | if(!$error) { | ||
/* | /* fetch album info for all albums */ | ||
list ($error,$items) = GalleryCoreApi::loadEntitiesById(GalleryUtilities::arrayKeysRecursive($albums)); | list ($error,$items) = GalleryCoreApi::loadEntitiesById(GalleryUtilities::arrayKeysRecursive($albums)); | ||
if(!$error) { | if(!$error) { |