1
0

Fix bad variable assignment & some typos

This commit is contained in:
Chris Chiappa 2012-09-26 16:01:14 -04:00
parent 0e16587bc4
commit d32f9cb53e
2 changed files with 8 additions and 8 deletions

View File

@ -100,14 +100,14 @@ class Admin_Carousel_Controller extends Admin_Controller {
$shortrange["$key"] = sprintf("%.1f", (float)$i / 2); $shortrange["$key"] = sprintf("%.1f", (float)$i / 2);
} }
if (module::get_var("carousel", "autoscroll") == true) { if (module::get_var("carousel", "autoscroll") == true) {
$disableme == "false"; $disableme = "false";
} else { } else {
$disableme == "true"; $disableme = "true";
} }
$form = new Forge("admin/carousel/handler", "", "post", array("id" => "g-admin-form")); $form = new Forge("admin/carousel/handler", "", "post", array("id" => "g-admin-form"));
$group = $form->group("carousel")->label(t("General carousel settings")); $group = $form->group("carousel")->label(t("General carousel settings"));
$group->checkbox("circular")->label(t('Enable the carousel to be circular so it starts over again from the beggining.')) $group->checkbox("circular")->label(t('Enable the carousel to be circular so it starts over again from the beginning.'))
->checked(module::get_var("carousel", "circular", "0")); ->checked(module::get_var("carousel", "circular", "0"));
$group->checkbox("autoscroll")->label(t('Carousel should auto scroll. Toggle value to change settings below.')) $group->checkbox("autoscroll")->label(t('Carousel should auto scroll. Toggle value to change settings below.'))
->onClick("toggle()") ->onClick("toggle()")
@ -135,7 +135,7 @@ class Admin_Carousel_Controller extends Admin_Controller {
$group->dropdown("visible2")->label(t('Enter number of thumbs to show. (height of carousel)')) $group->dropdown("visible2")->label(t('Enter number of thumbs to show. (height of carousel)'))
->options($shortrange) ->options($shortrange)
->selected(module::get_var("carousel", "visible2", "1")); ->selected(module::get_var("carousel", "visible2", "1"));
$group->dropdown("quantity2")->label(t("Choose the toal quantity of thumbs in recent carousel.")) $group->dropdown("quantity2")->label(t("Choose the total quantity of thumbs in recent carousel."))
->options($range) ->options($range)
->selected(module::get_var("carousel", "quantity2", "25")); ->selected(module::get_var("carousel", "quantity2", "25"));
$group->checkbox("onalbum2")->label(t("Show on album & collection pages")) $group->checkbox("onalbum2")->label(t("Show on album & collection pages"))
@ -152,7 +152,7 @@ class Admin_Carousel_Controller extends Admin_Controller {
$group->dropdown("visible3")->label(t('Enter number of thumbs to show. (height of carousel)')) $group->dropdown("visible3")->label(t('Enter number of thumbs to show. (height of carousel)'))
->options($shortrange) ->options($shortrange)
->selected(module::get_var("carousel", "visible3", "1")); ->selected(module::get_var("carousel", "visible3", "1"));
$group->dropdown("quantity3")->label(t("Choose the toal quantity of thumbs in popular carousel.")) $group->dropdown("quantity3")->label(t("Choose the total quantity of thumbs in popular carousel."))
->options($range) ->options($range)
->selected(module::get_var("carousel", "quantity3", "25")); ->selected(module::get_var("carousel", "quantity3", "25"));
$group->checkbox("onalbum3")->label(t("Show on album & collection pages")) $group->checkbox("onalbum3")->label(t("Show on album & collection pages"))
@ -169,7 +169,7 @@ class Admin_Carousel_Controller extends Admin_Controller {
$group->dropdown("visible")->label(t('Enter number of thumbs to show. (height of carousel)')) $group->dropdown("visible")->label(t('Enter number of thumbs to show. (height of carousel)'))
->options($shortrange) ->options($shortrange)
->selected(module::get_var("carousel", "visible", "1")); ->selected(module::get_var("carousel", "visible", "1"));
$group->dropdown("quantity")->label(t("Choose the toal quantity of thumbs in random carousel.")) $group->dropdown("quantity")->label(t("Choose the total quantity of thumbs in random carousel."))
->options($range) ->options($range)
->selected(module::get_var("carousel", "quantity", "25")); ->selected(module::get_var("carousel", "quantity", "25"));
$group->checkbox("onalbum")->label(t("Show on album & collection pages")) $group->checkbox("onalbum")->label(t("Show on album & collection pages"))
@ -180,4 +180,4 @@ class Admin_Carousel_Controller extends Admin_Controller {
$form->submit("submit")->value(t("Save")); $form->submit("submit")->value(t("Save"));
return $form; return $form;
} }
} }

View File

@ -18,6 +18,6 @@ window.onload=toggle;
<hr /> <hr />
<h3><?= t("Notes:") ?></h3> <h3><?= t("Notes:") ?></h3>
<p><?= t("Navigation buttons are hard to style and clutter the user interface.<br /> <p><?= t("Navigation buttons are hard to style and clutter the user interface.<br />
Use mouse wheel to scroll thought the images.") ?></p> Use mouse wheel to scroll through the images.") ?></p>
</div> </div>
</div> </div>