Commit Graph
2082 Commits
Author SHA1 Message Date
Chad Kieffer 5e385398f0 IE fixes. Default theme now looks roughly the same in IE and Firefox. We need to avoid using absolute and relative positioning for our primary layout containers (i.e. gHeader, gFooter, etc.). 2008-11-10 02:16:09 +00:00
Bharat Mediratta c2162a645a Clean up HTML for adding albums/photos a tad. 2008-11-10 00:34:02 +00:00
Bharat Mediratta b006b1922c uninstall and reinstall the comment module, too 2008-11-10 00:26:52 +00:00
Bharat Mediratta b5f2443bb5 Add the ability to create albums to the scaffolding
Revert $_POST back to $this->input->post() because that supports default values.
2008-11-10 00:25:59 +00:00
Chad Kieffer 49f3794894 jQuery edit in place is so easy, seems like it oughta be added to the photo view :) 2008-11-10 00:24:01 +00:00
Bharat Mediratta 085ba7cd46 Tests for Item_Controller 2008-11-10 00:16:41 +00:00
Bharat Mediratta c054b4de04 Convert quote styles
Convert $this->input->post to $_POST
2008-11-10 00:16:03 +00:00
Bharat Mediratta 223cba531e Rename tests to make room for controller tests
Album_Test -> Album_Helper_Test
  Photo_Test -> Photo_Helper_Test
2008-11-09 23:49:09 +00:00
Bharat Mediratta 1ba012db0e Chain away temporary variables 2008-11-09 23:45:47 +00:00
Bharat Mediratta e7155c09c5 Implement Item_Controller::put() and delete()
Adjust/simplify photo::create
Add image uploading to the scaffolding
2008-11-09 23:40:28 +00:00
Jozef Selesi aa437293e6 Fix line endings. 2008-11-09 23:34:03 +00:00
Bharat Mediratta 25dd0bbf1c style fix 2008-11-09 23:29:05 +00:00
Jozef Selesi 434e56351e Install/uninstall support for the comment module. Missing from the previous commit. 2008-11-09 23:06:31 +00:00
Chad Kieffer 46a67a4b6d IE fixes, sidebar is now fixed in IE (we were missing a yui-g class). Removed .first class, it's not needed, at least not now. Moved all top-level layout containers to page.html.php so that if themers want to replace YUI grids with something else, like Blueprint, they only really need to edit page.html.php. 2008-11-09 23:03:50 +00:00
Jozef Selesi 24decb7fa4 Beginnings of the comment module. Install and uninstall. 2008-11-09 22:57:55 +00:00
Chad Kieffer 85b909a9f9 CSS cleanup. Alphabetized all CSS attributes. Use short form declaration for background. Don't precede decimal values with 0 (.8em instead of 0.8em). Convert colors to short form, use lower case hex alpha values (easier to read), convert keyword colors to hex values. Quoted url paths. Fixed the order of border attributes (width style color). Don't clear floated elements around #gContent. 2008-11-09 20:07:47 +00:00
Bharat Mediratta 1b490c5fe6 Make Gallery3 more RESTful.
Create Item_Controller as a common superclass for Album_Controller and
Photo_Controller.  Change routes to route requests to Item_Controller
for dispatching, which in turn will generate get/post/put/delete
requests to the controlller so that each controller has a RESTful
surface.

