本文整理匯總了PHP中Gallery::getAlbumUseImagedate方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gallery::getAlbumUseImagedate方法的具體用法?PHP Gallery::getAlbumUseImagedate怎麽用?PHP Gallery::getAlbumUseImagedate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Gallery
的用法示例。
在下文中一共展示了Gallery::getAlbumUseImagedate方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: gettext
echo $continue;
?>
" style="font-size: 15pt; font-weight: bold;">
<?php
echo gettext("Continue!");
?>
</a>
</p>
<?php
}
} else {
if (db_connect()) {
echo "<h3>" . gettext("database connected") . "</h3>";
if ($type !== 'prune&') {
if (!empty($id)) {
$sql = "UPDATE " . prefix('albums') . " SET `mtime`=0" . ($gallery->getAlbumUseImagedate() ? ", `date`=NULL" : '') . " WHERE `id`={$id}";
query($sql);
}
$sql = "UPDATE " . prefix('albums') . " SET `mtime`=0 {$albumwhere}";
query($sql);
$sql = "UPDATE " . prefix('images') . " SET `mtime`=0 {$imagewhere};";
query($sql);
}
if (!empty($folder) && empty($id)) {
echo "<p> " . sprintf(gettext("<em>%s</em> not found"), $folder) . "</p>";
} else {
if (empty($r)) {
echo "<p>" . $allset . "</p>";
} else {
echo "<p>" . sprintf(gettext("We're all set to refresh the metadata for <em>%s</em>"), $r) . "</p>";
}
示例2: gettext
echo gettext('<strong>NOTE:</strong> enabling this feature is not recommended as it is susceptible to Cross Site Request Forgeries.');
?>
</p>
</td>
</tr>
<tr>
<td><?php
echo gettext("Gallery behavior:");
?>
</td>
<td>
<p>
<label>
<input type="checkbox" name="album_use_new_image_date" id="album_use_new_image_date"
value="1" <?php
echo checked('1', $gallery->getAlbumUseImagedate());
?>
/>
<?php
echo gettext("use latest image date as album date");
?>
</label>
</p>
<?php
if (GALLERY_SECURITY == 'public') {
$disable = $gallery->getUser() || getOption('search_user') || getOption('protected_image_user');
?>
<p class="public_gallery"<?php
if (GALLERY_SECURITY == 'private') {
echo ' style="display:none"';
}