<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;?php
 
-include(&quot;ImageResize.php&quot;);
+require_once(&quot;ImageResize.php&quot;);
 
 class ImageResizeController extends PluginController {
 </diff>
      <filename>ImageResizeController.php</filename>
    </modified>
    <modified>
      <diff>@@ -1,37 +1,56 @@
-IMAGE RESIZE
+Image Resize for Frog
+=====================
 
-Peter Gassner, 2008
-http://www.naehrstoff.ch/code/image-resize-for-frog
+This plugin has been tested with Frog version 0.9.4. It's homepage is:
 
-This plugin has been tested with Frog 0.9.2.
+`http://www.naehrstoff.ch/code/image-resize-for-frog`
 
 
-ABOUT
+About
+-----
 
 With the Image Resize plugin enabled, you can easily create thumbnails of your images.
 
 It was inspired by the Drupal Image Cache module. The image resize functions are taken from Drupal and adapted for Frog CMS.
 
 
-HOW TO USE
+How to use
+----------
 
 Just include images as you normally would, but instead of linking to the original file, append a dimension to the filename. This is best shown with an example.
 
 Where you would normally reference an image like this:
 
-* &lt;img src=&quot;public/images/flower.jpg&quot; alt=&quot;&quot; /&gt;
+`&lt;img src=&quot;public/images/flower.jpg&quot; alt=&quot;&quot; /&gt;`
 
 You can now add a dimension identifier directly before the file extension like this:
 
-* &lt;img src=&quot;public/images/flower.230x150.jpg&quot; alt=&quot;&quot; /&gt;
+`&lt;img src=&quot;public/images/flower.230x150.jpg&quot; alt=&quot;&quot; /&gt;`
 
 This tells the plugin to generate an image that fits within the width of 230 and the height of 150. It is possible to use only one parameter as an argument:
 
-* &lt;img src=&quot;public/images/flower.230.jpg&quot; alt=&quot;&quot; /&gt; (resize to width)
-* &lt;img src=&quot;public/images/flower.x150.jpg&quot; alt=&quot;&quot; /&gt; (resize to height)
+* `&lt;img src=&quot;public/images/flower.230.jpg&quot; alt=&quot;&quot; /&gt;` (resize to width)
+* `&lt;img src=&quot;public/images/flower.x150.jpg&quot; alt=&quot;&quot; /&gt;` (resize to height)
+
+Since version 1.1.0 you can also use a PHP-function to create the image tags:
+
+`&lt;?php echo image_resize_image_tag($path_to_file, $width = NULL, $height = NULL, $options = array()); ?&gt;`
 
 Of course the original file (flower.jpg) has to exist. The thumbnails will be created in the same folder as the original file.
 
 
+Contributors
+------------
+
+* Peter Gassner &lt;peter@naehrstoff.ch&gt;
+
 
+Changelog
+---------
 
+* 1.1.0 (November 12, 2008)
+	* Added globally accessible function `image_resize_image_tag()` to create image tags programmatically.
+	* Removed need to reload after thumbnail creation
+	* Updated for compatibility with Frog v0.9.4
+* 1.0.0 (February 3, 2008)
+	* First version for Frog v0.9.2
\ No newline at end of file</diff>
      <filename>README.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;?php
 
-include(&quot;ImageResize.php&quot;);
+require_once(&quot;ImageResize.php&quot;);
 
 Plugin::setInfos(array(
 	'id'          =&gt; 'image_resize',
@@ -80,6 +80,7 @@ function image_resize_scale($path) {
 /**
  * Helper function to create an image tag
  */
+ 
 function image_resize_image_tag($image_path, $width = NULL, $height = NULL, $options = array()) {
     if (!array_key_exists(&quot;alt&quot;, $options)) $options['alt'] = '';
     $html_options = &quot;&quot;;</diff>
      <filename>index.php</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
-&lt;h1&gt;Image Resize&lt;/h1&gt;
+&lt;h1&gt;Documentation&lt;/h1&gt;
+&lt;h2&gt;Image Resize&lt;/h2&gt;
 
 &lt;p&gt;With the &lt;em&gt;Image Resize&lt;/em&gt; plugin enabled, you can easily create thumbnails of your images.&lt;/p&gt;
 
@@ -42,19 +43,18 @@
     &lt;li&gt;&lt;code&gt;&amp;lt;img src=&quot;public/images/flower.&lt;strong&gt;x150&lt;/strong&gt;.jpg&quot; alt=&quot;&quot; /&amp;gt;&lt;/code&gt; (resize to height)&lt;/li&gt;
 &lt;/ul&gt;
 
-&lt;p&gt;Of course the original file (&lt;code&gt;flower.jpg&lt;/code&gt;) has to exist. The thumbnails will be created in the same folder as the original file.&lt;/p&gt;
+&lt;p&gt;Since version 1.1.0 you can also use a PHP-function to create the image tags:&lt;/p&gt;
 
+&lt;p&gt;&lt;code&gt;&amp;lt;?php echo image_resize_image_tag($path_to_file, $width = NULL, $height = NULL, $options = array()); ?&amp;gt;&lt;/code&gt;&lt;/p&gt;
 
-&lt;h3&gt;Important notes&lt;/h3&gt;
+&lt;p&gt;Of course the original file (&lt;code&gt;flower.jpg&lt;/code&gt;) has to exist. The thumbnails will be created in the same folder as the original file.&lt;/p&gt;
 
-&lt;p&gt;Because the images are generated on first access, they won't show up in the browser the first time a page is viewed. A reload lets the flowers blossom!&lt;/p&gt;
-&lt;p&gt;Also, because access to plugins is restricted to certain roles, an administrator has to visit a page with a thumbnail that has not yet been resized in order to make the magic happen. Ordinary visitors don't have the permissions to create thumbnails.&lt;/p&gt;
 
 &lt;h3&gt;How does it work?&lt;/h3&gt;
 
-&lt;p&gt;This module relies on some mod_rewrite magic: If the requested thumbnail exists, Apache knows this and delivers the file to the browser. If the file doesn't exist, Apache hands control over to Frog CMS.&lt;/p&gt;
+&lt;p&gt;This module relies on some &lt;code&gt;mod_rewrite&lt;/code&gt; magic: If the requested thumbnail exists, Apache knows this and delivers the file to the browser. If the file doesn't exist, Apache hands control over to Frog CMS.&lt;/p&gt;
 
-&lt;p&gt;Frog won't find the file either, so it sends a page-not-found message. This is the moment where the Image Resize plugin suddenly feels responsible. It checks whether an image without the dimension specifier exists (&lt;code&gt;flower.jpg&lt;/code&gt;) and converts it into a thumbnail with the requested name (&lt;code&gt;flower.230x150.jpg&lt;/code&gt;). The next time someone asks for that file it will be there!&lt;/p&gt;
+&lt;p&gt;Frog won't find the file either, so it sends a &lt;code&gt;page_not_found&lt;/code&gt; message. This is the moment where the Image Resize plugin suddenly feels responsible. It checks whether an image without the dimension specifier exists (&lt;code&gt;flower.jpg&lt;/code&gt;) and converts it into a thumbnail with the requested name (&lt;code&gt;flower.230x150.jpg&lt;/code&gt;). The next time someone asks for that file it will be there!&lt;/p&gt;
 
 &lt;h3&gt;About this plugin&lt;/h3&gt;
 
@@ -62,8 +62,8 @@
 
 &lt;p&gt;It was inspired by the Drupal &lt;a href=&quot;http://drupal.org/project/imagecache&quot;&gt;Image Cache&lt;/a&gt; module. The image resize functions are taken from &lt;a href=&quot;http://drupal.org/&quot;&gt;Drupal&lt;/a&gt; and adapted for Frog CMS.&lt;/p&gt;
 
-&lt;p&gt;The plugin can be installed via Subversion. In your Frog CMS plugin folder, execute the following command (all on one line):&lt;/p&gt;
+&lt;p&gt;The plugin can be installed via Github, where you can either download a ZIP-file or checkout the Git repository.&lt;/p&gt;
 
-&lt;p&gt;&lt;code&gt;svn co http://www.naehrstoff.ch/svn/frog_image_resize ./image_resize&lt;/code&gt;&lt;/p&gt;
+&lt;p&gt;&lt;a href=&quot;http://github.com/naehrstoff/image-resize-for-frog/tree/master&quot;&gt;Download the plugin&lt;/a&gt; from Github.&lt;/p&gt;
 
-&lt;p&gt;Patches are very welcome!&lt;/p&gt;
\ No newline at end of file
+&lt;p&gt;Patches and suggestions are very welcome!&lt;/p&gt;
\ No newline at end of file</diff>
      <filename>views/documentation.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a9b50c1b61aaed3f7a1827baa3c28a373f00f6f1</id>
    </parent>
  </parents>
  <author>
    <name>Peter Gassner</name>
    <email>peter@naehrstoff.ch</email>
  </author>
  <url>http://github.com/naehrstoff/image_resize/commit/5d3d4dfb303228ee7760ac3ab550261b771affd2</url>
  <id>5d3d4dfb303228ee7760ac3ab550261b771affd2</id>
  <committed-date>2008-11-12T07:54:31-08:00</committed-date>
  <authored-date>2008-11-12T07:54:31-08:00</authored-date>
  <message>Preparations for release.</message>
  <tree>1d950ae21bb9ee1bec99a2435e6f8df667af3ba8</tree>
  <committer>
    <name>Peter Gassner</name>
    <email>peter@naehrstoff.ch</email>
  </committer>
</commit>
