Changeset 209618
- Timestamp:
- 02/23/2010 10:34:35 PM (16 years ago)
- Location:
- highslide-4-wordpress-reloaded/trunk
- Files:
-
- 4 added
- 3 edited
-
functions.hs4wp.php (modified) (2 diffs)
-
highslide-4-wordpress-reloaded.php (modified) (1 diff)
-
img/media-button-expander.png (added)
-
img/mg.png (added)
-
media-button-expander.php (added)
-
options.css (added)
-
options.hs4wp.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
highslide-4-wordpress-reloaded/trunk/functions.hs4wp.php
r209146 r209618 248 248 </ul> 249 249 </div>'; 250 // Flash handler 251 if(get_option('hs4wp_handle_swf') == 'on') { 252 $extension = strtolower(substr($str,strlen($str)-4)); 253 if($extension == ".swf") { 254 if($width < 100) $width = "500"; 255 if($height < 100) $height = "370"; 256 // Flash size reduce by x percent 257 $F_Width = $width; 258 $F_Height = floor($height/100*88); 259 $swf = $str; 260 $str = ""; 261 $str .= '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="swf_'.$contentID.'" width="'.$F_Width.'" height="'.$F_Height.'">'."\n"; 262 $str .= '<param name="movie" value="'.$swf.'" />'."\n"; 263 $str .= '<param name="wmode" value="opaque" />'."\n"; 264 $str .= '<!--[if !IE]>-->'."\n"; 265 $str .= '<object type="application/x-shockwave-flash" data="'.$swf.'" width="'.$F_Width.'" height="'.$F_Height.'" wmode="opaque">'."\n"; 266 $str .= '<!--<![endif]-->'."\n"; 267 $str .= 'Flash plugin is required to view this object.'."\n"; 268 $str .= '<!--[if !IE]>-->'."\n"; 269 $str .= '</object>'."\n"; 270 $str .= '<!--<![endif]-->'."\n"; 271 $str .= '</object> '."\n"; 272 } 273 } 274 250 275 // HTML Box Body 251 276 $OUT .= '<div class="highslide-body">'.$str.'</div>'; … … 318 343 return $OUT; 319 344 }//EoFu:hs4wp_selector 345 346 347 348 349 function hs4wp_admin_init() 350 { 351 GLOBAL $hs4wp_plugin_uri; 352 $hs4wpOptionsCSS = $hs4wp_plugin_uri."/options.css"; 353 if (is_ssl()) $hs4wpOptionsCSS = preg_replace( '/^http:\/\//', 'https://', $hs4wpOptionsCSS ); 354 wp_register_style('hs4wpOptionsCSS', $hs4wpOptionsCSS); 355 wp_enqueue_style( 'hs4wpOptionsCSS'); 356 } 357 358 function hs4wp_add_media_button() 359 { 360 GLOBAL $hs4wp_plugin_uri; 361 $url = $hs4wp_plugin_uri.'media-button-expander.php?tab=add&TB_iframe=true&height=300&width=640'; 362 if (is_ssl()) $url = preg_replace( '/^http:\/\//', 'https://', $url ); 363 echo '<a href="'.$url.'" class="thickbox" title="'.__('Add Highslide HTML Expander','highslide-4-wordpress').'"><img src="'.$hs4wp_plugin_uri.'/img/media-button-expander.png" alt="'.__('Add Highslide HTML Expander','highslide-4-wordpress').'"></a>'; 364 } -
highslide-4-wordpress-reloaded/trunk/highslide-4-wordpress-reloaded.php
r209146 r209618 37 37 else add_action('wp_footer', 'hs4wp_prepare_footer'); 38 38 } 39 add_action('admin_init', 'hs4wp_admin_init'); 39 40 add_action('admin_menu', 'hs4wp_config_page'); 41 if(get_option('hs4wp_media_icon') != "on") add_action('media_buttons', 'hs4wp_add_media_button', 20); -
highslide-4-wordpress-reloaded/trunk/options.hs4wp.php
r209146 r209618 6 6 { 7 7 GLOBAL $hs4wp_plugin_uri,$hs4wp_plugin_path; 8 8 9 9 10 // If form was submitted … … 20 21 $ext_icon =(!isset($_POST['ext_icon'])? '': $_POST['ext_icon']); 21 22 $ptag_workaround =(!isset($_POST['ptag_workaround'])? '': $_POST['ptag_workaround']); 23 $media_icon =(!isset($_POST['media_icon'])? '': $_POST['media_icon']); 24 $handle_swf =(!isset($_POST['handle_swf'])? '': $_POST['handle_swf']); 22 25 23 26 $input1 =(!isset($_POST['input1'])? 5: intval($_POST['input1'])); … … 37 40 update_option('hs4wp_ext_icon', $ext_icon); 38 41 update_option('hs4wp_ptag_workaround', $ptag_workaround); 42 update_option('hs4wp_media_icon', $media_icon); 43 update_option('hs4wp_handle_swf', $handle_swf); 44 39 45 40 46 // Input … … 63 69 $ext_icon =( get_option('hs4wp_ext_icon')=='on' ) ? "checked":""; 64 70 $ptag_workaround =( get_option('hs4wp_ptag_workaround')=='on' ) ? "checked":""; 71 $media_icon =( get_option('hs4wp_media_icon')=='on' ) ? "checked":""; 72 $handle_swf =( get_option('hs4wp_handle_swf')=='on' ) ? "checked":""; 65 73 66 74 $slideshow_delay = get_option('hs4wp_slideshow_delay'); … … 108 116 109 117 echo <<<END 118 <div id="hs4wOptions"> 110 119 <div class="wrap" style="max-width:900px !important;"> 120 <div id="icon-options-general" class="icon32"><br /></div> 111 121 <h2>Highslide 4 Wordpress</h2> 112 122 <div id="poststuff" style="margin-top:10px;"> 113 <div id="sideblock" style="float:right;width:220px;"> 114 <h2>Information</h2> 115 <div id="dbx-content" style="text-decoration:none;border-left:1px solid silver;padding-left:10px;"> 116 <img src="$imgpath/web.png"><a href="http://solariz.de/highslide4wordpress/" target="_blank" style="text-decoration:none;"> Plugin Homepage</a><br /><br /> 117 <img src="$imgpath/help.png"><a href="http://solariz.de" target="_blank" style="text-decoration:none;"> Plugin Manual</a><br /><br /> 118 <img src="$imgpath/forum.png"><a href="http://solariz.de/forum?wpforumaction=viewforum&f=6.0" target="_blank" style="text-decoration:none;"> Plugin Forum</a><br /><br /> 119 <img src="$imgpath/donate.png"><a href="http://solariz.de/donate" target="_blank" style="text-decoration:none;"> Donate</a><br /><br /> 120 <img src="$imgpath/star.png"><a href="http://wordpress.org/extend/plugins/highslide-4-wordpress-reloaded/" target="_blank" style="text-decoration:none;"> Rate this plugin</a><br /><br /> 121 </div> 123 <div id="sideblock"> 124 <h3>Information</h3> 125 <ul class="infoBox"> 126 127 <img src="$imgpath/web.png"><a href="http://solariz.de/highslide4wordpress/" target="_blank" style="text-decoration:none;"> Plugin Homepage</a><br /><br /> 128 <img src="$imgpath/help.png"><a href="http://solariz.de" target="_blank" style="text-decoration:none;"> Plugin Manual</a><br /><br /> 129 <img src="$imgpath/forum.png"><a href="http://solariz.de/forum?wpforumaction=viewforum&f=6.0" target="_blank" style="text-decoration:none;"> Plugin Forum</a><br /><br /> 130 <img src="$imgpath/donate.png"><a href="http://solariz.de/donate" target="_blank" style="text-decoration:none;"> Donate</a><br /><br /> 131 <img src="$imgpath/star.png"><a href="http://wordpress.org/extend/plugins/highslide-4-wordpress-reloaded/" target="_blank" style="text-decoration:none;"> Rate this plugin</a><br /><br /> 132 </ul> 133 <h3>The Author</h3> 134 <div class="infoBox"> 135 <small><img src="$imgpath/mg.png" style="float:right; margin-right: -16px; padding: 2px;">Just in some short words. I doing "web stuff" since my early youth, I had the possibility to accompany the development of the Internet since the early 90's. Currently I'm living in Bochum, Germany. You can find more information on my <a href="http://solariz.de">blog</a>.</small> 136 </div> 122 137 </div> 123 138 <div id="mainblock" style="max-width:650px"> … … 125 140 <form name="sfiform" action="$action_url" method="post"> 126 141 <input type="hidden" name="submitted" value="1" /> 127 <h2>About</h2> 128 <p>This Plugin automatically insert Highslide Script to your Blog without the need of any further configuration or Shorttags or editing of old posts. As soon the Plugin is activated all existing thumped images using Highslide to expand. But this isn`t all, the Plugin offers several Options to configure the look and behaviour of Highslide in your Blog. For Advanced users there is also the option to specify own HS Parameters at the Option page.</p> 129 <h2>License</h2> 130 <p><img src="$imgpath/somerights20.png" align=right>This Plugin contains major parts of "Highslide JS" by Torstein Honsi and is licensed under a <a href="http://creativecommons.org/licenses/by-nc/2.5/" target="_blank">Creative Commons Attribution-NonCommercial 2.5 License</a>. This means you need the permission of the Plugin Author to use this Plugin on commercial websites. Also you need to obtain a Commercial Highslide License from <a href="http://highslide.com/#licence" target="_blank">highslide.com</a> !</p> 131 <p><b>What is a commercial website?</b><br/>A commercial website is a website which purpose is generating revenue or cash flow of any type, and that isn't under a non-profit organization. So if you're selling a product, selling advertisement, selling a service or just marketing a commercial business, your site is commercial. A company website is also commercial even if it doesn't sell anything, as it's purpose is to front a commercial company.</p> 132 <div> 133 <input id="check0" type="checkbox" name="lic_agreement" $lic_agreement /> 134 <label for="check0" style="$lic_style">I Agree to the License Agreement</label> 135 </div> 136 <h2>Like it ?</h2> 137 <div> 138 As the most Plugin writers I spent my sparetime to writing those plugins. I do not demand money for non commecial usage but if you like it you can do me a favour. Please <a href="http://wordpress.org/extend/plugins/highslide-4-wordpress-reloaded/">rate the Plugin</a> at the official wordpress extension archive. If you want to donate something you find a info link on the right.</div> 139 <h2>Options</h2> 142 <h3>About</h3> 143 <ul> 144 <p>This Plugin automatically insert Highslide Script to your Blog without the need of any further configuration or Shorttags or editing of old posts. As soon the Plugin is activated all existing thumped images using Highslide to expand. But this isn`t all, the Plugin offers several Options to configure the look and behaviour of Highslide in your Blog. For Advanced users there is also the option to specify own HS Parameters at the Option page.</p> 145 </ul> 146 <h3>License <img src="$imgpath/somerights20.png"></h3> 147 <ul> 148 <p>This Plugin contains major parts of "Highslide JS" by Torstein Honsi and is licensed under a <a href="http://creativecommons.org/licenses/by-nc/2.5/" target="_blank">Creative Commons Attribution-NonCommercial 2.5 License</a>. This means you need the permission of the Plugin Author to use this Plugin on commercial websites. Also you need to obtain a Commercial Highslide License from <a href="http://highslide.com/#licence" target="_blank">highslide.com</a> !</p> 149 <br/> 150 <p><b>What is a commercial website?</b><br/>A commercial website is a website which purpose is generating revenue or cash flow of any type, and that isn't under a non-profit organization. So if you're selling a product, selling advertisement, selling a service or just marketing a commercial business, your site is commercial. A company website is also commercial even if it doesn't sell anything, as it's purpose is to front a commercial company.</p> 151 <br/> 152 <div> 153 <input id="check0" type="checkbox" name="lic_agreement" $lic_agreement /> 154 <label for="check0" style="$lic_style">I Agree to the License Agreement</label> 155 </div> 156 </ul> 157 <h3>Like it ?</h3> 158 <ul> 159 <div> 160 As the most Plugin writers I spent my sparetime to writing those plugins. I do not demand money for non commecial usage but if you like it you can do me a favour. Please <a href="http://wordpress.org/extend/plugins/highslide-4-wordpress-reloaded/">rate the Plugin</a> at the official wordpress extension archive. If you want to donate something you find a info link on the right. 161 </div> 162 </ul> 163 <h3>Options<span>[<a href="" target="hs4wpHelp">help</a>]</span></h3> 164 <ul> 140 165 <div> 141 166 <input id="check1" type="checkbox" name="coralize" $coralize /> … … 162 187 <label for="check6">Add ext. Icon to [highslide]*[/highslide] Links ?</label> 163 188 </div> 164 189 <div> 190 <input id="check7" type="checkbox" name="handle_swf" $handle_swf /> 191 <label for="check7">Handle SWF files auto. as Object in HTML Expander ?</label> 192 </div> 165 193 <br/> 166 <div> 167 <label for="input1">Slideshow Delay in seconds ?</label> 168 <input id="input1" type="text" size="2" name="input1" value="$slideshow_delay" /> 169 </div> 170 <div> 171 <label for="select1">HS Appearance</label> 172 <select id="select1" name="select1"> 173 $hs4wp_select1 174 </select> 175 </div> 176 <div> 177 <label for="select2">Background dimming opacity</label> 178 <select id="select2" name="select2"> 179 $hs4wp_select2 180 </select> 181 </div> 182 <div> 183 <label for="select3">Caption Source</label> 184 <select id="select3" name="select3"> 185 $hs4wp_select3 186 </select> 187 </div> 188 <h2>Advanced Options</h2> 189 In this Textbox you can enter Advanced Highslide-JS Parameter / Definitions. e.g. 190 <b>hs.dimmingDuration = 600;</b> for Smooth Background Dimming. You can find a List of all possible custom Paramteres 194 <!-- left aligned input --> 195 <table> 196 <tr> 197 <td><label for="input1">Slideshow delay: </label></td> 198 <td><input id="input1" type="text" size="2" name="input1" value="$slideshow_delay" /> seconds</td> 199 </tr> 200 <tr> 201 <td><label for="select1">HS appearance: </label></td> 202 <td><select id="select1" name="select1">$hs4wp_select1</select></td> 203 </tr> 204 <tr> 205 <td><label for="select2">Dimming opacity: </label></td> 206 <td><select id="select2" name="select2">$hs4wp_select2</select></td> 207 </tr> 208 <tr> 209 <td><label for="select3">Caption source: </label></td> 210 <td><select id="select3" name="select3">$hs4wp_select3</select></td> 211 </tr> 212 </table> 213 </ul> 214 <div class="submit"><input type="submit" name="Submit" value="Save options" /></div> 215 <h3>Advanced Options<span>[<a href="" target="hs4wpHelp">help</a>]</span></h3> 216 <ul> 217 <div> 218 <input id="Acheck1" type="checkbox" name="only_use_header" $only_use_header /> 219 <label for="Acheck1">Force Include of JS Code into Page Header instead of Footer.<br/> 220 <small>Some non API conform Themes require JS loads in the header</small></label> 221 </div> 222 <br/> 223 <div> 224 <input id="Acheck2" type="checkbox" name="ptag_workaround" $ptag_workaround /> 225 <label for="Acheck2">Enable </p> workaround.<br/> 226 <small>If you use lists with multiple [highslide] expander and notice that the breaks between the first expander and second expander are wrong please enable this workaroung. Full explanation <a href="http://solariz.de/forum?wpforumaction=viewtopic&t=132.00">here</a>.</small></label> 227 </div> 228 <br/> 229 <div> 230 <input id="Acheck3" type="checkbox" name="media_icon" $media_icon /> 231 <label for="Acheck3">Disable the Highslide Media Icon.<br/> 232 <small>Since 1.14 this Plugin insert a small Media Icon into the WP-WYSIWYG Editor, by checking this you can disable this icon.</small></label> 233 </div> 234 <hr> 235 <div> 236 <label for="input2">Use custom <b>highslide.css</b> ?</label><br/> 237 <input id="input2" type="text" size="59" name="input2" value="$custom_css" /><br/> 238 <small>To avoid own CSS changes to be overwritten on Pluginupdate you can specify your own CSS file, please enter full URL. Leave empty for default. e.g.: http://mydomain.com/myhighslide.css</small> 239 </div> 240 <hr> 241 <b>Custom Highslide Config:</b><br/> 242 In this Textbox you can enter Advanced Highslide-JS Parameter. You can find a List of all possible custom Paramteres 191 243 <a href="http://highslide.com/ref/" target="_blank">here</a>. Each line one Statement.<br/> 244 <textarea id="textarea1" "name="textarea1" cols="60" rows="5">$textarea1</textarea><br/> 192 245 <span style="color:red">Attention!</span> Insert only valid JS code, else it can break the plugin functionality. 193 246 If you have no clue what HS Parameters are just leave this textbox empty. 194 <textarea name="textarea1" cols="75" rows="5">$textarea1</textarea> 195 <br/><br/> 196 <div> 197 <input id="check5" type="checkbox" name="only_use_header" $only_use_header /> 198 <label for="check5">Force Include of JS Code into Page Header instead of Footer.<br/> 199 <small>Some non API conform Themes require JS loads in the header</small></label> 200 </div> 201 <br/> 202 <div> 203 <input id="check6" type="checkbox" name="ptag_workaround" $ptag_workaround /> 204 <label for="check6">Enable </p> workaround.<br/> 205 <small>If you use lists with multiple [highslide] expander and notice that the breaks between the first expander and second expander are wrong please enable this workaroung. Full explanation <a href="http://solariz.de/forum?wpforumaction=viewtopic&t=132.00">here</a>.</small></label> 206 </div> 207 <br/> 208 <div> 209 <label for="input2">Use custom <b>highslide.css</b> ?</label> 210 <input id="input2" type="text" size="59" name="input2" value="$custom_css" /><br/> 211 <small>To avoid own CSS changes to be overwritten on Pluginupdate you can specify your own CSS file, please enter full URL. Leave empty for default. e.g.: http://mydomain.com/myhighslide.css</small> 212 </div> 213 <div class="submit"><input type="submit" name="Submit" value="Update options" /></div> 247 </ul> 248 <div class="submit"><input type="submit" name="Submit" value="Save options" /></div> 214 249 </form> 215 250 </div> … … 217 252 </div> 218 253 </div> 254 </div> 219 255 END; 220 256 }
Note: See TracChangeset
for help on using the changeset viewer.