Change references of theme_three_nids to three_nids
This commit is contained in:
parent
4e9c467a10
commit
d6456b7643
@ -18,11 +18,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Admin_theme_three_nids_Controller extends Admin_Controller {
|
class Admin_three_nids_Controller extends Admin_Controller {
|
||||||
public function index() {
|
public function index() {
|
||||||
// Generate a new admin page.
|
// Generate a new admin page.
|
||||||
$view = new Admin_View("admin.html");
|
$view = new Admin_View("admin.html");
|
||||||
$view->content = new View("admin_theme_three_nids.html");
|
$view->content = new View("admin_three_nids.html");
|
||||||
|
|
||||||
// Generate a form for Google Maps Settings.
|
// Generate a form for Google Maps Settings.
|
||||||
$view->content->theme_form = $this->_get_three_nids_form();
|
$view->content->theme_form = $this->_get_three_nids_form();
|
||||||
@ -35,7 +35,7 @@ class Admin_theme_three_nids_Controller extends Admin_Controller {
|
|||||||
|
|
||||||
private function _get_three_nids_form() {
|
private function _get_three_nids_form() {
|
||||||
// Make a new form for inputing information associated with google maps.
|
// Make a new form for inputing information associated with google maps.
|
||||||
$form = new Forge("admin/theme_three_nids/savethree_nidsprefs", "", "post",
|
$form = new Forge("admin/three_nids/savethree_nidsprefs", "", "post",
|
||||||
array("id" => "gTagsMapAdminForm"));
|
array("id" => "gTagsMapAdminForm"));
|
||||||
|
|
||||||
// Input box for the Maps API Key
|
// Input box for the Maps API Key
|
||||||
@ -74,6 +74,6 @@ class Admin_theme_three_nids_Controller extends Admin_Controller {
|
|||||||
|
|
||||||
// Display a success message and redirect back to the TagsMap admin page.
|
// Display a success message and redirect back to the TagsMap admin page.
|
||||||
message::success(t("Your Settings Have Been Saved."));
|
message::success(t("Your Settings Have Been Saved."));
|
||||||
url::redirect("admin/theme_three_nids");
|
url::redirect("admin/three_nids");
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -18,7 +18,7 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class theme_three_nids_Core {
|
class three_nids_Core {
|
||||||
public function fancylink($item, $view_type="album", $group_img = true,
|
public function fancylink($item, $view_type="album", $group_img = true,
|
||||||
$display_comment = true, $parent_title_class = "h2") {
|
$display_comment = true, $parent_title_class = "h2") {
|
||||||
// view_type = album || dynamic || header
|
// view_type = album || dynamic || header
|
||||||
|
@ -16,7 +16,7 @@ $children_offset = ($theme->pagination->current_page -1) * $page_size ;
|
|||||||
<? if (count($children)): ?>
|
<? if (count($children)): ?>
|
||||||
<? for ($i = 0; $i < $children_offset; $i++): ?>
|
<? for ($i = 0; $i < $children_offset; $i++): ?>
|
||||||
<? $child = $children_all[$i] ?>
|
<? $child = $children_all[$i] ?>
|
||||||
<?= theme_three_nids::fancylink($child, "header") ?>
|
<?= three_nids::fancylink($child, "header") ?>
|
||||||
<? endfor ?>
|
<? endfor ?>
|
||||||
|
|
||||||
<? foreach ($children as $i => $child): ?>
|
<? foreach ($children as $i => $child): ?>
|
||||||
@ -26,7 +26,7 @@ $children_offset = ($theme->pagination->current_page -1) * $page_size ;
|
|||||||
<? endif ?>
|
<? endif ?>
|
||||||
<li id="g-item-id-<?= $child->id ?>" class="g-item <?= $item_class ?>">
|
<li id="g-item-id-<?= $child->id ?>" class="g-item <?= $item_class ?>">
|
||||||
<?= $theme->thumb_top($child) ?>
|
<?= $theme->thumb_top($child) ?>
|
||||||
<?= theme_three_nids::fancylink($child, "album") ?>
|
<?= three_nids::fancylink($child, "album") ?>
|
||||||
<?= $theme->thumb_bottom($child) ?>
|
<?= $theme->thumb_bottom($child) ?>
|
||||||
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
|
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
|
||||||
</li>
|
</li>
|
||||||
@ -34,7 +34,7 @@ $children_offset = ($theme->pagination->current_page -1) * $page_size ;
|
|||||||
|
|
||||||
<? for($i= $children_offset + $page_size; $i < $children_count; $i++): ?>
|
<? for($i= $children_offset + $page_size; $i < $children_count; $i++): ?>
|
||||||
<? $child = $children_all[$i] ?>
|
<? $child = $children_all[$i] ?>
|
||||||
<?= theme_three_nids::fancylink($child, "header") ?>
|
<?= three_nids::fancylink($child, "header") ?>
|
||||||
<? endfor ?>
|
<? endfor ?>
|
||||||
<? else: ?>
|
<? else: ?>
|
||||||
<? if ($user->admin || access::can("add", $item)): ?>
|
<? if ($user->admin || access::can("add", $item)): ?>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<ul id="g-album-grid" class="ui-helper-clearfix">
|
<ul id="g-album-grid" class="ui-helper-clearfix">
|
||||||
<? for($i=0;$i<$children_offset;$i++): ?>
|
<? for($i=0;$i<$children_offset;$i++): ?>
|
||||||
<? $child = $children_all[$i] ?>
|
<? $child = $children_all[$i] ?>
|
||||||
<?= theme_three_nids::fancylink($child,"header") ?>
|
<?= three_nids::fancylink($child,"header") ?>
|
||||||
<? endfor ?>
|
<? endfor ?>
|
||||||
|
|
||||||
<? foreach ($children as $i => $child): ?>
|
<? foreach ($children as $i => $child): ?>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<!--<li class="g-Item <?= $child->is_album() ? "g-album" : "" ?>">!-->
|
<!--<li class="g-Item <?= $child->is_album() ? "g-album" : "" ?>">!-->
|
||||||
<li id="g-item-id-<?= $child->id ?>" class="g-item g-album">
|
<li id="g-item-id-<?= $child->id ?>" class="g-item g-album">
|
||||||
<?= $theme->thumb_top($child) ?>
|
<?= $theme->thumb_top($child) ?>
|
||||||
<?= theme_three_nids::fancylink($child,"dynamic") ?>
|
<?= three_nids::fancylink($child,"dynamic") ?>
|
||||||
<?= $theme->thumb_bottom($child) ?>
|
<?= $theme->thumb_bottom($child) ?>
|
||||||
<?= $theme->context_menu($child, "#g-ItemId-{$child->id} .g-Thumbnail") ?>
|
<?= $theme->context_menu($child, "#g-ItemId-{$child->id} .g-Thumbnail") ?>
|
||||||
</li>
|
</li>
|
||||||
@ -30,7 +30,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
|
<? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
|
||||||
<? $child = $children_all[$i] ?>
|
<? $child = $children_all[$i] ?>
|
||||||
<?= theme_three_nids::fancylink($child,"header") ?>
|
<?= three_nids::fancylink($child,"header") ?>
|
||||||
<? endfor ?>
|
<? endfor ?>
|
||||||
<?= $theme->dynamic_bottom() ?>
|
<?= $theme->dynamic_bottom() ?>
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||||
|
|
||||||
<?= theme_three_nids::fancylink($item, "dynamic", false, false, "h4") ?>
|
<?= three_nids::fancylink($item, "dynamic", false, false, "h4") ?>
|
||||||
|
@ -13,19 +13,19 @@
|
|||||||
<ul id="g-album-grid" class="ui-helper-clearfix">
|
<ul id="g-album-grid" class="ui-helper-clearfix">
|
||||||
<? for($i=0;$i<$children_offset;$i++): ?>
|
<? for($i=0;$i<$children_offset;$i++): ?>
|
||||||
<? $child = $children_all[$i] ?>
|
<? $child = $children_all[$i] ?>
|
||||||
<?= theme_three_nids::fancylink($child,"header") ?>
|
<?= three_nids::fancylink($child,"header") ?>
|
||||||
<? endfor ?>
|
<? endfor ?>
|
||||||
<? foreach ($items as $child): ?>
|
<? foreach ($items as $child): ?>
|
||||||
<li id="g-item-id-<?= $child->id ?>" class="g-item g-album">
|
<li id="g-item-id-<?= $child->id ?>" class="g-item g-album">
|
||||||
<?= $theme->thumb_top($child) ?>
|
<?= $theme->thumb_top($child) ?>
|
||||||
<?= theme_three_nids::fancylink($child,"dynamic") ?>
|
<?= three_nids::fancylink($child,"dynamic") ?>
|
||||||
<?= $theme->thumb_bottom($child) ?>
|
<?= $theme->thumb_bottom($child) ?>
|
||||||
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
|
<?= $theme->context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?>
|
||||||
</li>
|
</li>
|
||||||
<? endforeach ?>
|
<? endforeach ?>
|
||||||
<? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
|
<? for($i=$children_offset+$page_size;$i<$children_count;$i++): ?>
|
||||||
<? $child = $children_all[$i] ?>
|
<? $child = $children_all[$i] ?>
|
||||||
<?= theme_three_nids::fancylink($child,"header") ?>
|
<?= three_nids::fancylink($child,"header") ?>
|
||||||
<? endfor ?>
|
<? endfor ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?= $theme->paginator() ?>
|
<?= $theme->paginator() ?>
|
||||||
|
Reference in New Issue
Block a user