diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-08 09:28:11 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-08 09:28:11 +0000 |
| commit | 950c58e6d37f68f69815d4d73df5577b9789679a (patch) | |
| tree | f8f176513d9b364b4b0a7b2a6e87ade8af11baeb /themes/default | |
| parent | ac8199a09a810277624c93fd82e49d2250ae0461 (diff) | |
Add support for in-place editing of data fields.
Diffstat (limited to 'themes/default')
| -rw-r--r-- | themes/default/views/album.html.php | 6 | ||||
| -rw-r--r-- | themes/default/views/header.html.php | 6 | ||||
| -rw-r--r-- | themes/default/views/page.html.php | 3 |
3 files changed, 9 insertions, 6 deletions
diff --git a/themes/default/views/album.html.php b/themes/default/views/album.html.php index 8ec225cf..d9db24d9 100644 --- a/themes/default/views/album.html.php +++ b/themes/default/views/album.html.php @@ -1,7 +1,7 @@ <? defined("SYSPATH") or die("No direct script access."); ?> <div id="gAlbumGridHeader"> - <h1><?= $item->title ?></h1> - <span class="understate"><?= $item->description ?></span> + <h1><?= $item->title_edit ?></h1> + <span class="understate"><?= $item->description_edit ?></span> <a href="#" id="gSlideshowLink" class="buttonlink">Slideshow</a> </div> @@ -18,7 +18,7 @@ width="<?= $child->thumbnail_width ?>" height="<?= $child->thumbnail_height ?>" /> </a> - <h2><?= $child->title ?></h2> + <h2><?= $child->title_edit ?></h2> <ul class="gMetadata"> <li>Views: 321</li> <? if ($child->owner): ?> diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php index a5a85988..f2a72bef 100644 --- a/themes/default/views/header.html.php +++ b/themes/default/views/header.html.php @@ -1,7 +1,7 @@ <? defined("SYSPATH") or die("No direct script access."); ?> <div id="gHeader"> <img id="gLogo" alt="<?= _("Logo") ?>" src="<?= $theme->url("images/logo.png") ?>" /> - <h1><?= $item->title ?></h1> + <h1><?= $item->title_edit ?></h1> <div id="gLoginMenu"> <a href="#"><?= _("Register") ?></a> | <a href="#"><?= _("Login") ?></a> @@ -17,9 +17,9 @@ <ul id="gBreadcrumbs"> <? foreach ($parents as $parent): ?> - <li><a href="<?= url::site("album/{$parent->id}") ?>"><?= $parent->title ?></a></li> + <li><a href="<?= url::site("album/{$parent->id}") ?>"><?= $parent->title_edit ?></a></li> <? endforeach ?> - <li class="active"><span><?= $item->title ?></span></li> + <li class="active"><?= $item->title_edit ?></li> </ul> <form id="gSearchForm"> diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index 7a6c3917..29edc734 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -11,6 +11,8 @@ "lib/yui/base-min.css" ?>" media="screen,print,projection" /> <link rel="stylesheet" type="text/css" href="<?= $theme->url("css/screen.css") ?>" media="screen,print,projection" /> + <script src="<?= url::base() . "lib/jquery.js" ?>" type="text/javascript"></script> + <script src="<?= url::base() . "lib/jquery.jeditable.js" ?>" type="text/javascript"></script> </head> <body> @@ -26,5 +28,6 @@ </div> <?= $theme->display("footer.html") ?> </div> + <?= $theme->in_place_edit(); ?> </body> </html> |
