本文整理汇总了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"';
}