diff options
Diffstat (limited to 'modules/developer/views')
| -rw-r--r-- | modules/developer/views/admin_controller.txt.php | 57 | ||||
| -rw-r--r-- | modules/developer/views/admin_developer.html.php | 13 | ||||
| -rw-r--r-- | modules/developer/views/admin_developer_test_data.html.php | 93 | ||||
| -rw-r--r-- | modules/developer/views/admin_html.txt.php | 10 | ||||
| -rw-r--r-- | modules/developer/views/block.txt.php | 53 | ||||
| -rw-r--r-- | modules/developer/views/block_html.txt.php | 10 | ||||
| -rw-r--r-- | modules/developer/views/controller.txt.php | 50 | ||||
| -rw-r--r-- | modules/developer/views/dashboard_block_html.txt.php | 10 | ||||
| -rw-r--r-- | modules/developer/views/developer_module.html.php | 49 | ||||
| -rw-r--r-- | modules/developer/views/event.txt.php | 27 | ||||
| -rw-r--r-- | modules/developer/views/installer.txt.php | 37 | ||||
| -rw-r--r-- | modules/developer/views/module_info.txt.php | 6 | ||||
| -rw-r--r-- | modules/developer/views/mptt_tree.html.php | 15 | ||||
| -rw-r--r-- | modules/developer/views/theme.txt.php | 157 |
14 files changed, 587 insertions, 0 deletions
diff --git a/modules/developer/views/admin_controller.txt.php b/modules/developer/views/admin_controller.txt.php new file mode 100644 index 0000000..879657e --- /dev/null +++ b/modules/developer/views/admin_controller.txt.php @@ -0,0 +1,57 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?> +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2013 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class Admin_<?= $class_name ?>_Controller extends Admin_Controller { + public function index() { + print $this->_get_view(); + } + + public function handler() { + access::verify_csrf(); + + $form = $this->_get_form(); + if ($form->validate()) { + // @todo process the admin form + + message::success(t("<?= $name ?> Adminstration Complete Successfully")); + + url::redirect("admin/<?= $module ?>"); + } + + print $this->_get_view($form); + } + + private function _get_view($form=null) { + $v = new Admin_View("admin.html"); + $v->content = new View("admin_<?=$module ?>.html"); + $v->content->form = empty($form) ? $this->_get_form() : $form; + return $v; + } + + private function _get_form() { + $form = new Forge("admin/<?= $module ?>/handler", "", "post", + array("id" => "g-adminForm")); + $group = $form->group("group"); + $group->input("text")->label(t("Text"))->rules("required"); + $group->submit("submit")->value(t("Submit")); + + return $form; + } +}
\ No newline at end of file diff --git a/modules/developer/views/admin_developer.html.php b/modules/developer/views/admin_developer.html.php new file mode 100644 index 0000000..4831f9b --- /dev/null +++ b/modules/developer/views/admin_developer.html.php @@ -0,0 +1,13 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<?= html::script("modules/developer/js/developer.js") ?> +<script type="text/javascript"> +$("#g-developer-form").ready(function() { + ajaxify_developer_form("#g-developer-form form", module_success); +}); +</script> +<div id="g-developer-admin"> + <h2><?= $title ?></h2> + <div id="g-developer-form" > + <?= $developer_content ?> + </div> +</div> diff --git a/modules/developer/views/admin_developer_test_data.html.php b/modules/developer/views/admin_developer_test_data.html.php new file mode 100644 index 0000000..a29027b --- /dev/null +++ b/modules/developer/views/admin_developer_test_data.html.php @@ -0,0 +1,93 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<script type="text/javascript"> + $("#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"])): ?> + $("#g-generate-albums").click(); + <? endif ?> + <? if (!empty($form["generate_photos"])): ?> + $("#g-generate-photos").click(); + <? endif ?> + <? if (!empty($form["generate_comments"])): ?> + $("#g-generate-comments").click(); + <? endif ?> + <? if (!empty($form["generate_tags"])): ?> + $("#g-generate-tags").click(); + <? endif ?> + }); +</script> +<?= form::open($action, array("method" => "post", "id" => "g-generate-test-data")) ?> + <? if (!empty($album_count)): ?> + <p><?= t("Currently:") ?><br /> + + <i>(<?= $album_count ?>, <?= $photo_count ?>, <?= $comment_count ?>, <?= $tag_count ?>)</i> + </p> + <? endif ?> + +<fieldset> + <ul> + <li><?= access::csrf_form_field() ?></li> + <li <? if (!empty($errors["albums"])): ?> class="g-error"<? endif ?>> + <fieldset> + <?= 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" => "g-radio-album"), $number) ?></span> + <? endforeach ?> + </fieldset> + <? if (!empty($errors["albums"]) && $errors["albums"] == "numeric"): ?> + <p class="g-error"><?= t("Number to create must be numeric") ?></p> + <? endif ?> + </li> + <li <? if (!empty($errors["photos"])): ?> class="g-error"<? endif ?>> + <fieldset> + <?= 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" => "g-radio-photo"), $number) ?></span> + <? endforeach ?> + </fieldset> + <? if (!empty($errors["photos"]) && $errors["photos"] == "numeric"): ?> + <p class="g-error"><?= t("Number to create must be numeric") ?></p> + <? endif ?> + </li> + <? if(!empty($comment_installed)): ?> + <li <? if (!empty($errors["comments"])): ?> class="g-error"<? endif ?>> + <fieldset> + <?= 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" => "g-radio-comment"), $number) ?></span> + <? endforeach ?> + </fieldset> + <? if (!empty($errors["comments"]) && $errors["comments"] == "numeric"): ?> + <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="g-error"<? endif ?>> + <fieldset> + <?= 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" => "g-radio-tag"), $number) ?></span> + <? endforeach ?> + </fieldset> + <? if (!empty($errors["tags"]) && $errors["tags"] == "numeric"): ?> + <p class="g-error"><?= t("Number to create must be numeric") ?></p> + <? endif ?> + </li> + <? endif ?> + <li> + <?= form::submit(array("id" => "g-generate-data", "name" => "generate", "class" => "submit", "style" => "clear:both!important"), t("Generate")) ?> + </li> + </ul> +</fieldset> diff --git a/modules/developer/views/admin_html.txt.php b/modules/developer/views/admin_html.txt.php new file mode 100644 index 0000000..3d230d1 --- /dev/null +++ b/modules/developer/views/admin_html.txt.php @@ -0,0 +1,10 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\") ?>" ?> + +<div id="g-admin-<?= $css_id ?>"> + <h2> + <?= "<?= t(\"$name Adminstration\") ?>" ?> + </h2> + <?= "<?= \$form ?>" ?> + +</div> diff --git a/modules/developer/views/block.txt.php b/modules/developer/views/block.txt.php new file mode 100644 index 0000000..fda62c2 --- /dev/null +++ b/modules/developer/views/block.txt.php @@ -0,0 +1,53 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?> + +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2013 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class <?= $module ?>_block { + static function get_site_list() { + return array( + "<?= "{$module}_site" ?>" => t("<?= $name ?> Sidebar Block")); + } + + static function get_admin_list() { + return array( + "<?= "{$module}_admin" ?>" => t("<?= $name ?> Dashboard Block")); + } + + static function get($block_id, $theme) { + $block = new Block(); + switch ($block_id) { + case "<?= "{$module}_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->title = t("<?= $module ?> Sidebar Block"); + $block->content = new View("<?= $module ?>_block.html"); + + $block->content->item = ORM::factory("item", 1); + break; + } + return $block; + } +} diff --git a/modules/developer/views/block_html.txt.php b/modules/developer/views/block_html.txt.php new file mode 100644 index 0000000..9942259 --- /dev/null +++ b/modules/developer/views/block_html.txt.php @@ -0,0 +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"> + <?= "<a href=\"<?= \$item->url() ?>\">" ?> + + <?= "<?= \$item->thumb_tag(array(\"class\" => \"g-thumbnail\")) ?>" ?> + + </a> +</div> diff --git a/modules/developer/views/controller.txt.php b/modules/developer/views/controller.txt.php new file mode 100644 index 0000000..7c57931 --- /dev/null +++ b/modules/developer/views/controller.txt.php @@ -0,0 +1,50 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?> +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2013 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class <?= $class_name ?>_Controller extends Controller { + public function index() { + print $this->_get_form(); + } + + public function handler() { + access::verify_csrf(); + + $form = $this->_get_form(); + if ($form->validate()) { + // @todo process the admin form + + message::success(t("<?= $name ?> Processing Successfully")); + + json::reply(array("result" => "success")); + } else { + json::reply(array("result" => "error", "html" => (string)$form)); + } + } + + private function _get_form() { + $form = new Forge("<?= $module ?>/handler", "", "post", + 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")); + + return $form; + } +} diff --git a/modules/developer/views/dashboard_block_html.txt.php b/modules/developer/views/dashboard_block_html.txt.php new file mode 100644 index 0000000..8b1c8f5 --- /dev/null +++ b/modules/developer/views/dashboard_block_html.txt.php @@ -0,0 +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"> + <?= "<a href=\"<?= \$item->url() ?>\">" ?> + + <?= "<?= \$item->thumb_tag(array(\"class\" => \"g-thumbnail\")) ?>" ?> + + </a> +</div> diff --git a/modules/developer/views/developer_module.html.php b/modules/developer/views/developer_module.html.php new file mode 100644 index 0000000..8552942 --- /dev/null +++ b/modules/developer/views/developer_module.html.php @@ -0,0 +1,49 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> + +<?= form::open($action, array("method" => "post")) ?> + <fieldset> + <ul> + <li><?= access::csrf_form_field() ?></li> + <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="g-error"><?= t("Module name is required") ?></p> + <? endif ?> + <? if (!empty($errors["name"]) && $errors["name"] == "module_exists"): ?> + <p class="g-error"><?= t("Module is already implemented") ?></p> + <? endif ?> + </li> + <li <? if (!empty($errors["display_name"])): ?> class="g-error"<? endif ?>> + <?= form::label("display_name", t("Display name")) ?> + <?= form::input("display_name", $form["display_name"]) ?> + <? if (!empty($errors["display_name"]) && $errors["display_name"] == "required"): ?> + <p class="g-error"><?= t("Module display_name is required")?></p> + <? endif ?> + </li> + <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="g-error"><?= t("Module description is required")?></p> + <? endif ?> + </li> + <li> + <ul> + <li> + <?= form::label("theme[]", t("Theme callbacks")) ?> + <?= form::dropdown(array("name" => "theme[]", "multiple" => true, "size" => 6), $theme, $form["theme[]"]) ?> + </li> + <li style="padding-left: 1em" > + <?= form::label("event[]", t("Gallery event handlers")) ?> + <?= form::dropdown(array("name" => "event[]", "multiple" => true, "size" => 6), $event, $form["event[]"]) ?> + </li> + </ul> + </li> + <li> + <?= form::submit($submit_attributes, t("Generate")) ?> + </li> + </ul> + </fieldset> +</form> + diff --git a/modules/developer/views/event.txt.php b/modules/developer/views/event.txt.php new file mode 100644 index 0000000..1519de2 --- /dev/null +++ b/modules/developer/views/event.txt.php @@ -0,0 +1,27 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?> +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2013 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class <?= $module ?>_event { +<? foreach ($callbacks as $callback => $unused): ?> + <?= $callback ?> { + } + +<? endforeach ?> +} diff --git a/modules/developer/views/installer.txt.php b/modules/developer/views/installer.txt.php new file mode 100644 index 0000000..3c78272 --- /dev/null +++ b/modules/developer/views/installer.txt.php @@ -0,0 +1,37 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?> +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2013 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class <?= $module ?>_installer { + static function install() { + $version = module::get_version("<?= $module ?>"); + if ($version == 0) { + /* @todo Put database creation here */ + module::set_version("<?= $module ?>", 1); + } + } + + static function upgrade($version) { + } + + static function uninstall() { + /* @todo Put database table drops here */ + module::delete("<?= $module ?>"); + } +} diff --git a/modules/developer/views/module_info.txt.php b/modules/developer/views/module_info.txt.php new file mode 100644 index 0000000..0ea06e7 --- /dev/null +++ b/modules/developer/views/module_info.txt.php @@ -0,0 +1,6 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +name = <?= $module_name ?> + +description = "<?= $module_description ?>" + +version = 1 diff --git a/modules/developer/views/mptt_tree.html.php b/modules/developer/views/mptt_tree.html.php new file mode 100644 index 0000000..db6d4ff --- /dev/null +++ b/modules/developer/views/mptt_tree.html.php @@ -0,0 +1,15 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="g-mptt-tree"> + <h2> + <?= t("MPTT Tree Visualizer") ?> + </h2> + <div id="g-mptt"> + <? if (empty($url)): ?> + <pre><?= $tree ?></pre> + <? else: ?> + <object type="image/svg+xml" data="<?= $url ?>" style="width: 100%; height: 100%;" > + <pre><?= $tree ?></pre> + </object> + <? endif ?> + </div> +</div> diff --git a/modules/developer/views/theme.txt.php b/modules/developer/views/theme.txt.php new file mode 100644 index 0000000..60be3b5 --- /dev/null +++ b/modules/developer/views/theme.txt.php @@ -0,0 +1,157 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<?= "<?php defined(\"SYSPATH\") or die(\"No direct script access.\");" ?> +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2013 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class <?= $module ?>_theme { +<? if (!empty($callbacks["album_blocks"])): ?> + static function album_blocks($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["album_bottom"])): ?> + static function album_bottom($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["album_top"])): ?> + static function album_top($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["admin_credits"])): ?> + static function admin_credits($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["photo"])): ?> + static function admin_footer($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["admin_header_top"])): ?> + static function admin_header_top($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["admin_header_bottom"])): ?> + static function admin_header_bottom($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["admin_page_bottom"])): ?> + static function admin_page_bottom($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["admin_page_top"])): ?> + static function admin_page_top($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["admin_head"])): ?> + static function admin_head($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["credits"])): ?> + static function credits($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["dynamic_bottom"])): ?> + static function dynamic_bottom($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["dynamic_top"])): ?> + static function dynamic_top($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["footer"])): ?> + static function footer($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["head"])): ?> + static function head($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["header_bottom"])): ?> + static function header_bottom($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["header_top"])): ?> + static function header_top($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["page_bottom"])): ?> + static function page_bottom($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["pae_top"])): ?> + static function page_top($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["photo_blocks"])): ?> + static function photo_blocks($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["photo_bottom"])): ?> + static function photo_bottom($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["photo_top"])): ?> + static function photo_top($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["sidebar_bottom"])): ?> + static function sidebar_bottom($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["sidebar_top"])): ?> + static function sidebar_top($theme) { + } + +<? endif ?> +<? if (!empty($callbacks["thumb_bottom"])): ?> + static function thumb_bottom($theme, $child) { + } + +<? endif ?> +<? if (!empty($callbacks["thumb_info"])): ?> + static function thumb_info($theme, $child) { + } + +<? endif ?> +<? if (!empty($callbacks["thumb_top"])): ?> + static function thumb_top($theme, $child) { + } + +<? endif ?> +} |
