summaryrefslogtreecommitdiff
path: root/modules/watermark/helpers
AgeCommit message (Collapse)Author
2013-01-31Drop the requirement to have the install() function set the moduleBharat Mediratta
version. It's redundant. Fixes #1985.
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-07-20Localize the error strings in watermark::get_add_form(). Fix for ticket #1230.Bharat Mediratta
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-01-31Update the install version to 2 to match module.info.Bharat Mediratta
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-27Change gallery installer to do a direct update to the database, preppending ↵Tim Almdal
gallery_graphics:: to each of the defined rules operations
2009-09-27This path requires the upgrader to be run and applies the following changes:Tim Almdal
* moves the composite method back into core * requires that the operation be fully qualified i.e. gallery_graphics::resize * caches the graphics rules on each request
2009-09-24Refactor the graphic rules processing to accomplish 2 goals: First separate ↵Tim Almdal
the grapics library from module supplied rules and secondly, allow for modules to provide new processing rules callbacks. graphics::generate will now look for <module_name>_graphics::<rule> methods.
2009-08-27Remove 'ENGINE=InnoDB' specification from tables that we create. UseBharat Mediratta
the system's default table specification. Fixes ticket #597.
2009-07-28Use events to generate menus, instead of having xxx_menu helpers.Bharat Mediratta
This is the first step towards having a simple, lightweight and unified API for module interaction.
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Set the default transparency to 1 (no transparency at all)Bharat Mediratta
2009-05-13Fix the logical inversion of the transparency field. Now, 100% is maxBharat Mediratta
transparency and 1% is min transparency (no transparency at all). Fixes ticket #204.
2009-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27This implement table prefix for the watermark notification modules (Ticket #68)Tim Almdal
2009-01-25Undo the adding underscores to the id on forge generated formsTim Almdal
2009-01-24Supply a form id on all forms. This id can be used by modules otherTim Almdal
than the originating module to provide additional functionality to the form.
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.
2008-12-30Make some columns smaller so that multi-column keys don't exceed 1024Bharat Mediratta
bytes on some systems.
2008-12-29Add transparency supportBharat Mediratta
2008-12-26Move Watermarks under Content in the Site Admin menu.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-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-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-25Add edit/delete links (they're just stubs now, but they open a dialog).Bharat Mediratta
Add active/position to Watermark_Model
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-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-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-15Change the label on the watermark form upload element, so the error message ↵Tim Almdal
is at least somewhat meaningful
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.