Assembla home | Assembla project page
 

Changeset 119

Show
Ignore:
Timestamp:
07/19/07 12:51:44 (1 year ago)
Author:
digitalspaghetti
Message:

Adding OpenID component for later. Updated views to new tabbed interface, updated DB for update menu items.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branch/app_controller.php

    r118 r119  
    4040         
    4141        var $helpers = array('othAuth','Cache','Form','Html','Javascript','Text','Number','Time','Tree','Webrocket'); 
    42         var $components = array('othAuth','Conf','RequestHandler','Session','Nav'); 
     42        var $components = array('othAuth','Conf','RequestHandler','Session','Nav','Openid'); 
    4343        var $othAuthRestrictions = array('add','edit','delete',CAKE_ADMIN); 
    4444         
  • branch/config/core.php

    r113 r119  
    5555 * In development mode, you need to click the flash message to continue. 
    5656 */ 
    57         define('DEBUG', 2); 
     57        define('DEBUG', 0); 
    5858/** 
    5959 * Turn off or enable cache checking application-wide. 
  • branch/config/routes.php

    r57 r119  
    3535 */ 
    3636        Router::connect('/', array('controller' => 'posts', 'action' => 'index')); 
     37        Router::connect('/admin', array('controller' => 'users', 'action' => 'login')); 
    3738        Router::parseExtensions('rss'); 
    3839/** 
  • branch/controllers/events_controller.php

    r111 r119  
    185185                $this->set('events',$events); 
    186186        } 
     187         
     188        function admin_home() 
     189        { 
     190                 
     191        } 
    187192 
    188193} 
  • branch/controllers/pages_controller.php

    r118 r119  
    130130                } 
    131131        } 
     132         
     133        function admin_home() 
     134        { 
     135                 
     136        } 
    132137 
    133138} 
  • branch/controllers/posts_controller.php

    r118 r119  
    99                                                        'Post.user_id','Post.slug','Post.post_date','Post.access_level', 
    1010                                                        'Post.frontpage','Post.published','User.id','User.username','User.posts_count', 'Subject.id', 
    11                                                         'Subject.title','Image.filename'), 
     11                                                        'Subject.title','Image.filename','Image.alt'), 
    1212                                        'limit'=>10, 
    1313                                        'order'=>array('Post.post_date'=>'DESC', 'Post.created' => 'DESC') 
     
    193193                } 
    194194        } 
     195         
     196        function admin_home() 
     197        { 
     198                 
     199        } 
    195200 
    196201} 
  • branch/controllers/users_controller.php

    r115 r119  
    4545                        } 
    4646                } 
     47                //this->set('groups', $this->User->Group->generateList('Group.level <= ' .  $this->level)); 
    4748                if(empty($this->data)) { 
    4849                        $this->data = $this->User->read(null, $id); 
    4950                } 
    50                 $tags = $this->User->Tag->generateList(); 
    51                 $groups = $this->User->Group->generateList(); 
    52                 $this->set(compact('tags','groups')); 
    5351        } 
    5452 
  • branch/db.sql

    r92 r119  
    44--  
    55-- Host: localhost 
    6 -- Generation Time: Jul 17, 2007 at 05:48 PM 
     6-- Generation Time: Jul 19, 2007 at 01:47 PM 
    77-- Server version: 5.0.38 
    88-- PHP Version: 5.2.1 
     
    2828-- Dumping data for table `cake_sessions` 
    2929--  
    30  
    31  
    3230-- -------------------------------------------------------- 
    3331 
     
    409407  `id` int(8) unsigned NOT NULL auto_increment, 
    410408  `title` varchar(50) NOT NULL, 
     409  `events_count` int(8) unsigned default '0', 
    411410  PRIMARY KEY  (`id`) 
    412411) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; 
     
    416415--  
    417416 
    418 INSERT INTO `event_types` (`id`, `title`) VALUES  
    419 (1, 'Gig'), 
    420 (2, 'Release'), 
    421 (3, 'Festival'), 
    422 (4, 'In-Store'); 
     417INSERT INTO `event_types` (`id`, `title`, `events_count`) VALUES  
     418(1, 'Gig', 3), 
     419(2, 'Release', 0), 
     420(3, 'Festival', 0), 
     421(4, 'In-Store', 0); 
    423422 
    424423-- -------------------------------------------------------- 
     
    438437  `event_ticket1` varchar(255) default NULL, 
    439438  `event_ticket2` varchar(255) default NULL, 
    440   `event_price` varchar(255) NOT NULL, 
     439  `event_price` varchar(255) default NULL, 
    441440  `body` text, 
    442441  `tags` varchar(255) NOT NULL, 
     
    444443  `subject_id` int(8) unsigned NOT NULL, 
    445444  `published` tinyint(1) NOT NULL, 
    446   `created` datetime NOT NULL, 
    447   `modified` datetime NOT NULL, 
    448   PRIMARY KEY  (`id`) 
    449 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5
     445  `created` datetime default NULL, 
     446  `modified` datetime default NULL, 
     447  PRIMARY KEY  (`id`) 
     448) ENGINE=MyISAM  DEFAULT CHARSET=utf8
    450449 
    451450--  
    452451-- Dumping data for table `events` 
    453452--  
    454  
    455453 
    456454-- -------------------------------------------------------- 
     
    470468-- Dumping data for table `events_tags` 
    471469--  
    472  
    473 INSERT INTO `events_tags` (`event_id`, `tag_id`) VALUES  
    474 (4, 1), 
    475 (4, 8); 
    476470 
    477471-- -------------------------------------------------------- 
     
    636630  `modified` datetime default NULL, 
    637631  PRIMARY KEY  (`id`) 
    638 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5
     632) ENGINE=MyISAM  DEFAULT CHARSET=utf8
    639633 
    640634--  
    641635-- Dumping data for table `images` 
    642636--  
    643  
    644 INSERT INTO `images` (`id`, `filename`, `dir`, `mimetype`, `alt`, `subject_id`, `copyright_owner`, `copyright_id`, `image_location`, `image_date`, `image_notes`, `filesize`, `tags`, `user_id`, `created`, `modified`) VALUES  
    645 (3, 'Quebec_Music_Fest2.jpg', 'files/images', 'image/jpeg', 'The Hedrons @ Quebec Music Fest', 2, 'The Hedrons', 1, 'Quebec, Canada', '2007-07-17', '<p>Hedrons</p>', 764051, 'The Hedrons', NULL, '2007-07-17 12:15:03', '2007-07-17 12:15:03'), 
    646 (4, 'thehedronsjosh.jpg', 'files/images', 'image/jpeg', 'The Hedrons meet QOTSA', 2, 'The Hedrons', 1, 'T In The Park', '2007-07-08', '<p>The Hedrons meet QOTSA</p>', 611260, 'The Hedrons', NULL, '2007-07-17 12:22:49', '2007-07-17 12:22:49'); 
    647  
    648637-- -------------------------------------------------------- 
    649638 
     
    662651-- Dumping data for table `images_tags` 
    663652--  
    664  
    665 INSERT INTO `images_tags` (`image_id`, `tag_id`) VALUES  
    666 (3, 1), 
    667 (4, 1); 
    668653 
    669654-- -------------------------------------------------------- 
     
    701686  `icon` varchar(255) default NULL, 
    702687  `parent_id` int(11) unsigned NOT NULL, 
     688  `lft` tinyint(4) NOT NULL, 
     689  `rght` tinyint(4) NOT NULL, 
    703690  `section_id` int(11) unsigned NOT NULL, 
    704691  `access_level` int(3) NOT NULL, 
     
    713700--  
    714701 
    715 INSERT INTO `menus` (`id`, `name`, `url`, `position`, `icon`, `parent_id`, `section_id`, `access_level`, `published`, `created`, `modified`) VALUES  
    716 (1, 'Home', '/', 0, 'home', 0, 1, 0, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    717 (2, 'News', '/posts/index/post_index_limit:10', 1, '', 0, 1, 0, 1, '0000-00-00 00:00:00', '2007-05-30 17:19:10'), 
    718 (3, 'Tour Dates', '/events/index', 2, NULL, 0, 1, 0, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    719 (4, 'Manage Posts', '/admin/posts/', 0, 'admin-posts', 29, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    720 (5, 'Manage Pages', '/admin/pages/', 1, 'admin-pages', 29, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    721 (6, 'Manage Events', '/admin/events/', 2, 'admin-events', 29, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    722 (7, 'Manage Feeds', '/admin/feeds/', 3, 'admin-feeds', 29, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    723 (8, 'Manage Users', '/admin/users/', 0, 'admin-users', 31, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    724 (9, 'Manage Images', '/admin/images/', 0, 'admin-images', 30, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    725 (10, 'Manage Configurations', '#', 2, 'admin-options', 31, 1, 999, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    726 (11, 'Manage Galleries', '/admin/galleries', 4, 'admin-galleries', 29, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    727 (12, 'Admin', '#', 5, '', 0, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    728 (13, 'Galleries', '/galleries/', 3, NULL, 0, 1, 0, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    729 (14, 'Manage Videos', '/admin/videos', 1, 'admin-videos', 30, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    730 (15, 'Videos', '/videos', 4, '', 0, 1, 0, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    731 (16, 'Manage Menus', '/admin/menus', 1, 'admin-menus', 31, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    732 (17, 'Add Post', '/admin/posts/add', 11, '', 4, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    733 (18, 'Add Page', '/admin/pages/add', 12, '', 5, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    734 (19, 'Add Event', '/admin/events/add', 13, '', 6, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    735 (20, 'Add Feed', '/admin/feeds/add', 14, '', 7, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    736 (21, 'Add User', '/admin/users/add', 15, '', 8, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    737 (22, 'Upload Image', '/admin/images/add', 16, '', 9, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    738 (23, 'Add Gallery', '/admin/galleries/add', 17, '', 11, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    739 (24, 'Add Video', '/admin/videos/add', 0, '', 14, 1, 900, 1, '0000-00-00 00:00:00', '2007-05-17 16:28:53'), 
    740 (25, 'Add Menu', '/admin/menus/add', 19, '', 16, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    741 (26, 'Edit Video Options', '/admin/configs/video', 1, '', 10, 1, 999, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    742 (27, 'Edit Site Options', '/admin/configs/edit', 0, '', 10, 1, 999, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    743 (28, 'Add Event Type', '/admin/events/addtype', 20, '', 6, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    744 (29, 'Content', '#', 21, NULL, 12, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    745 (30, 'Assets', '#', 22, NULL, 12, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    746 (31, 'System', '#', 23, NULL, 12, 1, 900, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    747 (32, 'Manage Subjects', '/admin/subjects', 24, '', 35, 1, 900, 1, '2007-05-21 16:31:22', '2007-05-29 16:26:29'), 
    748 (33, 'Add Subject', '/admin/subjects/add', 25, NULL, 32, 1, 900, 1, '2007-05-21 16:32:07', '2007-05-21 16:32:07'), 
    749 (34, 'Members News', '/posts/membersnews', 26, NULL, 2, 1, 500, 1, '2007-05-29 16:25:15', '2007-05-29 16:25:15'), 
    750 (35, 'Meta Data', '#', 27, NULL, 12, 1, 900, 1, '2007-05-29 16:26:06', '2007-05-29 16:26:06'), 
    751 (36, 'Post Settings', '/admin/configs/posts', 28, NULL, 4, 1, 999, 1, '2007-05-30 11:37:45', '2007-05-30 11:37:45'), 
    752 (37, 'Manage Tracks', '/admin/tracks/', 29, NULL, 30, 1, 900, 1, '2007-06-04 22:54:01', '2007-06-04 22:54:01'), 
    753 (38, 'Add Track', '/admin/tracks/add', 30, NULL, 37, 1, 900, 1, '2007-06-04 22:54:37', '2007-06-04 22:54:37'), 
    754 (39, 'Manage Playlists', '/admin/playlists/', 31, NULL, 29, 1, 900, 1, '2007-06-04 22:55:27', '2007-06-04 22:55:27'), 
    755 (40, 'Add Playlist', '/admin/playlists/add', 32, NULL, 39, 1, 900, 1, '2007-06-04 22:56:09', '2007-06-04 22:56:09'), 
    756 (41, 'Manage Tags', '/admin/tags', 1, NULL, 35, 1, 900, 1, '2007-06-20 16:02:08', '2007-06-20 16:02:08'), 
    757 (42, 'Manage Venues', '/admin/venues/', 3, NULL, 30, 1, 900, 1, '2007-07-06 15:48:34', '2007-07-06 15:48:34'), 
    758 (43, 'Add Venue', '/admin/venues/add', 0, NULL, 42, 1, 900, 1, '2007-07-06 15:49:05', '2007-07-06 15:49:05'); 
    759  
    760 -- -------------------------------------------------------- 
    761  
    762 --  
    763 -- Table structure for table `number_trees` 
    764 --  
    765  
    766 DROP TABLE IF EXISTS `number_trees`; 
    767 CREATE TABLE `number_trees` ( 
    768   `id` smallint(10) unsigned NOT NULL auto_increment, 
    769   `parent_id` smallint(10) default NULL, 
    770   `name` varchar(50) collate utf8_unicode_ci default NULL, 
    771   `lft` smallint(10) default NULL, 
    772   `rght` smallint(10) default NULL, 
    773   PRIMARY KEY  (`id`), 
    774   KEY `rght` (`rght`), 
    775   KEY `lft` (`lft`,`rght`) 
    776 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=12 ; 
    777  
    778 --  
    779 -- Dumping data for table `number_trees` 
    780 --  
    781  
    782 INSERT INTO `number_trees` (`id`, `parent_id`, `name`, `lft`, `rght`) VALUES  
    783 (1, NULL, '1. Root', 1, 22), 
    784 (2, 1, '1.1', 2, 7), 
    785 (3, 2, '1.1.1', 3, 4), 
    786 (4, 2, '1.1.2', 5, 6), 
    787 (5, 1, '1.2', 8, 21), 
    788 (6, 5, '1.2.1', 9, 10), 
    789 (7, 5, '1.2.2', 11, 12), 
    790 (8, 5, '1.2.New!', 13, 14), 
    791 (9, 5, '1.2.New!', 15, 16), 
    792 (10, 5, '1.2.New!', 17, 18), 
    793 (11, 5, '1.2.New!', 19, 20); 
     702INSERT INTO `menus` (`id`, `name`, `url`, `position`, `icon`, `parent_id`, `lft`, `rght`, `section_id`, `access_level`, `published`, `created`, `modified`) VALUES  
     703(1, 'Home', '/', 0, 'home', 0, 68, 69, 1, 0, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     704(2, 'News', '/posts/index/post_index_limit:10', 1, '', 0, 3, 6, 1, 0, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     705(3, 'Tour Dates', '/events/index', 2, NULL, 0, 1, 2, 1, 0, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     706(4, 'Manage Posts', '/admin/posts/home', 0, 'admin-posts', 29, 63, 63, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     707(5, 'Manage Pages', '/admin/pages/home', 1, 'admin-pages', 29, 57, 60, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     708(6, 'Manage Events', '/admin/events/home', 2, 'admin-events', 29, 51, 56, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     709(7, 'Manage Feeds', '/admin/feeds/', 3, 'admin-feeds', 29, 47, 50, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     710(8, 'Manage Users', '/admin/users/', 0, 'admin-users', 31, 9, 12, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     711(9, 'Manage Images', '/admin/images/', 0, 'admin-images', 30, 33, 36, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     712(10, 'Manage Configurations', '#', 2, 'admin-options', 31, 13, 18, 1, 999, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     713(11, 'Manage Galleries', '/admin/galleries', 4, 'admin-galleries', 29, 63, 63, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     714(12, 'Admin', '#', 5, '', 0, 7, 63, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     715(13, 'Galleries', '/galleries/', 3, NULL, 0, 66, 67, 1, 0, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     716(14, 'Manage Videos', '/admin/videos', 1, 'admin-videos', 30, 37, 40, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     717(15, 'Videos', '/videos', 4, '', 0, 64, 65, 1, 0, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     718(16, 'Manage Menus', '/admin/menus', 1, 'admin-menus', 31, 19, 22, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     719(17, 'Add Post', '/admin/posts/add', 11, '', 4, 61, 62, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     720(18, 'Add Page', '/admin/pages/add', 12, '', 5, 58, 59, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     721(19, 'Add Event', '/admin/events/add', 13, '', 6, 54, 55, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     722(20, 'Add Feed', '/admin/feeds/add', 14, '', 7, 48, 49, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     723(21, 'Add User', '/admin/users/add', 15, '', 8, 10, 11, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     724(22, 'Upload Image', '/admin/images/add', 16, '', 9, 34, 35, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     725(23, 'Add Gallery', '/admin/galleries/add', 17, '', 11, 63, 63, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     726(24, 'Add Video', '/admin/videos/add', 0, '', 14, 38, 39, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     727(25, 'Add Menu', '/admin/menus/add', 19, '', 16, 20, 21, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     728(26, 'Edit Video Options', '/admin/configs/video', 1, '', 10, 16, 17, 1, 999, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     729(27, 'Edit Site Options', '/admin/configs/edit', 0, '', 10, 14, 15, 1, 999, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     730(28, 'Add Event Type', '/admin/events/addtype', 20, '', 6, 52, 53, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     731(29, 'Content', '#', 21, NULL, 12, 42, 63, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     732(30, 'Assets', '#', 22, NULL, 12, 24, 41, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     733(31, 'System', '#', 23, NULL, 12, 8, 23, 1, 900, 1, '0000-00-00 00:00:00', '2007-07-18 00:07:09'), 
     734(32, 'Manage Subjects', '/admin/subjects', 24, '', 35, 63, 63, 1, 900, 1, '2007-05-21 16:31:22', '2007-07-18 00:07:09'), 
     735(33, 'Add Subject', '/admin/subjects/add', 25, NULL, 32, 63, 63, 1, 900, 1, '2007-05-21 16:32:07', '2007-07-18 00:07:09'), 
     736(34, 'Members News', '/posts/membersnews', 26, NULL, 2, 4, 5, 1, 500, 1, '2007-05-29 16:25:15', '2007-07-18 00:07:09'), 
     737(35, 'Meta Data', '#', 27, NULL, 12, 63, 63, 1, 900, 1, '2007-05-29 16:26:06', '2007-07-18 00:07:09'), 
     738(36, 'Post Settings', '/admin/configs/posts', 28, NULL, 4, 63, 63, 1, 999, 1, '2007-05-30 11:37:45', '2007-07-18 00:07:09'), 
     739(37, 'Manage Tracks', '/admin/tracks/', 29, NULL, 30, 29, 32, 1, 900, 1, '2007-06-04 22:54:01', '2007-07-18 00:07:09'), 
     740(38, 'Add Track', '/admin/tracks/add', 30, NULL, 37, 30, 31, 1, 900, 1, '2007-06-04 22:54:37', '2007-07-18 00:07:09'), 
     741(39, 'Manage Playlists', '/admin/playlists/', 31, NULL, 29, 43, 46, 1, 900, 1, '2007-06-04 22:55:27', '2007-07-18 00:07:09'), 
     742(40, 'Add Playlist', '/admin/playlists/add', 32, NULL, 39, 44, 45, 1, 900, 1, '2007-06-04 22:56:09', '2007-07-18 00:07:09'), 
     743(41, 'Manage Tags', '/admin/tags', 1, NULL, 35, 63, 63, 1, 900, 1, '2007-06-20 16:02:08', '2007-07-18 00:07:09'), 
     744(42, 'Manage Venues', '/admin/venues/', 3, NULL, 30, 25, 28, 1, 900, 1, '2007-07-06 15:48:34', '2007-07-18 00:07:09'), 
     745(43, 'Add Venue', '/admin/venues/add', 0, NULL, 42, 26, 27, 1, 900, 1, '2007-07-06 15:49:05', '2007-07-18 00:07:09'); 
    794746 
    795747-- -------------------------------------------------------- 
     
    802754CREATE TABLE `pages` ( 
    803755  `id` int(8) unsigned NOT NULL auto_increment, 
    804   `stub` varchar(255) NOT NULL, 
     756  `slug` varchar(255) NOT NULL, 
    805757  `title` varchar(255) NOT NULL, 
    806758  `body` text NOT NULL, 
     
    814766  `modified` datetime NOT NULL, 
    815767  PRIMARY KEY  (`id`) 
    816 ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1
     768) ENGINE=MyISAM DEFAULT CHARSET=utf8
    817769 
    818770--  
    819771-- Dumping data for table `pages` 
    820772--  
    821  
    822773 
    823774-- -------------------------------------------------------- 
     
    837788-- Dumping data for table `pages_tags` 
    838789--  
    839  
    840790 
    841791-- -------------------------------------------------------- 
     
    921871  `body` text NOT NULL, 
    922872  `post_date` datetime NOT NULL, 
    923   `comments_count` int(4) default NULL
     873  `comments_count` int(4) default '0'
    924874  `user_id` int(8) unsigned NOT NULL, 
    925875  `subject_id` int(8) unsigned NOT NULL, 
    926876  `image_id` int(8) unsigned default NULL, 
    927877  `access_level` int(8) unsigned NOT NULL, 
    928   `stub` varchar(255) NOT NULL, 
     878  `slug` varchar(255) NOT NULL, 
    929879  `tags` varchar(255) NOT NULL, 
    930880  `frontpage` tinyint(1) unsigned default NULL, 
     
    933883  `modified` datetime default NULL, 
    934884  PRIMARY KEY  (`id`) 
    935 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10
     885) ENGINE=MyISAM  DEFAULT CHARSET=utf8
    936886 
    937887--  
    938888-- Dumping data for table `posts` 
    939889--  
    940  
    941 INSERT INTO `posts` (`id`, `title`, `byline`, `body`, `post_date`, `comments_count`, `user_id`, `subject_id`, `image_id`, `access_level`, `stub`, `tags`, `frontpage`, `published`, `created`, `modified`) VALUES  
    942 (7, 'dfgfdgfdgdfg', 'dfgdfgdfgdfgdfg', '<p>dfgdfgdfgdfgdfgdf</p>', '2007-07-17 12:35:00', NULL, 1, 2, 3, 0, 'dfgfdgfdgdfg', 'Dfgdfgdfgdfg', 1, 1, '2007-07-17 12:35:50', '2007-07-17 12:35:50'), 
    943 (6, 'Test Post 2', 'Test Post 2', '<p>The Hedrons meet QOTSA</p>', '2007-07-17 12:23:00', NULL, 1, 2, 4, 0, 'test_post_2', 'The Hedrons', 1, 1, '2007-07-17 12:23:19', '2007-07-17 12:23:19'), 
    944 (5, 'Test', 'Test', '<p>Test</p>', '2007-07-17 12:16:00', NULL, 1, 2, 3, 0, 'test', 'Test', 1, 1, '2007-07-17 12:16:43', '2007-07-17 12:16:43'), 
    945 (8, 'fgdhrtjrtjryj', 'tyejtyjtyjty', '<p>jtyjtyjtyjtyjty</p>', '2007-07-17 12:37:00', NULL, 1, 2, 4, 0, 'fgdhrtjrtjryj', 'Tyjtyj', 1, 1, '2007-07-17 12:37:44', '2007-07-17 12:37:44'), 
    946 (9, 'fgsdfgdfhrthtrhwrth', 'rthrthrthr', '<p>hrthrth</p>', '2007-07-17 12:38:00', NULL, 1, 2, 3, 0, 'fgsdfgdfhrthtrhwrth', 'Ertherttrh', 1, 1, '2007-07-17 12:38:36', '2007-07-17 12:38:36'); 
    947890 
    948891-- -------------------------------------------------------- 
     
    962905-- Dumping data for table `posts_tags` 
    963906--  
    964  
    965 INSERT INTO `posts_tags` (`post_id`, `tag_id`) VALUES  
    966 (5, 13), 
    967 (6, 1), 
    968 (7, 11), 
    969 (8, 14), 
    970 (9, 15); 
    971  
    972907-- -------------------------------------------------------- 
    973908 
     
    11291064INSERT INTO `subjects` (`id`, `title`, `posts_count`, `pages_count`, `events_count`, `feeds_count`, `images_count`, `galleries_count`, `videos_count`, `created`, `modified`) VALUES  
    11301065(1, 'Uncatagorised', 1, 0, 2, 0, 0, 0, 0, '2007-05-01 17:05:55', '2007-05-01 17:05:55'), 
    1131 (2, 'The Hedrons', 5, NULL, 1, NULL, 2, NULL, NULL, '2007-07-06 14:33:59', '2007-07-06 14:33:59'), 
     1066(2, 'The Hedrons', 1, 1, 3, NULL, 2, NULL, NULL, '2007-07-06 14:33:59', '2007-07-06 14:33:59'), 
    11321067(3, 'Wet Wet Wet', 0, NULL, NULL, NULL, NULL, NULL, NULL, '2007-07-06 14:34:09', '2007-07-06 14:34:09'); 
    11331068 
     
    11431078  `tag` varchar(255) collate utf8_unicode_ci NOT NULL, 
    11441079  PRIMARY KEY  (`id`) 
    1145 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=16
     1080) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
    11461081 
    11471082--  
    11481083-- Dumping data for table `tags` 
    11491084--  
    1150  
    1151 INSERT INTO `tags` (`id`, `tag`) VALUES  
    1152 (1, 'The Hedrons'), 
    1153 (2, 'T In The Park'), 
    1154 (3, 'Summer Festivals'), 
    1155 (4, 'Festival'), 
    1156 (5, 'King Tuts'), 
    1157 (6, 'London'), 
    1158 (7, '1'), 
    1159 (8, 'Usa Tour'), 
    1160 (9, 'Test Post'), 
    1161 (10, 'Wet Wet Wet'), 
    1162 (11, 'Dfgdfgdfgdfg'), 
    1163 (12, 'Quebec'), 
    1164 (13, 'Test'), 
    1165 (14, 'Tyjtyj'), 
    1166 (15, 'Ertherttrh'); 
    11671085 
    11681086-- -------------------------------------------------------- 
     
    11981116-- Dumping data for table `tags_users` 
    11991117--  
    1200  
    12011118 
    12021119-- -------------------------------------------------------- 
     
    12781195  `id` int(10) unsigned NOT NULL auto_increment, 
    12791196  `username` varchar(50) NOT NULL default '', 
    1280   `passwd` varchar(32) NOT NULL default '', 
     1197  `openid` varchar(255) default NULL, 
     1198  `passwd` varchar(32) default NULL, 
    12811199  `name` varchar(50) NOT NULL default '', 
    12821200  `email` varchar(100) NOT NULL default '', 
    1283   `last_visit` datetime NOT NULL default '0000-00-00 00:00:00', 
     1201  `last_visit` datetime default '0000-00-00 00:00:00', 
    12841202  `group_id` int(10) unsigned NOT NULL default '0', 
    1285   `profile_id` int(8) unsigned NOT NULL default '0', 
    1286   `posts_count` int(4) NOT NULL, 
    1287   `pages_count` int(4) NOT NULL, 
    1288   `comments_count` int(4) NOT NULL, 
    1289   `videos_count` int(4) NOT NULL, 
    1290   `tags` varchar(255) NOT NULL, 
     1203  `profile_id` int(8) unsigned default '0', 
     1204  `posts_count` int(4) default '0', 
     1205  `pages_count` int(4) default '0', 
     1206  `events_count` int(8) unsigned default '0', 
     1207  `comments_count` int(4) default '0', 
     1208  `videos_count` int(4) default '0', 
     1209  `tags` varchar(255) default NULL, 
    12911210  `active` tinyint(1) unsigned NOT NULL default '0', 
    1292   `created` datetime NOT NULL default '0000-00-00 00:00:00', 
    1293   `modified` datetime NOT NULL default '0000-00-00 00:00:00', 
     1211  `created` datetime default '0000-00-00 00:00:00', 
     1212  `modified` datetime default '0000-00-00 00:00:00', 
    12941213  PRIMARY KEY  (`id`), 
    12951214  UNIQUE KEY `username` (`username`), 
     
    13021221--  
    13031222 
    1304 INSERT INTO `users` (`id`, `username`, `passwd`, `name`, `email`, `last_visit`, `group_id`, `profile_id`, `posts_count`, `pages_count`, `comments_count`, `videos_count`, `tags`, `active`, `created`, `modified`) VALUES  
    1305 (1, 'WebrocketAdmin', 'fdfedc01c66e9ea2817508ca1097df2f', 'Webrocket Admin', 'admin@webrocket.com', '2007-06-11 17:29:46', 1, 1, 5, 2, 2, 0, '', 1, '2007-03-26 00:00:00', '0000-00-00 00:00:00'), 
    1306 (2, 'Editor', '5aee9dbd2a188839105073571bee1b1f', 'Site', 'Editor', '2007-04-27 10:02:45', 2, 0, 0, 0, 0, 0, '', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
    1307 (3, 'Member', 'aa08769cdcb26674c6706093503ff0a3', 'Member', 'member@member.com', '2007-04-26 13:43:34', 3, 0, 0, 0, 0, 0, '', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); 
     1223INSERT INTO `users` (`id`, `username`, `openid`, `passwd`, `name`, `email`, `last_visit`, `group_id`, `profile_id`, `posts_count`, `pages_count`, `events_count`, `comments_count`, `videos_count`, `tags`, `active`, `created`, `modified`) VALUES  
     1224(1, 'WebrocketAdmin', NULL, 'fdfedc01c66e9ea2817508ca1097df2f', 'Webrocket Admin', 'admin@webrocket.com', '2007-07-19 13:43:56', 1, 1, 1, 1, 1, 2, 0, 'Admin, Owner', 1, '2007-03-26 00:00:00', '2007-07-19 10:45:36'), 
     1225(2, 'Editor', NULL, '5aee9dbd2a188839105073571bee1b1f', 'Site', 'Editor', '2007-04-27 10:02:45', 2, 0, 0, 0, 0, 0, 0, '', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), 
     1226(3, 'Member', NULL, 'aa08769cdcb26674c6706093503ff0a3', 'Member', 'member@member.com', '2007-04-26 13:43:34', 3, 0, 0, 0, 0, 0, 0, '', 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); 
    13081227 
    13091228-- -------------------------------------------------------- 
     
    13251244  `longitude` decimal(20,15) NOT NULL, 
    13261245  `zoom` int(11) NOT NULL default '12', 
     1246  `events_count` int(8) unsigned default '0', 
    13271247  `created` datetime default NULL, 
    13281248  `modified` datetime default NULL, 
     
    13341254--  
    13351255 
    1336 INSERT INTO `venues` (`id`, `name`, `description`, `street`, `city`, `state`, `postcode`, `latitude`, `longitude`, `zoom`, `created`, `modified`) VALUES  
    1337 (1, 'King Tuts', 'King Tuts club in Glasgow', '272a St Vincent St', 'Glasgow', 'Glasgow', 'G2 5RL', 55.862529754638670, -4.265317916870117, 12, '2007-07-06 16:13:18', '2007-07-13 14:09:16'), 
    1338 (3, 'T In The Park', 'T In The park', 'Balado', 'Kinross', 'Fife', 'KY13', 56.207641601562500, -3.467989921569824, 12, '2007-07-06 16:18:55', '2007-07-13 14:09:31'), 
    1339 (9, 'Water Street Music Hall', 'Water Street Music Hall', '204 N. Water Street', 'Rochester', 'NY', '14604', 43.160435004700986, -77.611788511276250, 12, '2007-07-13 14:06:08', '2007-07-13 14:09:00'), 
    1340 (10, 'Nectar''s', 'Nectar''s', '188 Main St.', 'Burlington', 'VT', '05401', 44.475900338720756, -73.212525844573970, 12, '2007-07-13 14:23:07', '2007-07-13 14:23:07'), 
    1341 (11, 'Quebec City International Summer Fest', 'Quebec City International Summer Fest', NULL, 'Quebec', 'Quebec', NULL, 46.812984012678640, -71.228141784667970, 12, '2007-07-13 14:48:57', '2007-07-13 14:48:57'), 
    1342 (12, 'The Boat', 'The Boat', '158 Augusta Avenue', 'Toronto', 'ON', NULL, 43.653248574034730, -79.401519298553470, 12, '2007-07-13 14:51:50', '2007-07-13 14:51:50'), 
    1343 (13, 'The Legendary Horseshoe Tavern', 'The Legendary Horseshoe Tavern', '370 Queen Street West', 'Toronto', 'Ontario', 'M5V 2A2', 43.648823705297730, -79.395875930786130, 12, '2007-07-13 14:53:36', '2007-07-13 14:53:36'), 
    1344 (14, 'The Annex', 'The Annex on The Lower East Side', '150 Orchard St', 'New York', 'NY', NULL, 40.720591366423290, -73.988950252532960, 12, '2007-07-13 14:58:18', '2007-07-13 14:58:18'), 
    1345 (15, 'Great Scott', 'Great Scott', '1222 Commonwealth Ave', 'Allston, Boston', 'MA', '02134', 42.350226896549096, -71.130638122558600, 12, '2007-07-13 15:01:52', '2007-07-13 15:01:52'), 
    1346 (16, 'The State Theatre', 'The State Theatre', '220 N. Washington', 'Falls Church', 'VA', '22046-4517', 38.883224495209410, -77.169739007949830, 12, '2007-07-13 15:05:13', '2007-07-13 15:05:13'), 
    1347 (17, 'North Star Bar', 'North Star Bar', '2639 Poplar Street', 'Philadelphia', 'PA', '19130', 39.972811886948640, -75.180366039276120, 12, '2007-07-13 15:15:48', '2007-07-13 15:15:48'), 
    1348 (18, 'The Dame', 'The Dame', '156 West Main Street', 'Lexington', 'Kentucky', '40507', 38.046914549925850, -84.497625231742860, 12, '2007-07-13 15:43:18', '2007-07-13 15:48:17'), 
    1349 (19, 'Radio Radio', 'Radio Radio', '1119 E. Prospect Street', ' Indianapolis', 'IN', '46203', 39.752320727309480, -86.139442920684810, 12, '2007-07-13 15:58:48', '2007-07-13 15:58:48'), 
    1350 (20, 'Wicker Park Festival', 'Wicker Park Festival', 'N. Wicker Park Ave', 'Chicago', 'Il', NULL, 41.907658914284650, -87.676724195480350, 12, '2007-07-13 16:04:35', '2007-07-13 16:04:35'), 
    1351 (21, 'Metro', 'Metro', '3730 N. Clark St.', 'Chicago', 'IL', '60613', 41.949771967936680, -87.658581733703610, 12, '2007-07-13 16:08:32', '2007-07-13 16:08:32'), 
    1352 (22, 'Caird Hall', 'Caird Hall', 'City Square', 'Dundee', 'Angus', 'DD1 3BB', 56.465033295055020, -2.969806194305420, 12, '2007-07-13 16:18:12', '2007-07-13 16:18:12'), 
    1353 (23, 'Darvel Town Hall', 'Darvel Town Hall', NULL, 'Darvel', NULL, NULL, 55.609731000000000, -4.281818000000000, 12, '2007-07-13 16:32:58', '2007-07-13 16:32:58'); 
     1256INSERT INTO `venues` (`id`, `name`, `description`, `street`, `city`, `state`, `postcode`, `latitude`, `longitude`, `zoom`, `events_count`, `created`, `modified`) VALUES  
     1257(1, 'King Tuts', 'King Tuts club in Glasgow', '272a St Vincent St', 'Glasgow', 'Glasgow', 'G2 5RL', 55.862529754638670, -4.265317916870117, 12, 0, '2007-07-06 16:13:18', '2007-07-13 14:09:16'), 
     1258(3, 'T In The Park', 'T In The park', 'Balado', 'Kinross', 'Fife', 'KY13', 56.207641601562500, -3.467989921569824, 12, 0, '2007-07-06 16:18:55', '2007-07-13 14:09:31'), 
     1259(9, 'Water Street Music Hall', 'Water Street Music Hall', '204 N. Water Street', 'Rochester', 'NY', '14604', 43.160435004700986, -77.611788511276250, 12, 0, '2007-07-13 14:06:08', '2007-07-13 14:09:00'), 
     1260(10, 'Nectar''s', 'Nectar''s', '188 Main St.', 'Burlington', 'VT', '05401', 44.475900338720756, -73.212525844573970, 12, 0, '2007-07-13 14:23:07', '2007-07-13 14:23:07'), 
     1261(11, 'Quebec City International Summer Fest', 'Quebec City International Summer Fest', NULL, 'Quebec', 'Quebec', NULL, 46.812984012678640, -71.228141784667970, 12, 0, '2007-07-13 14:48:57', '2007-07-13 14:48:57'), 
     1262(12, 'The Boat', 'The Boat', '158 Augusta Avenue', 'Toronto', 'ON', NULL, 43.653248574034730, -79.401519298553470, 12, 0, '2007-07-13 14:51:50', '2007-07-13 14:51:50'), 
     1263(13, 'The Legendary Horseshoe Tavern', 'The Legendary Horseshoe Tavern', '370 Queen Street West', 'Toronto', 'Ontario', 'M5V 2A2', 43.648823705297730, -79.395875930786130, 12, 1, '2007-07-13 14:53:36', '2007-07-13 14:53:36'), 
     1264(14, 'The Annex', 'The Annex on The Lower East Side', '150 Orchard St', 'New York', 'NY', NULL, 40.720591366423290, -73.988950252532960, 12, 0, '2007-07-13 14:58:18', '2007-07-13 14:58:18'), 
     1265(15, 'Great Scott', 'Great Scott', '1222 Commonwealth Ave', 'Allston, Boston', 'MA', '02134', 42.350226896549096, -71.130638122558600, 12, 0, '2007-07-13 15:01:52', '2007-07-13 15:01:52'), 
     1266(16, 'The State Theatre', 'The State Theatre', '220 N. Washington', 'Falls Church', 'VA', '22046-4517', 38.883224495209410, -77.169739007949830, 12, 0, '2007-07-13 15:05:13', '2007-07-13 15:05:13'), 
     1267(17, 'North Star Bar', 'North Star Bar', '2639 Poplar Street', 'Philadelphia', 'PA', '19130', 39.972811886948640, -75.180366039276120, 12, 0, '2007-07-13 15:15:48', '2007-07-13 15:15:48'), 
     1268(18, 'The Dame', 'The Dame', '156 West Main Street', 'Lexington', 'Kentucky', '40507', 38.046914549925850, -84.497625231742860, 12, 0, '2007-07-13 15:43:18', '2007-07-13 15:48:17'), 
     1269(19, 'Radio Radio', 'Radio Radio', '1119 E. Prospect Street', ' Indianapolis', 'IN', '46203', 39.752320727309480, -86.139442920684810, 12, 0, '2007-07-13 15:58:48', '2007-07-13 15:58:48'), 
     1270(20, 'Wicker Park Festival', 'Wicker Park Festival', 'N. Wicker Park Ave', 'Chicago', 'Il', NULL, 41.907658914284650, -87.676724195480350, 12, 0, '2007-07-13 16:04:35', '2007-07-13 16:04:35'), 
     1271(21, 'Metro', 'Metro', '3730 N. Clark St.', 'Chicago', 'IL', '60613', 41.949771967936680, -87.658581733703610, 12, 0, '2007-07-13 16:08:32', '2007-07-13 16:08:32'), 
     1272(22, 'Caird Hall', 'Caird Hall', 'City Square', 'Dundee', 'Angus', 'DD1 3BB', 56.465033295055020, -2.969806194305420, 12, 0, '2007-07-13 16:18:12', '2007-07-13 16:18:12'), 
     1273(23, 'Darvel Town Hall', 'Darvel Town Hall', NULL, 'Darvel', NULL, NULL, 55.609731000000000, -4.281818000000000, 12, 0, '2007-07-13 16:32:58', '2007-07-13 16:32:58'); 
    13541274 
    13551275-- -------------------------------------------------------- 
  • branch/views/elements/js_include.ctp

    r105 r119  
    1313<?php e($javascript->link('jquery.jmaps'));?> 
    1414<?php e($javascript->link('jquery.thickbox'));?> 
     15<?php e($javascript->link('jquery.tabs'));?> 
     16<?php e($javascript->link('jquery.history_remote.pack'));?> 
    1517<!-- WymEditor JavaScript--> 
    1618<?php e($javascript->link('wymeditor/jquery.wymeditor'));?> 
  • branch/views/events/admin_index.ctp

    r118 r119  
    9797                e('</div>'); 
    9898         } ?> 
    99 <div class="actions"> 
    100         <ul> 
    101                 <li><?php echo $html->link(__('New', true).' '.__('Event', true), array('action'=>'add')); ?></li> 
    102         </ul> 
    103 </div> 
  • branch/views/layouts/default.ctp

    r114 r119  
    1515        <?php echo $html->css('jdMenu');?> 
    1616        <?php echo $html->css('jdMenu.slate');?> 
     17        <?php echo $html->css('jquery.tabs');?> 
     18        <?php echo $html->css('jquery.tabs.ie');?> 
    1719        <?php echo $html->css('../js/wymeditor/skins/default/screen');?> 
    1820        <?php e($this->element('js_include'));?> 
  • branch/views/pages/admin_index.ctp

    r118 r119  
    4343        <h2>There are currently no pages. Click <?php echo $html->link('here', array('action'=>'add')); ?> to create one.</h2> 
    4444<?php } ?> 
    45 <div class="actions"> 
    46         <ul> 
    47                 <li><?php echo $html->link('New Page', array('action'=>'add')); ?></li> 
    48         </ul> 
    49 </div> 
  • branch/views/posts/admin_index.ctp

    r118 r119  
    6060        <h2>There are currently no posts. Click <?php echo $html->link('here', array('action'=>'add')); ?> to create one.</h2> 
    6161<?php } ?> 
    62 <div class="actions"> 
    63         <ul> 
    64                 <li><?php echo $html->link('New Post', array('action'=>'add')); ?></li> 
    65         </ul> 
    66 </div> 
  • branch/views/posts/admin_view.ctp

    r112 r119  
    55        <span class="vcard author"><?php echo $html->link($post['User']['username'], array('controller'=> 'users', 'action'=>'view', $post['User']['id'])); ?></span> 
    66        <div class="entry-content"> 
    7                 <?php echo $post['Post']['body']; ?> 
     7                <div class="entry-text"> 
     8                        <?php echo $post['Post']['body']; ?> 
     9                </div> 
     10                <div class="entry-image"> 
     11                        <a href="/files/images/<?php echo $post['Image']['filename']; ?>" class="thickbox" title="<?php echo $post['Image']['alt']; ?>"> 
     12                                <img src="/files/images/thumb.medium.<?php echo $post['Image']['filename']; ?>" alt="<?php echo $post['Image']['alt']; ?>" title="<?php echo $post['Image']['alt']; ?>" /> 
     13                        </a> 
     14                </div> 
    815        </div>   
    916        <div class="meta"> 
  • branch/views/posts/index.ctp

    r112 r119  
    11<?php foreach ($posts as $post): ?> 
    22                <div class="hentry"> 
    3                         <h2 class="entry-title"><?php e($html->link($post['Post']['title'], array('controller'=>'posts', 'action'=>'view', $post['Post']['slug']))); ?></h2> 
    4                         <div class="entry-infobar"> 
    5                                 Updated on <abbr class="updated" title=""><?php echo $post['Post']['post_date']; ?></abbr> by  
    6                                 <span class="vcard author fn"><?php echo $html->link($post['User']['username'], array('controller'=> 'users', 'action'=>'view', $post['User']['id'])); ?></span> 
    7                         </div> 
    8                         <div class="entry-content"> 
    9                                 <p> 
    10                                         <?php echo $post['Post']['body']; ?> 
    11                                 </p> 
    12                         </div> 
    13                  
    14                         <div class="meta"> 
    15                                 Comments: <?php echo $post['Post']['comments_count']; ?><br /> 
    16                                 Tags: <?php foreach ($post['Tag'] as $tag) : 
    17                                                         e($html->link($tag['tag'], 'http://technorati.com/tag/' . $tag['tag'], array('rel'=>'tag', 'class'=>'tag')));  
     3        <h2 class="entry-title"><?php e($html->link($post['Post']['title'], array('controller'=>'posts', 'action'=>'view', $post['Post']['slug']))); ?></h2> 
     4        <?php echo $html->link('Edit', array('action'=>'edit', $post['Post']['id'])); ?> 
     5        <abbr class="updated" title=""><?php echo $post['Post']['post_date']; ?></abbr> 
     6        <span class="vcard author"><?php echo $html->link($post['User']['username'], array('controller'=> 'users', 'action'=>'view', $post['User']['id'])); ?></span> 
     7        <div class="entry-content"> 
     8                <div class="entry-text"> 
     9                        <?php echo $post['Post']['body']; ?> 
     10                </div> 
     11                <div class="entry-image"> 
     12                        <a href="/files/images/<?php echo $post['Image']['filename']; ?>" class="thickbox" title="<?php echo $post['Image']['alt']; ?>"> 
     13                                <img src="/files/images/thumb.medium.<?php echo $post['Image']['filename']; ?>" alt="<?php echo $post['Image']['alt']; ?>" title="<?php echo $post['Image']['alt']; ?>" /> 
     14                        </a> 
     15                </div> 
     16        </div>   
     17        <div class="meta"> 
     18                Comments: <?php echo $post['Post']['comments_count']; ?><br /> 
     19                Tags: <?php foreach ($post['Tag'] as $tag) : 
     20                                        e($html->link($tag['tag'], 'http://technorati.com/tag/' . $tag['tag'], array('rel'=>'tag', 'class'=>'tag')));  
    1821                                        endforeach;                              
    19                                         ?> 
    20                         </div> 
    21                  
    22                         <span class="version" style="display: none;">0.3</span> 
    23                 </div> 
     22                                ?> 
     23        </div> 
     24        <span class="version" style="display: none;">0.3</span> 
     25</div> 
    2426<?php endforeach; ?> 
    2527 
  • branch/views/posts/view.ctp

    r112 r119  
    55        <span class="vcard author"><?php echo $html->link($post['User']['username'], array('controller'=> 'users', 'action'=>'view', $post['User']['id'])); ?></span> 
    66        <div class="entry-content"> 
    7                 <?php echo $post['Post']['body']; ?> 
     7                <div class="entry-text"> 
     8                        <?php echo $post['Post']['body']; ?> 
     9                </div> 
     10                <div class="entry-image"> 
     11                        <a href="/files/images/<?php echo $post['Image']['filename']; ?>" class="thickbox" title="<?php echo $post['Image']['alt']; ?>"> 
     12                                <img src="/files/images/thumb.medium.<?php echo $post['Image']['filename']; ?>" alt="<?php echo $post['Image']['alt']; ?>" title="<?php echo $post['Image']['alt']; ?>" /> 
     13                        </a> 
     14                </div> 
    815        </div>   
    916        <div class="meta"> 
  • branch/views/users/login.ctp

    r56 r119  
    11<div id="login" class="user-form"> 
    2         <?php e($form->create('User', array('action'=>'login')));?> 
     2        <ul>  
     3          <li><a href="#tab1"><span>Normal Login</span></a></li>  
     4          <li><a href="#tab2"><span>OpenID Login</span></a></li>  
     5        </ul>  
    36         
    4         <fieldset id="login"> 
    5                 <legend>Log in to <?php e($sitename);?></legend> 
    6                  
    7                 <?php e($form->input('username'));?> 
    8                 <?php e($form->input('passwd', array('label'=>'Password')));?> 
    9                 <?php e($form->input('cookie', array('label'=>'Remeber me for 24 hours','type'=>'checkbox')));?> 
    10                 <?php if($enable_captcha) { ?> 
    11                         <img src="<?php echo $html->url('/users/captcha'); ?>" /> 
    12                         <?php e($form->input('captcha_check', array('label'=>'Enter the Captcha code above')));?> 
    13                 <?php } ?> 
    14                 <?php e($form->submit('Log in'));?> 
    15                  
    16         </fieldset> 
     7        <div id="tab1"> 
     8                <h2>Normal Login</h2> 
     9                <?php e($form->create('User', array('action'=>'login')));?> 
    1710         
    18         <?php e($form->end());?> 
     11                <fieldset id="login"> 
     12