Change in_place editing to take advantage of this.
2008-11-09 19:20:23 +00:00
Bharat Mediratta 065bbb2120 try to disable register_globals 2008-11-09 19:10:48 +00:00
Bharat Mediratta 4cc70a1851 change url::base() to url::file() 2008-11-09 18:54:17 +00:00
Bharat Mediratta a8713a7695 Allow in-place editing in the info block. 2008-11-08 19:11:12 +00:00
Bharat Mediratta e8d989ff9a Simplify the CSS a bit. 2008-11-08 10:21:18 +00:00
Bharat Mediratta 0238925a63 Restrict our dom traversal to look only for span.gInPlaceEdit for speed. 2008-11-08 09:35:46 +00:00
Bharat Mediratta 950c58e6d3 Add support for in-place editing of data fields. 2008-11-08 09:28:11 +00:00
Bharat Mediratta ac8199a09a Tell users to install the user module before installing auth. 2008-11-08 07:51:19 +00:00
Bharat Mediratta 418c0aab69 Create permanent owner_id column in the item table, and use a soft
relationship to bind the two.  To do this, I overrode __get in
Item_Model so that $item->owner returns the appropriate User_Model.
2008-11-08 07:48:36 +00:00
Bharat Mediratta ea7cc4f46e Simplify the way that we find the user id (just look it up, and if there's a database exception use the null value) 2008-11-08 07:27:46 +00:00
Felix Rabinovich 28b739a210 Adding user (owner) to items; info module 2008-11-08 07:18:56 +00:00
Tim Almdal 3bb9b9185c Standardize on a format for exceptions messages new Exception("@todo ERROR_MESSAGE"); 2008-11-08 05:30:41 +00:00
Bharat Mediratta 36d1be4717 44 --> E_DATABASE_ERROR 2008-11-08 05:12:37 +00:00
Bharat Mediratta 73488d5ee9 Remove inappropriate comments 2008-11-08 05:11:58 +00:00
Tim Almdal d025155314 The start of an authentication module. This provides the installation and a basic install test. There is no interface at the moment to do authentication. It is dependent on the install of the user module. 2008-11-08 01:56:59 +00:00
Tim Almdal 57683d5b70 Change how the modules table doesn't exist is caught. In running unit test, sometimes i would get the message "There was an SQL error: Table 'gallery3_unittest.modules' doesn't exist - ...." and sometimes I would get the message "Table modules does not exist in your database." In both cases the error code was 44. 2008-11-08 01:19:03 +00:00
Bharat Mediratta dc90ad9739 Change add() to add photos:albums at a ratio of 10:1 2008-11-07 10:46:06 +00:00
Bharat Mediratta 30c4433b44 Fix the child url to use the item type. 2008-11-07 10:44:49 +00:00
Bharat Mediratta 70e96fbaf0 add gMinimize to the block header 2008-11-07 08:54:30 +00:00
Bharat Mediratta 04d4ea27ee indentation fixes 2008-11-07 08:53:42 +00:00
Chad Kieffer e0f8541fef Renamed .minimize to .gMinimize 2008-11-07 07:41:50 +00:00
Bharat Mediratta 81ab478559 move block.html.php into the default theme 2008-11-07 07:37:49 +00:00
Bharat Mediratta 76436c0029 Add automatic pagination. All you have to do is add <?= $theme->pager
?> to your theme file and you get a well formed pager.  Themes can
customize this any way they want.  A version that matches the mockup
is provided in the default theme.
2008-11-07 07:33:43 +00:00
Chad Kieffer 50a9848f38 Updated CSS organization and headings, removed unused styles, added placeholders for a few styles, including gThumbnail. Simplified album grid loop, the thumbnail container markup for albums and items was almost identical, no need to repeat all of it. Switched album grid markup from <div> to <ul>. Updated element nesting in photo template. 2008-11-07 07:31:58 +00:00
Bharat Mediratta ae359b50e0 Use get_object_vars to simplify code 2008-11-07 07:31:11 +00:00
Bharat Mediratta 936decb437 Add children_count() to ORM_MPTT 2008-11-07 06:46:38 +00:00
Bharat Mediratta 6a1ef44c88 convert tabs -> spaces 2008-11-07 06:44:36 +00:00
Bharat Mediratta 6b5b5ec3a6 Use jquery.cookie to keep the same tab open when you refresh
Add a switch to turn profiling on/off
2008-11-07 05:49:45 +00:00
Bharat Mediratta c526a9cd25 Move default theme up above modules so that it can override module views 2008-11-07 05:04:15 +00:00
Chad Kieffer 7329cb0dde Added YUI 2.6.0 CSS collection to lib (reset-gonts-grids and base) and call these rather than CDN versions, for now. Renamed default theme's style sheet to screen.css, recommend that CSS files be named for the primary media they support. Removed unused YUI JS component calls from the default theme. 2008-11-07 05:03:00 +00:00
Bharat Mediratta 6f1c46da6e Oops, these files got left out of r18525. 2008-11-06 10:22:34 +00:00
Bharat Mediratta 93fd448e7e Break header/sidebar/footer out into separate templates. 2008-11-06 07:24:58 +00:00
Bharat Mediratta 278191dd6d Change the theming module again, per a discussion with Chad and Jakob.
Now we have an overall page layout (page.html.php) which has a $content
variable, and that $content will be one of several possible secondary
views.  Currently, it is either photo.html.php or album.html.php.

header, footer, breadcrumb, sidebar, anything common to all pages is
in page.html.php.
2008-11-06 07:20:06 +00:00
Bharat Mediratta 6cafc61f96 album::set_thumbnail is now part of Item_Model so it can go.
Fix a bug in the scaffolding where we weren't saving the album after
adding its thumbnail (so its dimensions weren't getting set).
2008-11-06 05:51:20 +00:00