1
0

Renamed most, if not all css selectors from gModuleName to g-module-name. This might break a few ajax features, please review your modules.

This commit is contained in:
Chad Kieffer 2009-10-04 14:40:59 -06:00
parent e851ca7a33
commit 4be214c4bf
80 changed files with 217 additions and 221 deletions

View File

@ -153,13 +153,13 @@ Items Ordered:
private function getAddToBasketForm($id){
$form = new Forge("basket/add_to_basket", "", "post", array("id" => "gAddToBasketForm"));
$form = new Forge("basket/add_to_basket", "", "post", array("id" => "g-add-to-basket-form"));
$group = $form->group("add_to_basket")->label(t("Add To Basket"));
$group->hidden("id");
$group->dropdown("product")
->label(t("Product"))
->options(product::getProductArray($id));
$group->input("quantity")->label(t("Quantity"))->id("gQuantity");
$group->input("quantity")->label(t("Quantity"))->id("g-quantity");
$group->submit("")->value(t("Add"));
//$group->submit("proceedToCheckout")->value(t("Proceed To Checkout"));

View File

@ -42,9 +42,9 @@ class basket_Core {
static $format= array(
"AUD" => "$",
"CAD" => "$",
"EUR" => "",
"GBP" => "£",
"JPY" => "¥",
"EUR" => "<EFBFBD>",
"GBP" => "<EFBFBD>",
"JPY" => "<EFBFBD>",
"USD" => "$",
"NZD" => "$",
"CHF" => "",
@ -61,15 +61,15 @@ class basket_Core {
static function get_configure_form() {
$form = new Forge("admin/configure", "", "post", array("id" => "gConfigureForm"));
$form = new Forge("admin/configure", "", "post", array("id" => "g-configure-form"));
$group = $form->group("configure")->label(t("Configure Basket"));
$group->input("email")->label(t("Offline Paying Email Address"))->id("gOrderEmailAddress");
$group->input("email")->label(t("Offline Paying Email Address"))->id("g-order-email-address");
$group->dropdown("currency")
->label(t("Currency"))
->options(self::$currencies);
$group->checkbox("paypal")->label(t("Use Paypal"))->id("gPaypal");
$group->input("paypal_account")->label(t("Paypal E-Mail Address"))->id("gPaypalAddress");
$group->checkbox("paypal")->label(t("Use Paypal"))->id("g-paypal");
$group->input("paypal_account")->label(t("Paypal E-Mail Address"))->id("g-paypal-address");
$group->submit("")->value(t("Save"));
return $form;
}

View File

@ -20,12 +20,12 @@
class product_Core {
static function get_add_form_admin() {
$form = new Forge("admin/product_lines/add_product", "", "post", array("id" => "gAddProductForm"));
$form = new Forge("admin/product_lines/add_product", "", "post", array("id" => "g-add-product-form"));
$group = $form->group("add_product")->label(t("Add Product"));
$group->input("name")->label(t("Name"))->id("gProductName")
$group->input("name")->label(t("Name"))->id("g-product-name")
->error_messages("in_use", t("There is already a product with that name"));
$group->input("cost")->label(t("Cost"))->id("gCost");
$group->input("description")->label(t("Description"))->id("gDescription");
$group->input("cost")->label(t("Cost"))->id("g-cost");
$group->input("description")->label(t("Description"))->id("g-description");
$group->submit("")->value(t("Add Product"));
$product = ORM::factory("product");
$form->add_rules_from($product);
@ -34,13 +34,13 @@ class product_Core {
static function get_edit_form_admin($product) {
$form = new Forge("admin/product_lines/edit_product/$product->id", "", "post",
array("id" => "gEditProductForm"));
array("id" => "g-edit-product-form"));
$group = $form->group("edit_product")->label(t("Edit Product"));
$group->input("name")->label(t("Name"))->id("gProductName")->value($product->name);
$group->input("name")->label(t("Name"))->id("g-product-name")->value($product->name);
$group->inputs["name"]->error_messages(
"in_use", t("There is already a product with that name"));
$group->input("cost")->label(t("Cost"))->id("gCost")->value($product->cost);
$group->input("description")->label(t("Description"))->id("gDescription")->
$group->input("cost")->label(t("Cost"))->id("g-cost")->value($product->cost);
$group->input("description")->label(t("Description"))->id("g-description")->
value($product->description);
$group->submit("")->value(t("Modify Product"));
@ -51,7 +51,7 @@ class product_Core {
static function get_delete_form_admin($product) {
$form = new Forge("admin/product_lines/delete_product/$product->id", "", "post",
array("id" => "gDeleteProductForm"));
array("id" => "g-delete-product-form"));
$group = $form->group("delete_product")->label(
t("Are you sure you want to delete product %name?", array("name" => $product->name)));
$group->submit("")->value(t("Delete product %name", array("name" => $product->name)));

View File

@ -3,6 +3,6 @@
<div id="add_to_basket">
<a href="<?= url::site("basket/add_to_basket_ajax/$item->id") ?>"
title="<?= t("Add To Basket") ?>"
class="gDialogLink">
class="g-dialog-link">
Add To Basket</a>
</div>

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gAddToBasket">
<div id="g-add-to-basket">
<div id="basketThumb">
<img src="<?= $item->thumb_url()?>" title="<?= $item->title?>" alt="<?= $item->title?>" />
</div>

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gAdminConfigure">
<div id="g-admin-configure">
<h1> <?= t("Configure Shopping Basket") ?> </h1>
<p>
<?= t("Use this page to configure the shopping basket. If you have paypal you can use this to processs the final payments.") ?>

View File

@ -18,10 +18,10 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
?>
<div class="gBlock">
<div class="g-block">
<a href="<?= url::site("admin/product_lines/add_product_form") ?>"
class="gDialogLink gButtonLink right ui-icon-left ui-state-default ui-corner-all"
class="g-dialog-link g-button g-right ui-icon-left ui-state-default ui-corner-all"
title="<?= t("Create a new Product") ?>">
<span class="ui-icon ui-icon-circle-plus"></span>
<?= t("Add a new Product") ?>
@ -31,8 +31,8 @@
<?= t("Product Lines") ?>
</h2>
<div class="gBlockContent">
<table id="gProductAdminList">
<div class="g-block-content">
<table id="g-product-admin-list">
<tr>
<th><?= t("Name") ?></th>
<th><?= t("Cost") ?></th>
@ -41,7 +41,7 @@
</tr>
<? foreach ($products as $i => $product): ?>
<tr id="gProduct-<?= $product->id ?>" class="<?= text::alternate("gOddRow", "gEvenRow") ?>">
<tr id="g-product-<?= $product->id ?>" class="<?= text::alternate("g-odd", "g-even") ?>">
<td id="product-<?= $product->id ?>" class="core-info ">
<?= html::clean($product->name) ?>
</td>
@ -51,14 +51,14 @@
<td>
<?= html::clean($product->description) ?>
</td>
<td class="gActions">
<td class="g-actions">
<a href="<?= url::site("admin/product_lines/edit_product_form/$product->id") ?>"
open_text="<?= t("close") ?>"
class="gPanelLink gButtonLink ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-pencil"></span><span class="gButtonText"><?= t("edit") ?></span></a>
class="g-panel-link g-button ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-pencil"></span><span class="g-button-text"><?= t("edit") ?></span></a>
<a href="<?= url::site("admin/product_lines/delete_product_form/$product->id") ?>"
class="gDialogLink gButtonLink ui-state-default ui-corner-all ui-icon-left">
class="g-dialog-link g-button ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-trash"></span><?= t("delete") ?></a>
</td>

View File

@ -53,12 +53,12 @@ function so(){
}
}
</SCRIPT>
<div class="gBlock">
<div class="g-block">
<?= $form ?>
<h2>Payment Details</h2>
<p>After you have confirmed the order we will get in contact with you to arrange payment.</p>
<a href="<?= url::site("basket/view_basket") ?>" class="left gButtonLink ui-state-default ui-corner-all ui-icon-left">
<a href="<?= url::site("basket/view_basket") ?>" class="left g-button ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-arrow-1-w"></span><?= t("Back to Basket") ?></a>
<a href="javascript: so()" class="right gButtonLink ui-state-default ui-corner-all ui-icon-right">
<a href="javascript: so()" class="g-right g-button ui-state-default ui-corner-all ui-icon-right">
<span class="ui-icon ui-icon-arrow-1-e"></span><?= t("Proceed to Confirmation") ?></a>
</div>

View File

@ -22,10 +22,10 @@
function so(){document.confirm.submit();}
</SCRIPT>
<?= $form ?>
<div class="gBlock">
<div class="g-block">
<h2>Basket Summary</h2>
<div class="gBlockContent">
<table id="gBasketList">
<div class="g-block-content">
<table id="g-basket-list">
<tr>
<th><?= t("Name") ?></th>
<th><?= t("Product") ?></th>
@ -33,8 +33,7 @@ function so(){document.confirm.submit();}
<th><?= t("Cost") ?></th>
</tr>
<? foreach ($basket->contents as $key => $prod_details): ?>
<tr id="" class="<?= text::alternate("gOddRow", "gEvenRow") ?>">
<tr id="" class="<?= text::alternate("g-odd", "g-even") ?>">
<td id="item-<?= $prod_details->item ?>" class="core-info ">
<? $item = $prod_details->getItem(); ?>
<div>
@ -50,12 +49,11 @@ function so(){document.confirm.submit();}
<td>
<?= html::clean(basket::formatMoney($prod_details->cost)) ?>
</td>
</tr>
</tr>
<? endforeach ?>
<tr id="" class="<?= text::alternate("gOddRow", "gEvenRow") ?>">
<tr id="" class="<?= text::alternate("g-odd", "g-even") ?>">
<td></td><td></td><td>Total Cost</td><td><?= html::clean($basket->cost())?></td>
</tr>
</table>
</div>
<table>
@ -74,9 +72,9 @@ E-mail : <?= $basket->email ?><br/>
Telephone : <?= $basket->phone ?>
</td></tr>
</table>
<a href="<?= url::site("basket/checkout") ?>" class="left gButtonLink ui-state-default ui-corner-all ui-icon-left">
<a href="<?= url::site("basket/checkout") ?>" class="g-left g-button ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-arrow-1-w"></span><?= t("Back to Checkout") ?></a>
<a href="javascript: so()" class="right gButtonLink ui-state-default ui-corner-all ui-icon-right">
<a href="javascript: so()" class="g-right g-button ui-state-default ui-corner-all ui-icon-right">
<span class="ui-icon ui-icon-arrow-1-e"></span><?= t("Confirm Order") ?></a>
</div>

View File

@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
?>
<div class="gBlock">
<div class="g-block">
<h2>Thankyou for your order</h2>
You will be contacted soon to arrange payment and delivery.
</div>

View File

@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
?>
<div class="gBlock">
<div class="g-block">
<? if (isset($basket->contents ) && count($basket->contents) > 0): ?>
<? if (basket::isPaypal()): ?>
@ -28,14 +28,14 @@
var d=document.paypal_form.submit();
}</script>
<a href="javascript:co();"
class="right gButtonLink ui-state-default ui-corner-all ui-icon-right">
class="g-right g-button ui-state-default ui-corner-all ui-icon-right">
<span class="ui-icon ui-icon-arrow-1-e"></span><?= t("Pay with Credit Card or Paypal") ?></a>
<a href="<?= url::site("basket/checkout") ?>"
class="right gButtonLink ui-state-default ui-corner-all ui-icon-right">
class="g-right g-button ui-state-default ui-corner-all ui-icon-right">
<span class="ui-icon ui-icon-arrow-1-e"></span><?= t("Pay off line") ?></a>
<? else: ?>
<a href="<?= url::site("basket/checkout") ?>"
class="right gButtonLink ui-state-default ui-corner-all ui-icon-right">
class="g-right g-button ui-state-default ui-corner-all ui-icon-right">
<span class="ui-icon ui-icon-arrow-1-e"></span><?= t("Proceed to Checkout") ?></a>
<? endif; ?>
<? endif; ?>
@ -43,10 +43,10 @@
<?= t("Shopping Basket") ?>
</h2>
<div class="gBlockContent">
<div class="g-block-content">
<? if (isset($basket->contents ) && count($basket->contents) > 0): ?>
<table id="gBasketList">
<table id="g-basket-list">
<tr>
<th><?= t("Picture") ?></th>
<th><?= t("Product") ?></th>
@ -58,7 +58,7 @@
<? $total=0;?>
<? foreach ($basket->contents as $key => $prod_details): ?>
<tr id="" class="<?= text::alternate("gOddRow", "gEvenRow") ?>">
<tr id="" class="<?= text::alternate("g-odd", "g-even") ?>">
<td id="item-<?= $prod_details->item ?>" class="core-info ">
<? $item = $prod_details->getItem(); ?>
@ -76,19 +76,19 @@
<? $total += $prod_details->cost?>
<?= html::clean(basket::formatMoney($prod_details->cost)) ?>
</td>
<td class="gActions">
<td class="g-actions">
<!-- a href="<?= url::site("admin/product_lines/edit_product_form/") ?>"
open_text="<?= t("close") ?>"
class="gPanelLink gButtonLink ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-pencil"></span><span class="gButtonText"><?= t("edit") ?></span></a-->
class="g-panel-link g-button ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-pencil"></span><span class="g-button-text"><?= t("edit") ?></span></a-->
<a href="<?= url::site("basket/remove_item/$key") ?>"
class="gButtonLink ui-state-default ui-corner-all ui-icon-left">
class="g-button ui-state-default ui-corner-all ui-icon-left">
<span class="ui-icon ui-icon-trash"></span><?= t("Remove") ?></a>
</td>
</tr>
<? endforeach ?>
<tr id="" class="<?= text::alternate("gOddRow", "gEvenRow") ?>">
<tr id="" class="<?= text::alternate("g-odd", "g-even") ?>">
<td></td><td></td><td>Total Cost</td><td><?= html::clean(basket::formatMoney($total))?></td><td></td>
</tr>
@ -103,14 +103,14 @@
<? if (basket::isPaypal()): ?>
<a href="javascript:co();"
class="right gButtonLink ui-state-default ui-corner-all ui-icon-right">
class="g-right g-button ui-state-default ui-corner-all ui-icon-right">
<span class="ui-icon ui-icon-arrow-1-e"></span><?= t("Pay with Credit Card or Paypal") ?></a>
<a href="<?= url::site("basket/checkout") ?>"
class="right gButtonLink ui-state-default ui-corner-all ui-icon-right">
class="g-right g-button ui-state-default ui-corner-all ui-icon-right">
<span class="ui-icon ui-icon-arrow-1-e"></span><?= t("Pay off line") ?></a>
<? else: ?>
<a href="<?= url::site("basket/checkout") ?>"
class="right gButtonLink ui-state-default ui-corner-all ui-icon-right">
class="g-right g-button ui-state-default ui-corner-all ui-icon-right">
<span class="ui-icon ui-icon-arrow-1-e"></span><?= t("Proceed to Checkout") ?></a>
<? endif; ?>
<? endif; ?>

View File

@ -33,13 +33,13 @@ class batchtag_theme_Core {
// Make a new sidebar block.
$block = new Block();
$block->css_id = "gBatchTag";
$block->css_id = "g-batch-tag";
$block->title = t("Batch Tag");
$block->content = new View("batchtag_block.html");
// Make a new form to place in the sidebar block.
$form = new Forge("batchtag/tagitems", "", "post",
array("id" => "gBatchTagForm"));
array("id" => "g-batch-tag-form"));
$label = t("Tag everything in this album:");
$group = $form->group("add_tag")->label("Add Tag");
$group->input("name")->label($label)->rules("required|length[1,64]");

View File

@ -67,7 +67,7 @@ class Admin_ContactOwner_Controller extends Admin_Controller {
private function _get_admin_form() {
// Make a new Form.
$form = new Forge("admin/contactowner/saveprefs", "", "post",
array("id" => "gContactOwnerAdminForm"));
array("id" => "g-contact-owner-adminForm"));
// Make an array for the different types of link codes.
$add_contactlinks = $form->group("contactOwnerLinks");

View File

@ -28,7 +28,7 @@ class ContactOwner_Controller extends Controller {
// Make a new form with a couple of text boxes.
$form = new Forge("contactowner/sendemail", "", "post",
array("id" => "gContactOwnerSendForm"));
array("id" => "g-contact-owner-send-form"));
$sendmail_fields = $form->group("contactOwner");
$sendmail_fields->input("email_to")->label(t("To:"))->value(module::get_var("contactowner", "contact_owner_name"));
$sendmail_fields->input("email_from")->label(t("From:"))->value(user::active()->email);
@ -62,7 +62,7 @@ class ContactOwner_Controller extends Controller {
// Make a new form with a couple of text boxes.
$form = new Forge("contactowner/sendemail", "", "post",
array("id" => "gContactOwnerSendForm"));
array("id" => "g-contact-owner-send-form"));
$sendmail_fields = $form->group("contactOwner");
$sendmail_fields->input("email_to")->label(t("To:"))->value($userDetails[0]->name);
$sendmail_fields->input("email_from")->label(t("From:"))->value(user::active()->email);

View File

@ -36,7 +36,7 @@ class contactowner_theme_Core {
// Create a new block to display the links in.
$block = new Block();
$block->css_id = "gContactOwner";
$block->css_id = "g-contact-owner";
$block->title = t("Contact:");
$block->content = new View("contactowner_block.html");

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gContactOwnerAdmin">
<div id="g-contact-owner-admin">
<h2> <?= t("Contact Owner Settings") ?> </h2>
<?= $contactowner_form ?>
</div>

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul id="gContactOwner">
<ul id="g-contact-owner">
<? if ($ownerLink != "") { ?>
<li style="clear: both;">
<? print ($ownerLink); ?>

View File

@ -1,6 +1,6 @@
var module_success = function(data) {
$("#gDeveloperAdmin").append('<div id="gModuleProgress" style="margin-top: 1em;"></div>');
$("#gModuleProgress").progressbar();
$("#g-developer-admin").append('<div id="g-module-progress" style="margin-top: 1em;"></div>');
$("#g-module-progress").progressbar();
var task = data.task;
var url = data.url;
@ -10,7 +10,7 @@ var module_success = function(data) {
while (!done) {
$.ajax({async: false,
success: function(data, textStatus) {
$("#gModuleProgress").progressbar("value", data.task.percent_complete);
$("#g-module-progress").progressbar("value", data.task.percent_complete);
done = data.task.done;
},
error: function(XMLHttpRequest, textStatus, errorThrown) {

View File

@ -47,7 +47,7 @@ class Admin_<?= $class_name ?>_Controller extends Admin_Controller {
private function _get_form() {
$form = new Forge("admin/<?= $module ?>/handler", "", "post",
array("id" => "gAdminForm"));
array("id" => "g-adminForm"));
$group = $form->group("group");
$group->input("text")->label(t("Text"))->rules("required");
$group->submit("submit")->value(t("Submit"));

View File

@ -1,14 +1,14 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= html::script("modules/developer/js/developer.js") ?>
<script>
$("#gDeveloperForm").ready(function() {
ajaxify_developer_form("#gDeveloperForm form", module_success);
$("#g-developer-form").ready(function() {
ajaxify_developer_form("#g-developer-form form", module_success);
});
</script>
<div id="gDeveloperAdmin">
<div id="g-developer-admin">
<h2><?= $title ?></h2>
<div id="gDeveloperForm" >
<div id="g-developer-form" >
<?= $developer_content ?>
</div>
</div>

View File

@ -1,25 +1,25 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script>
$("#gGenerateTestData").ready(function() {
$(".gGenerateCheckbox").click(function() {
$("#g-generate-test-data").ready(function() {
$(".g-generate-checkbox").click(function() {
var buttons = $(this).val();
$(buttons).attr("disabled", !this.checked);
});
<? if (!empty($form["generate_albums"])): ?>
$("#gGenerateAlbums").click();
$("#g-generate-albums").click();
<? endif ?>
<? if (!empty($form["generate_photos"])): ?>
$("#gGeneratePhotos").click();
$("#g-generate-photos").click();
<? endif ?>
<? if (!empty($form["generate_comments"])): ?>
$("#gGenerateCommentss").click();
$("#g-generate-comments").click();
<? endif ?>
<? if (!empty($form["generate_tags"])): ?>
$("#gGenerateTags").click();
$("#g-generate-tags").click();
<? endif ?>
});
</script>
<?= form::open($action, array("method" => "post", "id" => "gGenerateTestData"), $hidden) ?>
<?= form::open($action, array("method" => "post", "id" => "g-generate-test-data"), $hidden) ?>
<? if (!empty($album_count)): ?>
<p><?= t("Currently:") ?><br />
@ -29,64 +29,64 @@
<fieldset>
<ul>
<li <? if (!empty($errors["albums"])): ?> class="gError"<? endif ?>>
<li <? if (!empty($errors["albums"])): ?> class="g-error"<? endif ?>>
<fieldset>
<?= form::label("gGenerateAlbums", t("Generate Albums")) ?>
<?= form::checkbox(array("id" => "gGenerateAlbums", "name" => "generate_albums", "class" => "gGenerateCheckbox", "style" => "display:inline", "checked" => !empty($form["generate_albums"])), ".gRadioAlbum") ?>
<?= form::label("g-generate-albums", t("Generate Albums")) ?>
<?= form::checkbox(array("id" => "g-generate-albums", "name" => "generate_albums", "class" => "g-generate-checkbox", "style" => "display:inline", "checked" => !empty($form["generate_albums"])), ".g-radio-album") ?>
<? foreach (array(1, 10, 50, 100, 500, 1000) as $number): ?>
<span style="float:left;padding-right: .5em;"><?= form::label("album_$number", "$number") ?>
<?= form::radio(array("id" => "album_$number", "name" => "albums", "style" => "display:inline", "checked" => $number == 10, "disabled" => true, "class" => "gRadioAlbum"), $number) ?></span>
<?= form::radio(array("id" => "album_$number", "name" => "albums", "style" => "display:inline", "checked" => $number == 10, "disabled" => true, "class" => "g-radio-album"), $number) ?></span>
<? endforeach ?>
</fieldset>
<? if (!empty($errors["albums"]) && $errors["albums"] == "numeric"): ?>
<p class="gError"><?= t("Number to create must be numeric") ?></p>
<p class="g-error"><?= t("Number to create must be numeric") ?></p>
<? endif ?>
</li>
<li <? if (!empty($errors["photos"])): ?> class="gError"<? endif ?>>
<li <? if (!empty($errors["photos"])): ?> class="g-error"<? endif ?>>
<fieldset>
<?= form::label("gGeneratePhotos", t("Generate Photos and Albums")) ?>
<?= form::checkbox(array("id" => "gGeneratePhotos", "name" => "generate_photos", "class" => "gGenerateCheckbox", "style" => "display:inline", "checked" => !empty($form["generate_photos"])), ".gRadioPhoto") ?>
<?= form::label("g-generate-photos", t("Generate Photos and Albums")) ?>
<?= form::checkbox(array("id" => "g-generate-photos", "name" => "generate_photos", "class" => "g-generate-checkbox", "style" => "display:inline", "checked" => !empty($form["generate_photos"])), ".g-radio-photo") ?>
<? foreach (array(1, 10, 50, 100, 500, 1000) as $number): ?>
<span style="float:left;padding-right: .5em;"><?= form::label("photo_$number", "$number") ?>
<?= form::radio(array("id" => "photo_$number", "name" => "photos", "style" => "display:inline", "checked" => $number == 10, "disabled" => true, "class" => "gRadioPhoto"), $number) ?></span>
<?= form::radio(array("id" => "photo_$number", "name" => "photos", "style" => "display:inline", "checked" => $number == 10, "disabled" => true, "class" => "g-radio-photo"), $number) ?></span>
<? endforeach ?>
</fieldset>
<? if (!empty($errors["photos"]) && $errors["photos"] == "numeric"): ?>
<p class="gError"><?= t("Number to create must be numeric") ?></p>
<p class="g-error"><?= t("Number to create must be numeric") ?></p>
<? endif ?>
</li
<? if(!empty($comment_installed)): ?>
<li <? if (!empty($errors["comments"])): ?> class="gError"<? endif ?>>
<li <? if (!empty($errors["comments"])): ?> class="g-error"<? endif ?>>
<fieldset>
<?= form::label("gGenerateComments", t("Generate Comments")) ?>
<?= form::checkbox(array("id" => "gGenerateComments", "name" => "generate_comments", "class" => "gGenerateCheckbox", "style" => "display:inline", "checked" => !empty($form["generate_comments"])), ".gRadioComment") ?>
<?= form::label("g-generate-comments", t("Generate Comments")) ?>
<?= form::checkbox(array("id" => "g-generate-comments", "name" => "generate_comments", "class" => "g-generate-checkbox", "style" => "display:inline", "checked" => !empty($form["generate_comments"])), ".g-radio-comment") ?>
<? foreach (array(1, 10, 50, 100, 500, 1000) as $number): ?>
<span style="float:left;padding-right: .5em;"><?= form::label("comment_$number", "$number") ?>
<?= form::radio(array("id" => "comment_$number", "name" => "comments", "style" => "display:inline", "checked" => $number == 10, "disabled" => true, "class" => "gRadioComment"), $number) ?></span>
<?= form::radio(array("id" => "comment_$number", "name" => "comments", "style" => "display:inline", "checked" => $number == 10, "disabled" => true, "class" => "g-radio-comment"), $number) ?></span>
<? endforeach ?>
</fieldset>
<? if (!empty($errors["comments"]) && $errors["comments"] == "numeric"): ?>
<p class="gError"><?= t("Number to create must be numeric") ?></p>
<p class="g-error"><?= t("Number to create must be numeric") ?></p>
<? endif ?>
</li>
<? endif ?>
<? if(!empty($tag_installed)): ?>
<li <? if (!empty($errors["tags"])): ?> class="gError"<? endif ?>>
<li <? if (!empty($errors["tags"])): ?> class="g-error"<? endif ?>>
<fieldset>
<?= form::label("gGenerateTags", t("Generate Tags")) ?>
<?= form::checkbox(array("id" => "gGenerateTags", "name" => "generate_tags", "class" => "gGenerateCheckbox", "style" => "display:inline", "checked" => !empty($form["generate_tags"])), ".gRadioTag") ?>
<?= form::label("g-generate-tags", t("Generate Tags")) ?>
<?= form::checkbox(array("id" => "g-generate-tags", "name" => "generate_tags", "class" => "g-generate-checkbox", "style" => "display:inline", "checked" => !empty($form["generate_tags"])), ".g-radio-tag") ?>
<? foreach (array(1, 10, 50, 100, 500, 1000) as $number): ?>
<span style="float:left;padding-right: .5em;"><?= form::label("tag_$number", "$number") ?>
<?= form::radio(array("id" => "tag_$number", "name" => "tags", "style" => "display:inline", "checked" => $number == 10, "disabled" => true, "class" => "gRadioTag"), $number) ?></span>
<?= form::radio(array("id" => "tag_$number", "name" => "tags", "style" => "display:inline", "checked" => $number == 10, "disabled" => true, "class" => "g-radio-tag"), $number) ?></span>
<? endforeach ?>
</fieldset>
<? if (!empty($errors["tags"]) && $errors["tags"] == "numeric"): ?>
<p class="gError"><?= t("Number to create must be numeric") ?></p>
<p class="g-error"><?= t("Number to create must be numeric") ?></p>
<? endif ?>
</li>
<? endif ?>
<li>
<?= form::submit(array("id" => "gGenerateData", "name" => "generate", "class" => "submit", "style" => "clear:both!important"), t("Generate")) ?>
<?= form::submit(array("id" => "g-generate-data", "name" => "generate", "class" => "submit", "style" => "clear:both!important"), t("Generate")) ?>
</li>
</ul>
</fieldset>

View File

@ -1,7 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\") ?>" ?>
<div id="gAdmin<?= $css_id ?>">
<div id="g-admin-<?= $css_id ?>">
<h2>
<?= "<?= t(\"$name Adminstration\") ?>" ?>
</h2>

View File

@ -34,14 +34,14 @@ class <?= $module ?>_block {
$block = new Block();
switch ($block_id) {
case "<?= "{$module}_admin" ?>":
$block->css_id = "g<?= $css_id ?>Admin";
$block->css_id = "g-<?= $css_id ?>-admin";
$block->title = t("<?= $module ?> Dashboard Block");
$block->content = new View("admin_<?= $module ?>_block.html");
$block->content->item = ORM::factory("item", 1);
break;
case "<?= "{$module}_site" ?>":
$block->css_id = "g<?= $css_id ?>Site";
$block->css_id = "g-<?= $css_id ?>-site";
$block->title = t("<?= $module ?> Sidebar Block");
$block->content = new View("<?= $module ?>_block.html");

View File

@ -1,10 +1,10 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\") ?>" ?>
<div class="g<?= $css_id ?>Block">
<div class="g-<?= $css_id ?>-block">
<?= "<a href=\"<?= \$item->url() ?>\">" ?>
<?= "<?= \$item->thumb_tag(array(\"class\" => \"gThumbnail\")) ?>" ?>
<?= "<?= \$item->thumb_tag(array(\"class\" => \"g-thumbnail\")) ?>" ?>
</a>
</div>

View File

@ -43,7 +43,7 @@ class <?= $class_name ?>_Controller extends Controller {
private function _get_form() {
$form = new Forge("<?= $module ?>/handler", "", "post",
array("id" => "g<?= $css_id ?>Form"));
array("id" => "g-<?= $css_id ?>-form"));
$group = $form->group("group")->label(t("<?= $name ?> Handler"));
$group->input("text")->label(t("Text"))->rules("required");
$group->submit("submit")->value(t("Submit"));

View File

@ -3,21 +3,21 @@
<?= form::open($action, array("method" => "post"), $hidden) ?>
<fieldset>
<ul>
<li <? if (!empty($errors["name"])): ?> class="gError"<? endif ?>>
<li <? if (!empty($errors["name"])): ?> class="g-error"<? endif ?>>
<?= form::label("name", t("Name")) ?>
<?= form::input("name", $form["name"]) ?>
<? if (!empty($errors["name"]) && $errors["name"] == "required"): ?>
<p class="gError"><?= t("Module name is required") ?></p>
<p class="g-error"><?= t("Module name is required") ?></p>
<? endif ?>
<? if (!empty($errors["name"]) && $errors["name"] == "module_exists"): ?>
<p class="gError"><?= t("Module is already implemented") ?></p>
<p class="g-error"><?= t("Module is already implemented") ?></p>
<? endif ?>
</li>
<li <? if (!empty($errors["description"])): ?> class="gError"<? endif ?>>
<li <? if (!empty($errors["description"])): ?> class="g-error"<? endif ?>>
<?= form::label("description", t("Description")) ?>
<?= form::input("description", $form["description"]) ?>
<? if (!empty($errors["description"]) && $errors["description"] == "required"): ?>
<p class="gError"><?= t("Module description is required")?></p>
<p class="g-error"><?= t("Module description is required")?></p>
<? endif ?>
</li>
<li>
@ -37,7 +37,7 @@
</ul>
</li>
<li>
<?= form::submit(array("id" => "gGenerateModule", "name" => "generate", "class" => "submit", "style" => "clear:both!important"), t("Generate")) ?>
<?= form::submit(array("id" => "g-generate-module", "name" => "generate", "class" => "submit", "style" => "clear:both!important"), t("Generate")) ?>
</li>
</ul>
</fieldset>

View File

@ -1,9 +1,9 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gMPTTTree">
<div id="g-mptt-tree">
<h2>
<?= t("MPTT Tree Visualizer") ?>
</h2>
<div id="gMPTT">
<div id="g-mptt">
<? if (empty($url)): ?>
<pre><?= $tree ?></pre>
<? else: ?>

View File

@ -31,7 +31,7 @@ class displaytags_theme {
// If the current item has at least one tag, display it/them.
if (count($tagsItem) > 0) {
$block = new Block();
$block->css_id = "gDisplayTags";
$block->css_id = "g-display-tags";
$block->title = t("Tags");
$block->content = new View("displaytags_block.html");
$block->content->tags = $tagsItem;

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div class="gDisplayTagsBlock">
<div class="g-display-tags-block">
<? for ($counter=0; $counter<count($tags); $counter++) { ?>
<? if ($counter < count($tags)-1) { ?>
<a href="<?= url::site("tags/$tags[$counter]") ?>"><?= html::clean($tags[$counter]->name) ?></a>,

View File

@ -71,7 +71,7 @@ class Admin_DownloadFullsize_Controller extends Admin_Controller {
private function _get_admin_form() {
// Make a new Form.
$form = new Forge("admin/downloadfullsize/saveprefs", "", "post",
array("id" => "gDownloadFullsizeAdminForm"));
array("id" => "g-download-fullsize-adminForm"));
// Make an array for the different types of download links.
$linkOptions["fButton"] = array(t("Show Floppy Disk Link"), module::get_var("downloadfullsize", "fButton"));

View File

@ -1,3 +1,3 @@
#gViewMenu #gDownloadFullsizeLink {
#g-view-menu #g-download-fullsize-link {
background-image: url('../images/ico-view-downloadfullsize.png');
}

View File

@ -27,7 +27,7 @@ class downloadfullsize_event_Core {
->id("downloadfullsize")
->label(t("Download Fullsize Image"))
->url($downloadLink)
->css_id("gDownloadFullsizeLink"));
->css_id("g-download-fullsize-link"));
}
}
}
@ -41,7 +41,7 @@ class downloadfullsize_event_Core {
->id("downloadfullsize")
->label(t("Download Video"))
->url($downloadLink)
->css_id("gDownloadFullsizeLink"));
->css_id("g-download-fullsize-link"));
}
}
}

View File

@ -31,7 +31,7 @@ class downloadfullsize_theme {
if ($item && $item->is_movie() && access::can("view_full", $item)) {
if (module::get_var("downloadfullsize", "tButton")) {
$block = new Block();
$block->css_id = "gDownloadFullsize";
$block->css_id = "g-download-fullsize";
$block->title = t("Download");
$block->content = new View("downloadfullsize_block.html");
@ -44,7 +44,7 @@ class downloadfullsize_theme {
if ($item && $item->is_photo() && access::can("view_full", $item)) {
if (module::get_var("downloadfullsize", "tButton")) {
$block = new Block();
$block->css_id = "gDownloadFullsize";
$block->css_id = "g-download-fullsize";
$block->title = t("Download");
$block->content = new View("downloadfullsize_block.html");

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gDownloadFullsizeAdmin">
<div id="g-download-fullsize-admin">
<h2> <?= t("Download Fullsize Links") ?> </h2>
<?= $downloadlinks_form ?>
</div>

View File

@ -1,18 +1,18 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if ($theme->item->is_photo()) { ?>
<div class="gDownloadFullsizeBlock">
<div class="g-download-fullsize-block">
<a href="<?= url::site("downloadfullsize/send/$theme->item") ?>"
title="<?= t("Download Photo") ?>"
class="gButtonLink ui-icon-left ui-state-default ui-corner-all"><?= t("Download Fullsize Image") ?></a>
class="g-button ui-icon-left ui-state-default ui-corner-all"><?= t("Download Fullsize Image") ?></a>
</div>
<? } ?>
<? if ($theme->item->is_movie()) { ?>
<div class="gDownloadFullsizeBlock">
<div class="g-download-fullsize-block">
<a href="<?= url::site("downloadfullsize/send/$theme->item") ?>"
title="<?= t("Download Video") ?>"
class="gButtonLink ui-icon-left ui-state-default ui-corner-all"><?= t("Download Video") ?></a>
class="g-button ui-icon-left ui-state-default ui-corner-all"><?= t("Download Video") ?></a>
</div>
<? } ?>

View File

@ -54,7 +54,7 @@ class Admin_Dynamic_Controller extends Admin_Controller {
private function _get_form() {
$form = new Forge("admin/dynamic/handler", "", "post",
array("id" => "gAdminForm"));
array("id" => "g-admin-form"));
foreach (array("updates", "popular") as $album) {
$album_defn = unserialize(module::get_var("dynamic", $album));

View File

@ -27,7 +27,7 @@ class dynamic_theme {
}
if (!empty($albums)) {
$block = new Block();
$block->css_id = "gDynamic";
$block->css_id = "g-dynamic";
$block->title = t("Dynamic Albums");
$block->content = new View("dynamic_block.html");
$block->content->albums = $albums;

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gAdminDynamic">
<div id="g-dyanmic-block">
<h2> <?= t("Dynamic Albums") ?> </h2>
<?= $form ?>
</div>

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div class="gDynamicBlock">
<div class="g-dynamic-block">
<ul>
<? foreach ($albums as $album => $text): ?>
<li>

View File

@ -79,7 +79,7 @@ class Admin_EmbedLinks_Controller extends Admin_Controller {
private function _get_admin_form() {
// Make a new Form.
$form = new Forge("admin/embedlinks/saveprefs", "", "post",
array("id" => "gEmbedLinksAdminForm"));
array("id" => "g-embed-links-adminForm"));
// Make an array for the different types of link codes.
$linkCodes["HTMLCode"] = array(t("Show HTML Links"), module::get_var("embedlinks", "HTMLCode"));

View File

@ -23,7 +23,7 @@ class embedlinks_theme_Core {
// display links to the current album in the theme sidebar.
if ($theme->item()->is_album() && module::get_var("embedlinks", "InPageLinks")) {
$block = new Block();
$block->css_id = "gMetadata";
$block->css_id = "g-metadata";
$block->title = t("Links");
$block->content = new View("embedlinks_album_block.html");
return $block;
@ -36,7 +36,7 @@ class embedlinks_theme_Core {
// to open up the dialog window.
if (module::get_var("embedlinks", "DialogLinks")) {
$block = new Block();
$block->css_id = "gMetadata";
$block->css_id = "g-metadata";
$block->title = t("Link To This Page:");
$block->content = new View("embedlinks_sidebar.html");
return $block;
@ -49,7 +49,7 @@ class embedlinks_theme_Core {
// of the page.
if (module::get_var("embedlinks", "InPageLinks")) {
$block = new Block();
$block->css_id = "gMetadata";
$block->css_id = "g-metadata";
$block->title = t("Links");
$block->content = new View("embedlinks_photo_block.html");
return $block;

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gEmbedLinksAdmin">
<div id="g-embed-links-admin">
<h2> <?= t("EmbedLinks") ?> </h2>
<?= $embedlinks_form ?>
</div>

View File

@ -5,7 +5,7 @@ input[type="text"] {
}
</style>
<? if (module::get_var("embedlinks", "HTMLCode")) { ?>
<table class="gEmbedLinks">
<table class="g-embed-links">
<tbody>
<tr>
<th colspan="2"><?= t("HTML Links:") ?></th>
@ -25,7 +25,7 @@ input[type="text"] {
<? } ?>
<? if (module::get_var("embedlinks", "BBCode")) { ?>
<table class="gEmbedLinks">
<table class="g-embed-links">
<tbody>
<tr>
<th colspan="2"><?= t("BBCode Links:") ?></th>
@ -45,7 +45,7 @@ input[type="text"] {
<? } ?>
<? if (module::get_var("embedlinks", "FullURL")) { ?>
<table class="gEmbedLinks">
<table class="g-embed-links">
<tbody>
<tr>
<th colspan="2"><?= t("URLs:") ?></th>

View File

@ -5,10 +5,10 @@ input[type="text"] {
}
</style>
<h1 style="display: none;"><?= t("BBCode") ?></h1>
<div id="gEmbedLinksBBCodeData">
<div id="g-embed-links-bbcode-data">
<? $counter = 0; ?>
<? for ($i = 0; $i < count($titles); $i++): ?>
<table class="gLinksBBCode" >
<table class="g-links-bbcode" >
<thead><tr><th colspan="2"><?= t($titles[$i][0]) ?></th></thead>
<tbody>
<? for ($j = $counter; $j < $titles[$i][1]+$counter; $j++): ?>

View File

@ -5,10 +5,10 @@ input[type="text"] {
}
</style>
<h1 style="display: none;"><?= t("URLs") ?></h1>
<div id="gEmbedLinksFullURLData">
<div id="g-embed-links-full-url-data">
<? $counter = 0; ?>
<? for ($i = 0; $i < count($titles); $i++): ?>
<table class="gLinksFullURL" >
<table class="g-links-full-url" >
<thead><tr><th colspan="2"><?= t($titles[$i][0]) ?></th></thead>
<tbody>
<? for ($j = $counter; $j < $titles[$i][1]+$counter; $j++): ?>

View File

@ -5,10 +5,10 @@ input[type="text"] {
}
</style>
<h1 style="display: none;"><?= t("HTML Code") ?></h1>
<div id="gEmbedLinksHTMLData">
<div id="g-embed-linksHTMLData">
<? $counter = 0; ?>
<? for ($i = 0; $i < count($titles); $i++): ?>
<table class="gLinksHTML" >
<table class="g-links-html" >
<thead><tr><th colspan="2"><?= t($titles[$i][0]) ?></th></thead>
<tbody>
<? for ($j = $counter; $j < $titles[$i][1]+$counter; $j++): ?>

View File

@ -7,7 +7,7 @@ input[type="text"] {
<? if (module::get_var("embedlinks", "HTMLCode")) { ?>
<h3 align="center"><?= t("HTML Links")?></h3>
<table class="gEmbedLink">
<table class="g-embed-link">
<tbody>
<tr>
<th colspan="2"><?= t("Link To This Page:") ?></th>
@ -90,7 +90,7 @@ input[type="text"] {
<? if (module::get_var("embedlinks", "BBCode")) { ?>
<h3 align="center"><?= t("BBCode Links")?></h3>
<table class="gEmbedLinks">
<table class="g-embed-links">
<tbody>
<tr>
<th colspan="2"><?= t("Link To This Page:") ?></th>
@ -166,7 +166,7 @@ input[type="text"] {
<? if (module::get_var("embedlinks", "FullURL")) { ?>
<h3 align="center"><?= t("URLs")?></h3>
<table class="gEmbedLinks">
<table class="g-embed-links">
<tbody>
<tr>
<th><?= t("This Page:") ?></th>

View File

@ -1,7 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if (module::get_var("embedlinks", "HTMLCode")) { ?>
<a href="<?= url::site("embedlinks/showhtml/{$item->id}") ?>" title="<?= t("HTML Links") ?>"
class="gDialogLink gButtonLink ui-icon-left ui-state-default ui-corner-all">
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-info"></span>
<?= t("Show HTML Code") ?>
</a><br />
@ -9,7 +9,7 @@
<? if (module::get_var("embedlinks", "BBCode")) { ?>
<a href="<?= url::site("embedlinks/showbbcode/{$item->id}") ?>" title="<?= t("BBCode Links") ?>"
class="gDialogLink gButtonLink ui-icon-left ui-state-default ui-corner-all">
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-info"></span>
<?= t("Show BBCode") ?>
</a>
@ -17,7 +17,7 @@
<? if (module::get_var("embedlinks", "FullURL")) { ?>
<a href="<?= url::site("embedlinks/showfullurl/{$item->id}") ?>" title="<?= t("URLs") ?>"
class="gDialogLink gButtonLink ui-icon-left ui-state-default ui-corner-all">
class="g-dialog-link g-button ui-icon-left ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-info"></span>
<?= t("Show URLs") ?>
</a>

View File

@ -21,7 +21,7 @@ class gmaps_theme_Core {
static function sidebar_blocks($theme) {
if ($theme->item()) {
$block = new Block();
$block->css_id = "gMaps";
$block->css_id = "g-maps";
$block->title = t("Location");
$block->content = new View("gmaps_block.html");
return $block;

View File

@ -43,7 +43,7 @@ class Admin_Google_Analytics_Controller extends Admin_Controller {
}
private function _get_form() {
$form = new Forge("admin/google_analytics/handler", "", "post", array("id" => "gAdminForm"));
$form = new Forge("admin/google_analytics/handler", "", "post", array("id" => "g-admin-form"));
$group = $form->group("google_analytics_code");
$group->input("analytics_code")->label(t('Enter the <a href="http://www.google.com/support/googleanalytics/bin/answer.py?answer=113500" target="_blank">Web-Property-ID</a> given by Google.'))->rules("required")->value(module::get_var("google_analytics", "code"));
$group->submit("submit")->value(t("Save"));

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gAdminGoogleAnalytics">
<div id="g-admin-google-analytics">
<h2>
<?= t("Google Analytics Adminstration") ?> </h2>
<?= $form ?>

View File

@ -108,7 +108,7 @@ class keeporiginal_event_Core {
->append(Menu::factory("link")
->id("restore")
->label(t("Restore original"))
->css_id("gKeepOriginalLink")
->css_id("g-keep-originals-link")
->url(url::site("keeporiginal/restore/" . $item->id)));
}
}

View File

@ -26,7 +26,7 @@ class latestupdates_theme_Core {
$albumID = $theme->item->is_album() ? $theme->item->id : $theme->item->parent_id;
$block = new Block();
$block->css_id = "gUpdatesBlock";
$block->css_id = "g-updates-block";
$block->title = t("Updates");
$block->content = new View("latestupdates_block.html");
$block->content->update_links = array(

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul id="gUpdatesList">
<ul id="g-update-list">
<? foreach($update_links as $title => $url): ?>
<li style="clear: both;">
<a href="<?= $url ?>">

View File

@ -1,17 +1,17 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? // @todo Set hover on AlbumGrid list items ?>
<div id="gLatestUpdates">
<div id="g-latest-updates">
<h1><?= t("Latest Updates") ?></h1>
<? array("term" => html::clean($q)) ?>
<? if (count($items)): ?>
<ul id="gAlbumGrid">
<ul id="g-album-grid">
<? foreach ($items as $item): ?>
<? $item_class = "gPhoto"; ?>
<? $item_class = "g-photo"; ?>
<? if ($item->is_album()): ?>
<? $item_class = "gAlbum"; ?>
<? $item_class = "g-album"; ?>
<? endif ?>
<li class="gItem <?= $item_class ?>">
<li class="g-item <?= $item_class ?>">
<a href="<?= url::site("items/$item->id") ?>">
<?= $item->thumb_img() ?>
<p>

View File

@ -74,7 +74,7 @@ class Admin_Minislideshow_Controller extends Admin_Controller {
// Make a new Form.
$form = new Forge("admin/minislideshow/saveprefs", "", "post",
array("id" => "gMinislideshowAdminForm"));
array("id" => "g-mini-slideshow-admin-form"));
// Get location of slideshow files.

View File

@ -1,4 +1,4 @@
#gViewMenu #gMiniSlideshowLink {
#g-view-menu #g-mini-slideshow-link {
background-image: url('../images/ico-view-minislideshow.png');
}

View File

@ -48,8 +48,8 @@ class minislideshow_event_Core {
->id("minislideshow")
->label(t("View MiniSlide Show"))
->url(url::site("minislideshow/showslideshow/" . $theme->item()))
->css_class("gDialogLink")
->css_id("gMiniSlideshowLink"));
->css_class("g-dialog-link")
->css_id("g-mini-slideshow-link"));
}
static function photo_menu($menu, $theme) {
@ -59,7 +59,7 @@ class minislideshow_event_Core {
->id("minislideshow")
->label(t("View MiniSlide Show"))
->url(url::site("minislideshow/showslideshow/" . $theme->item()))
->css_class("gDialogLink")
->css_id("gMiniSlideshowLink"));
->css_class("g-dialog-link")
->css_id("g-mini-slideshow-link"));
}
}

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gMinislideshowAdmin">
<div id="g-mini-slideshow-admin">
<h2> <?= t("MiniSlide Show Settings") ?> </h2>
<?= $minislideshow_form ?>
</div>

View File

@ -5,7 +5,7 @@ input[type="text"] {
}
</style>
<h1 style="display: none;"><?= t("MiniSlide Show") ?></h1>
<div id="gMiniSlideshow">
<div id="g-mini-slideshow">
<embed src="<?= module::get_var("minislideshow", "slideshow_url") ?>" width="485" height="300"
align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="minislide" wmode="transparent"

View File

@ -58,7 +58,7 @@ class Admin_PHPMailer_Controller extends Admin_Controller {
private function _get_admin_form() {
// Make a new Form.
$form = new Forge("admin/phpmailer/saveprefs", "", "post",
array("id" => "gPHPMailerAdminForm"));
array("id" => "g-php-mailer-admin-form"));
// Create the input boxes for the PHPMailer Settings
$phpmailerGroup = $form->group("PHPMailerSettings");

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gPHPMailerAdmin">
<div id="g-php-mailer-admin">
<h2> <?= t("PHPMailer Settings") ?> </h2>
<?= $phpmailer_form ?>
</div>

View File

@ -33,7 +33,7 @@ class polar_rose_theme_Core {
"var polarroseconfig = {" .
"partner: 'gallery3'," .
"rss: '$url'," .
"insert: 'gPolarRose'," .
"insert: 'g-polar-rose'," .
"optin: ''," .
"theme: 'dark'," .
"progress: true" .
@ -45,6 +45,6 @@ class polar_rose_theme_Core {
}
static function page_bottom($theme) {
return "<div id=\"gPolarRose\"></div>";
return "<div id=\"g-polar-rose\"></div>";
}
}

View File

@ -25,7 +25,7 @@ class rwinfo_theme_Core {
}
$block = new Block();
$block->css_id = "gMetadata";
$block->css_id = "g-metadata";
$block_title = "";
if ($theme->item->is_album()) {
$block_title = t("Album Info");

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul class="gMetadata">
<ul class="g-metadata">
<? if ($item->owner): ?>
<li>
<strong class="caption"><?= t("Owner:") ?></strong>

View File

@ -61,7 +61,7 @@ class Admin_Tag_Cloud_Controller extends Admin_Controller {
private function _get_admin_form() {
$form = new Forge("admin/tag_cloud/edit", "", "post",
array("id" => "gTagCloudAdminForm"));
array("id" => "g-tag-cloud-admin-form"));
$group = $form->group("tag_cloud_options")->label(t("Tag Cloud Options"));
$group->input("tagcolor") ->label(t("Tag color"))
->value(module::get_var("tag_cloud", "tagcolor", "0x333333"))

View File

@ -52,7 +52,7 @@ class tag_cloud_block {
}
}
$block = new Block();
$block->css_id = "gTag";
$block->css_id = "g-tag";
$block->title = t("Tag Cloud");
$block->content = new View("tag_cloud_block.html");
$block->content->cloud = tag::cloud(30);

View File

@ -8,8 +8,8 @@
},
_autocomplete: function() {
var url = $("#gTagCloud").attr("title") + "/autocomplete";
$("#gAddTagForm input:text").autocomplete(
var url = $("#g-tag-cloud").attr("title") + "/autocomplete";
$("#g-add-tag-form input:text").autocomplete(
url, {
max: 30,
multiple: true,
@ -20,13 +20,13 @@
_ajax_form: function() {
var self = this;
var form = $("#gAddTagForm");
var form = $("#g-add-tag-form");
form.ajaxForm({
dataType: "json",
success: function(data) {
if (data.result == "success") {
$.get($("#gTagCloud").attr("title"), function(data, textStatus) {
$("#gTagCloud").html(data);
$.get($("#g-tag-cloud").attr("title"), function(data, textStatus) {
$("#g-tag-cloud").html(data);
self._set_tag_cloud();
});
}
@ -37,9 +37,9 @@
_set_tag_cloud: function() {
var self = this;
var width = $("#gTagCloud").width();
var width = $("#g-tag-cloud").width();
var tags = document.createElement("tags");
$("#gTagCloud a").each(function(i) {
$("#g-tag-cloud a").each(function(i) {
var addr = $(this).clone();
$(addr).attr("style", "font-size: 14pt;");
$(tags).append(addr);
@ -60,7 +60,7 @@
allowscriptaccess: self.options.scriptAccess
};
swfobject.embedSWF(self.options.movie, "gTagCloud", width, .60 * width, "9", false,
swfobject.embedSWF(self.options.movie, "g-tag-cloud", width, .60 * width, "9", false,
flashvars, params);
}
});

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gTagCloud3DAdmin">
<div id="g-tag-cloud-3d-admin">
<h2>
<?= t("Manage Tag Cloud") ?>
</h2>

View File

@ -1,7 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<script>
$("document").ready(function() {
$("#gTag").gallery_tag_cloud({
$("#g-tag").gallery_tag_cloud({
movie: "<?= url::file("modules/tag_cloud/lib/tagcloud.swf") ?>"
<? foreach ($options as $option => $value) : ?>
, <?= $option ?> : "<?= $value ?>"
@ -9,7 +9,7 @@
});
});
</script>
<div id="gTagCloud" title="<?= url::site("tags") ?>">
<div id="g-tag-cloud" title="<?= url::site("tags") ?>">
<?= $cloud ?>
</div>
<?= $form ?>

View File

@ -158,7 +158,7 @@ class tagfaces_Controller extends Controller {
// Make a new Form.
$form = new Forge("tagfaces/saveface", "", "post",
array("id" => "gTagFacesForm"));
array("id" => "g-tag-faces-form"));
// Create an array of all the tags for the current item.
$all_tags = ORM::factory("tag")
@ -214,7 +214,7 @@ class tagfaces_Controller extends Controller {
// Make a new Form.
$form = new Forge("tagfaces/delface", "", "post",
array("id" => "gTagDelFacesForm"));
array("id" => "g-tag-del-faces-form"));
// Create an array of all the tags that already have faces.
$existing_faces = ORM::factory("items_face")

View File

@ -46,7 +46,7 @@ class tagfaces_event_Core {
->append(Menu::factory("link")
->id("tagfaces")
->label(t("Tag faces"))
->css_id("gTagFacesLink")
->css_id("g-tag-faces-link")
->url(url::site("tagfaces/drawfaces/" . $item->id)));
}
}

View File

@ -44,7 +44,7 @@
// Remember to invoke within jQuery(window).load(...)
// If you don't, Jcrop may not initialize properly
jQuery(document).ready(function(){
jQuery('#gPhotoId-<?=$item->id ?>').Jcrop({
jQuery('#g-photo-id-<?=$item->id ?>').Jcrop({
onChange: showCoords,
onSelect: showCoords
});
@ -60,8 +60,8 @@
};
</script>
<div id="gAlbumHeader">
<div id="gAlbumHeaderButtons">
<div id="g-album-header">
<div id="g-album-header-buttons">
<?= $theme->dynamic_top() ?>
</div>
<h1><?= html::clean($title) ?></h1>
@ -69,12 +69,12 @@
<p><?=t("Use the mouse to select a face on the image below."); ?></p>
<fieldset>
<div id="gItem">
<div id="gInfo">
<div id="g-item">
<div id="g-info">
<h2><?= html::purify($item->title) ?></h2>
</div>
<div id="gPhoto">
<?= $item->resize_img(array("id" => "gPhotoId-{$item->id}", "class" => "gResize")) ?>
<div id="g-photo">
<?= $item->resize_img(array("id" => "g-photo-id-{$item->id}", "class" => "g-resize")) ?>
</div>
</div>
</fieldset>
@ -107,14 +107,14 @@ li {
}
</style>
<div id="gCoordinates">
<div id="g-coordinates">
<?= $form ?>
</div>
<br/><br/><br/>
<fieldset>
<div id="gDeleteFaces">
<div id="g-delete-faces">
<h2><?= t("Delete Faces") ?></h2>
<p><?=t("The following tags already have faces associated with them."); ?></p>
<?= $delete_form ?>
@ -123,10 +123,8 @@ li {
<br/>
<div id="gExitFaces">
<div id="g-exit-faces">
<p><a href="<?= url::abs_site("{$item->type}s/{$item->id}") ?>"><?= t("Return to photo") ?></a></p>
</div>
<?= $theme->dynamic_bottom() ?>

View File

@ -30,14 +30,14 @@
<script type="text/JavaScript">
function setfacemap() {
// Insert the usemap element into the resize photo's image tag.
var photoimg = document.getElementById('gPhotoId-<?=$item->id ?>');
var photoimg = document.getElementById('g-photo-id-<?=$item->id ?>');
photoimg.useMap = '#faces';
}
function highlightbox(x1, y1, x2, y2, str_title, str_description, str_url) {
var divtext = document.getElementById('divtagtext');
var photodiv = document.getElementById('gPhoto');
var photoimg = document.getElementById('<?="gPhotoId-{$item->id}"?>');
var photodiv = document.getElementById('g-photo');
var photoimg = document.getElementById('<?="g-photo-id-{$item->id}"?>');
var divface = document.getElementById('divsquare');
divface.style.display = 'block';

View File

@ -111,7 +111,7 @@ class Admin_TagsMap_Controller extends Admin_Controller {
private function _get_tagsgpsedit_form($tag_id) {
// Make a new form for editing GPS data associated with a tag ($tag_id).
$form = new Forge("admin/tagsmap/savegps", "", "post",
array("id" => "gTagsMapAdminForm"));
array("id" => "g-tags-mapAdminForm"));
// Add a few input boxes for GPS and Description
$tagsgps_group = $form->group("TagsMapGPS");
@ -181,7 +181,7 @@ class Admin_TagsMap_Controller extends Admin_Controller {
private function _get_googlemaps_form() {
// Make a new form for inputing information associated with google maps.
$form = new Forge("admin/tagsmap/savemapprefs", "", "post",
array("id" => "gTagsMapAdminForm"));
array("id" => "g-tags-mapAdminForm"));
// Input box for the Maps API Key
$googlemap_group = $form->group("GoogleMapsKey");

View File

@ -29,7 +29,7 @@ class tagsmap_theme_Core {
// Create a new block to display the link in.
$block = new Block();
$block->css_id = "gTagsMap";
$block->css_id = "g-tags-map";
$block->title = t("Map:");
$block->content = new View("tagsmap_block.html");

View File

@ -2,7 +2,7 @@
<h2>
<?= t("TagsMap Admin") ?>
</h2>
<div class="gBlock">
<div class="g-block">
<h3>
<?= t("Google Maps Settings") ?>
</h3>
@ -10,14 +10,14 @@
<?= $googlemaps_form ?>
</div>
<div class="gBlock">
<div class="g-block">
<h3>
<?= t("Assign GPS Coordinates") ?>
</h3>
<? $tags_per_column = $tags->count()/5 ?>
<? $column_tag_count = 0 ?>
<table id="gGPSTagAdmin" class="gBlockContent">
<table id="g-gps-tag-admin" class="g-block-content">
<caption class="understate">
<?= t2("There is one tag", "There are %count tags", $tags->count()) ?>
</caption>
@ -69,11 +69,11 @@
</table>
</div>
<div class="gBlock">
<div class="g-block">
<h3>
<?= t("Remove Orphaned GPS Data") ?>
</h3>
<table id="gOrphanedTagAdmin" class="gBlockContent">
<table id="g-orphaned-tag-admin" class="g-block-content">
<tr><td>
<a href="<?= url::site("admin/tagsmap/orphaned_tags") ?>">
<?= t("Search For and Delete Orphaned Data") ?>

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gTagsMapDeleteAdmin">
<div id="g-tags-mapDeleteAdmin">
<h2> <?= t("Delete GPS Data For Tag ") . $tag_name . "?" ?> </h2>
<?= t("Are you sure you wish to delete all GPS data associated with this tag?") ?> <br/><br/>
<a href="<?= url::site("admin/tagsmap/delete_gps/" . $tag_id) ?>">Delete</a>

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="gTagsMapEditAdmin">
<div id="g-tags-mapEditAdmin">
<h2> <?= t("Edit GPS Data for Tag ") . $tag_name ?> </h2>
<?= $tagsmapedit_form ?>
</div>

View File

@ -1,5 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<ul id="gTagsMap">
<ul id="g-tags-map">
<li>
<a href="<?= url::site("tagsmap/googlemap") ?>">
<?= t("Show Map") ?></a>