本文整理匯總了PHP中Gallery::getThumbSelectImages方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gallery::getThumbSelectImages方法的具體用法?PHP Gallery::getThumbSelectImages怎麽用?PHP Gallery::getThumbSelectImages使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Gallery
的用法示例。
在下文中一共展示了Gallery::getThumbSelectImages方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: gettext
$saprefix = " » " . $saprefix;
$salevel++;
}
echo '<option value="' . $fullfolder . '"' . ($salevel > 0 ? ' style="background-color: ' . $bglevels[$salevel] . '; border-bottom: 1px dotted #ccc;"' : '') . ">" . $saprefix . $singlefolder . " (" . $albumtitle . ')' . "</option>\n";
}
?>
</select></td>
</tr>
<tr>
<td><?php
echo gettext("Thumbnail:");
?>
</td>
<td><select id="thumb" name="thumb">
<?php
$showThumb = $gallery->getThumbSelectImages();
echo "\n<option";
if ($showThumb) {
echo " class=\"thumboption\" value=\"\" style=\"background-color:#B1F7B6\"";
}
echo ' value="1">' . get_language_string(getOption('AlbumThumbSelectorText'));
echo '</option>';
echo "\n<option";
if ($showThumb) {
echo " class=\"thumboption\" value=\"\" style=\"background-color:#B1F7B6\"";
}
echo " selected=\"selected\"";
echo ' value="">' . gettext('randomly selected');
echo '</option>';
foreach ($imagelist as $imagepath) {
$pieces = explode('/', $imagepath);
示例2: checked
</p>
<?php
} else {
?>
<input type="hidden" name="login_user_field" id="login_user_field" value="<?php
echo $gallery->getUserLogonField();
?>
" />
<?php
}
?>
<p>
<label>
<input type="checkbox" name="thumb_select_images" id="thumb_select_images"
value="1" <?php
echo checked('1', $gallery->getThumbSelectImages());
?>
/>
<?php
echo gettext("visual thumb selection");
?>
</label>
</p>
<p>
<label>
<input type="checkbox" name="persistent_archive" id="persistent_archive"
value="1" <?php
echo checked('1', $gallery->getPersistentArchive());
?>
/>
<?php