public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
* Added a source option to the Photo feather.
* HTML-safeize the image alt text.
vito (author)
Sat Nov 01 12:14:45 -0700 2008
commit  7e58aea2fd241084db3379498c884db58e2616c3
tree    d8a3f45f511c3febebfa6d9d2ecd5d301343e419
parent  51c92e172bdd9512014a9c45e6f7a9c10fb3c0d7
...
121
122
123
124
 
125
126
127
...
135
136
137
 
 
 
 
 
138
139
140
...
121
122
123
 
124
125
126
127
...
135
136
137
138
139
140
141
142
143
144
145
0
@@ -121,7 +121,7 @@
0
             $filename = $post->filename;
0
             $config = Config::current();
0
             $source = !empty($post->source) ? $post->source : uploaded($filename) ;
0
-            $alt = !empty($post->alt_text) ? $post->alt_text : $filename ;
0
+            $alt = !empty($post->alt_text) ? fix($post->alt_text, true) : $filename ;
0
             return '<a href="'.$source.'"><img src="'.$config->chyrp_url.'/includes/thumb.php?file=..'.$config->uploads_path.urlencode($filename).'&amp;max_width='.$max_width.'&amp;max_height='.$max_height.'&amp;'.$more_args.'" alt="'.$alt.'" /></a>';
0
         }
0
 
0
@@ -135,6 +135,11 @@
0
                                "type" => "text",
0
                                "value" => oneof(@$post->alt_text, ""));
0
 
0
+            $options[] = array("attr" => "option[source]",
0
+                               "label" => __("Source", "photo"),
0
+                               "type" => "text",
0
+                               "value" => oneof(@$post->source, ""));
0
+
0
             $options[] = array("attr" => "from_url",
0
                                "label" => __("From URL?", "photo"),
0
                                "type" => "text");

Comments