update for headerImage application
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 12 Jun 2014 15:54:26 +0000 (11:54 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 12 Jun 2014 15:54:26 +0000 (11:54 -0400)
Add text for image sizes
configuration in the application.ini file
as application.imageSize

Toolkit/HeaderImages/IndexController.php
Toolkit/HeaderImages/Views/Index/adminList.tpl
Toolkit/HeaderImages/application.ini

index 2943c8d..694148a 100644 (file)
@@ -177,6 +177,7 @@ class Toolkit_HeaderImages_IndexController
             = $baseUrl . 'Toolkit/HeaderImages/Views/css/admin.css';
 
         $pages = $this->_getMainLevelPages();
+        $this->smarty->assign('ImageSizes', $this->registry->appConfig->application->imageSize);
         $this->smarty->assign('pages', $pages);
         $this->smarty->assign('editUrl', $this->page . '?ac=add&id=');
         $this->smarty->assign('imageBaseUrl', FILE_SERVER_URL . IS_OWNER_ID . '/headerImageThumb/');
index 8e1e42c..e0f7c1c 100644 (file)
@@ -1,4 +1,5 @@
 {include file='Index/nav.tpl'}
+<h1>Use image sizes of {$ImageSizes}</h1>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
 <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
 <div id="adminList">
                 $.get('./headerImages.php', inputs); //, console.log('positions saved')
             }
         });
-               
+
                /* Setup Show/Hide */
                $('#adminList hgroup h1').each(function(i) {
                        //console.log(i);
                        $(this).parent('hgroup').siblings('form').css('display', 'none');
                        $(this).siblings('h2').css('display', 'none');
                });
-               
+
                /* Show/Hide Click Hander */
                $('#adminList hgroup h1').click(function() {
                        if($(this).parent('hgroup').siblings('form').css('display') == "none") {
index 34cfa03..6b41faa 100644 (file)
@@ -4,6 +4,8 @@ application.name    = "Header Images"
 application.path    = BASE_URL "admin/headerImages.php"
 application.setPath = "Toolkit/HeaderImages"
 
+application.imageSize = "720 x 250"
+
 ; router config
 router.path        = BASE "Toolkit/HeaderImages"
 router.application = "HeaderImages"