summaryrefslogtreecommitdiff
path: root/modules/watermark
AgeCommit message (Collapse)Author
2009-01-15Changing t() placeholder syntax from {{replace_me}} to %replace_me.Andy Staudacher
2009-01-14Make sure that helper functions are all static. Add newBharat Mediratta
File_Structure_Test to make sure we don't regress. According to the PHP docs, the "public" keyword is implied on static functions, so remove it. Also, require private static functions to start with an _. http://php.net/manual/en/language.oop5.visibility.php
2009-01-12Updated for new Form_Submit API.Bharat Mediratta
OLD: $form->submit("Foo") --> <input type="submit" value="Foo"> New: $form->submit("foo_button")->("Foo") --> <input type="submit" name="foo_button" value="Foo"> Mostly we don't care what the button is so we leave the name blank.
2009-01-08i18n refactoring: Rename all _() (reserved by gettext) calls to t().Andy Staudacher
- And refactor printf to our string interpolation / pluralization syntax - Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-06Fix up all the various little forms to have submit buttons, fieldset ↵Bharat Mediratta
legends, etc etc.
2009-01-04Wrap div with another div instead of a paragraphChad Kieffer
2009-01-01Change the preamble for views in two ways:Bharat Mediratta
1) drop unnecessary semicolon 2) start with <?php for extra security in the case that the server itself doesn't have short_tags enabled (the app won't work, but we need to make sure that we're still secure)
2008-12-30Make some columns smaller so that multi-column keys don't exceed 1024Bharat Mediratta
bytes on some systems.
2008-12-29Remove rest::JSON content type; it's causing lots of problems and it doesn't ↵Bharat Mediratta
directly help since text/html works just as well for our JSON communications
2008-12-29Add transparency supportBharat Mediratta
2008-12-29Clean up _update_graphics_rules() to make it more robustBharat Mediratta
2008-12-26Added content type to JSON output functionsFelix Rabinovich
2008-12-26Move Watermarks under Content in the Site Admin menu.Bharat Mediratta
2008-12-26Add the graphics rules for both thumbs and resizes (instead of just thumbs).Bharat Mediratta
2008-12-26Added the concept of "permanent" messages that we show to admins. UseBharat Mediratta
this to show a "your thumbs/resizes are out of date" message whenever we change the graphics rules. Tweak watermark module to add graphics rules whenever we make a change, which triggers the graphics module to add the permanent message.
2008-12-26Fix get_add_form() to use self::positions() so that we get the right ↵Bharat Mediratta
key/value pairs.
2008-12-26Added graphics::mark_all_dirty(). The watermark code now marks imagesBharat Mediratta
as dirty if the admin changes the watermark at all.
2008-12-26Add missing '=' causing <img> height not to get set.Bharat Mediratta
2008-12-26More watermark changes:Bharat Mediratta
Change admin/watermarks/upload -> admin/watermarks/add for consistency. Internationalize position text, store it as text in the database, display it to the admin. Make i18n strings consistent to reduce l10n load.
2008-12-26Remove an HTTP redirect that was breaking the Ajax interface.Bharat Mediratta
2008-12-26Simplify the watermark module. We can now upload, edit and delete oneBharat Mediratta
watermark. The UI is rough and we don't yet apply the watermark to images.. that's next.
2008-12-25Rework log and message helpers to be parallel, but separate.Bharat Mediratta
1) they now have their own matching severity constants 2) they both have convenience functions success(), info(), warning() and error() 3) they both have severity_class()
2008-12-25Add edit/delete links (they're just stubs now, but they open a dialog).Bharat Mediratta
Add active/position to Watermark_Model
2008-12-25Remove extra uniquifying text that Forge adds to uploaded files.Bharat Mediratta
2008-12-24Remove stray response:: (not yet time for this.. it's coming!)Bharat Mediratta
2008-12-24Normalize our Admin controllers so that functions always print outBharat Mediratta
their results, as opposed to having them return their view back upstream. This is a little more code in every controller, but it's much less magical and more consistent. Look up the active_theme and active_admin_theme inside the view itself, no need to do that in the controllers. This makes view initialization easier in the controllers.
2008-12-23Add very simple graphics toolkits.Bharat Mediratta
Track a set of rules in Graphics_Rule_Model which specify how we turn original images into thumbnails and resizes. There's one set of rules that applies to every image in the Gallery. Track the state of thumbs and resizes with a "dirty" bit. The new graphics helper manages the rules and can rebuild the thumbs and resizes for any images that are considered "dirty". Introduce the concept of an "album cover" which is an item that an album points to. We'll use that item as the source for the album's thumbnail/resize. Conflated with this change (sorry!) I also changed the Var table to use module_name instead of module_id. This may be marginally less efficient, but it's much easier to follow in the database.
2008-12-23Allow the site admin to upload watermark images. Can't do much with them yet.Bharat Mediratta
2008-12-23Step 1 of converting watermarks over to be an admin page.Bharat Mediratta
2008-12-23Add attribute to <script> element.Bharat Mediratta
2008-12-23Remove stray comma.Bharat Mediratta
2008-12-22Change the way that we track modules.Bharat Mediratta
Each module now has a "module.info" file that has information about the module, including the core. We can display the installed version, and the version in the code. Also take a first shot at a modules admin page.
2008-12-18Refactor site admin menu into a theme function and build the menus inBharat Mediratta
the various modules. In the process, rename xxx_menu::site_navigation() to just xxx_menu::site(). And add xxx_menu::admin(). The menus are the same as before, but I changed the HTML to be consistent with the way that we do it in the regular site, and this broke the superfish styles. I don't know how to fix this.. help me Chad!
2008-12-17Drag & Drop the watermark now works and so does the dropdown box. The ↵Tim Almdal
target image is divided into a 3x3 quadrant referenced as: northwest, north, northeast, west, center, east, southeast, south, southwest. Similiar to the imagemagik garvities. Currently the watermark is placed in the left top of the particular quadrant.
2008-12-16Fix preambleBharat Mediratta
2008-12-16Oops, remove the () on the parameter to $("#Dialog").ready(...) so we pass ↵Tim Almdal
the function, not the results of the function call.
2008-12-16Separate the handling of the dialog resizing into the watermark.js, so we ↵Tim Almdal
don't have to download the watermark dialog initialization with each request.
2008-12-161) change the selector for the the function to gDialogTim Almdal
2) Once the dialog is resized, center it
2008-12-161) Remove the load watermark from the scaffolding... use the menu optionTim Almdal
2) The set watermark dialog is now sizing properly. @todo is recenter in the window
2008-12-15Start of the dialog to specify the watermark placement. For convience, ↵Tim Almdal
using the imagemagik nomicalture regarding watermark locations (east, west, center, etc.) You can drag the watermark around but it doesn't stay in place. Need to figure out how to resize the dialog box and all of the supporting javascript
2008-12-15Fix the reference to jquery-ui.packed.jsTim Almdal
2008-12-15Change the label on the watermark form upload element, so the error message ↵Tim Almdal
is at least somewhat meaningful
2008-12-15Cleanup watermark.jsTim Almdal
2008-12-151) Move the deletion of the vars into module::delete helperTim Almdal
2) remove the watermark_add_form.html.php
2008-12-14Change the watermark module to use forge.Tim Almdal
Also the watermark file is now stored in varpath. and the location is stored in the module vars table
2008-12-14The start of the watermark module. It doesn't save the watermark at this ↵Tim Almdal
point. This is more of trying out the approach where Forge is not used for forms. Basic html and the Validation library.