本文整理匯總了PHP中Gallery::getSortDirection方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gallery::getSortDirection方法的具體用法?PHP Gallery::getSortDirection怎麽用?PHP Gallery::getSortDirection使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Gallery
的用法示例。
在下文中一共展示了Gallery::getSortDirection方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: gettext
$message = gettext('Tags added for images of selected items');
break;
case 'clearalltags':
$message = gettext('Tags cleared for images of selected items');
break;
}
echo '<div class="messagebox fade-message">';
echo "<h2>" . $message . "</h2>";
echo '</div>';
}
$albums = getNestedAlbumList(NULL, $gallery_nesting);
if (count($albums) > 0) {
if (zp_loggedin(ADMIN_RIGHTS) && count($albums) > 1) {
$sorttype = strtolower($gallery->getSortType());
if ($sorttype != 'manual') {
if ($gallery->getSortDirection()) {
$dir = gettext(' descending');
} else {
$dir = '';
}
$sortNames = array_flip($sortby);
$sorttype = $sortNames[$sorttype];
} else {
$dir = '';
}
?>
<p>
<?php
printf(gettext('Current sort: <em>%1$s%2$s</em>.'), $sorttype, $dir);
?>
</p>
示例2: generateListFromArray
<?php
if (array_search($cv, $sort) === false) {
$cv = 'custom';
}
generateListFromArray(array($cv), $sort, false, true);
?>
</select>
</td>
<td>
<span id="gallery_sortdirection" style="display:<?php
echo $dspd;
?>
">
<label>
<input type="checkbox" name="gallery_sortdirection" value="1" <?php
echo checked('1', $gallery->getSortDirection());
?>
/>
<?php
echo gettext("Descending");
?>
</label>
</span>
</td>
</tr>
<tr>
<td colspan="2">
<span id="customTextBox2" class="customText" style="display:<?php
echo $dspc;
?>
">