summaryrefslogtreecommitdiff
path: root/templates/mime
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-11-09 08:53:52 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-11-09 08:53:52 +0000
commitebfc5ba06b1e3c33e2fbfc9a1d1312d032670372 (patch)
tree21a96050124bb0acc6a9759d948c0140339523d7 /templates/mime
parent5eb4aeebf2404ec73cbc2567cf5f74cdbb2d0e77 (diff)
downloadliberty-ebfc5ba06b1e3c33e2fbfc9a1d1312d032670372.tar.gz
liberty-ebfc5ba06b1e3c33e2fbfc9a1d1312d032670372.tar.bz2
liberty-ebfc5ba06b1e3c33e2fbfc9a1d1312d032670372.zip
clean up liberty plugin admin, move files to better dirs to keep things tidy, clean up {code} plugin and add UI for default code source.
Diffstat (limited to 'templates/mime')
-rw-r--r--templates/mime/audio/admin.tpl121
-rw-r--r--templates/mime/flv/admin.tpl162
-rw-r--r--templates/mime/image/admin.tpl45
3 files changed, 328 insertions, 0 deletions
diff --git a/templates/mime/audio/admin.tpl b/templates/mime/audio/admin.tpl
new file mode 100644
index 0000000..6dc719e
--- /dev/null
+++ b/templates/mime/audio/admin.tpl
@@ -0,0 +1,121 @@
+{strip}
+<div class="admin liberty">
+ <div class="header">
+ <h1>{tr}Flashvideo Plugin Settings{/tr}</h1>
+ </div>
+
+ <div class="body">
+ {form legend="Flashvideo specific settings"}
+ <p class="formhelp">
+ You can find some information relating to this plugin on the <a class="external" href="http://www.bitweaver.org/wiki/LibertyMime+Flv+Plugin">LibertyMime Flv Plugin page</a> at bitweaver.org.
+ </p>
+
+ {if !$gLibertySystem->isPluginActive( 'mimeaudio' )}
+ {formfeedback error="This plugins has not been enabled. All settings you change here will have no effect on uploaded videos unless you enable the plugin in the liberty plugins administration screen"}
+ {/if}
+
+ {formfeedback hash=$feedback}
+ <p class="formhelp">{tr}You can spcify the path to either ffmpeg or mplayer and lame. If you have all applications installed, we will first try to convert audio files using ffmpeg and if that didn't work, we'll use mplayer and lame.{/tr}</p>
+
+ <div class="row">
+ {formlabel label="Path to ffmpeg" for="mime_audio_ffmpeg_path"}
+ {forminput}
+ <input type='text' name="mime_audio_ffmpeg_path" id="mime_audio_ffmpeg_path" size="40" value="{$gBitSystem->getConfig('mime_audio_ffmpeg_path')|escape|default:$ffmpeg_path}" />
+ {formhelp note="If this path is not correct, please set the correct path to ffmpeg."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="ffmpeg mp3 param" for="ffmpeg_mp3_param"}
+ {forminput}
+ {html_options
+ options=$rates.mp3_param
+ values=$rates.mp3_param
+ name=ffmpeg_mp3_param
+ id=ffmpeg_mp3_param
+ selected=$gBitSystem->getConfig('ffmpeg_mp3_param')|default:libmp3lame}
+ {formhelp note="Due to differences in versions of ffmpeg you may need to change this setting. If ffmpeg and ffmpeg-php are installed, but uploaded audio is still not processed, try changing this param."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Path to mplayer" for="mime_audio_mplayer_path"}
+ {forminput}
+ <input type='text' name="mime_audio_mplayer_path" id="mime_audio_mplayer_path" size="40" value="{$gBitSystem->getConfig('mime_audio_mplayer_path')|escape|default:$mplayer_path}" />
+ {formhelp note="If this path is not correct, please set the correct path to mplayer."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Path to lame" for="mime_audio_lame_path"}
+ {forminput}
+ <input type='text' name="mime_audio_lame_path" id="mime_audio_lame_path" size="40" value="{$gBitSystem->getConfig('mime_audio_lame_path')|escape|default:$lame_path}" />
+ {formhelp note="If this path is not correct, please set the correct path to lame."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Lame options" for="mime_audio_lame_options"}
+ {forminput}
+ <input type='text' name="mime_audio_lame_options" id="mime_audio_lame_options" size="40" value="{$gBitSystem->getConfig('mime_audio_lame_options')|escape|default:$lame_options}" />
+ {formhelp note="If you know your way around lame, you can insert your own options here to override the default settings."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Audio sample rate" for="mime_audio_samplerate"}
+ {forminput}
+ {html_options
+ options=$rates.audio_samplerate
+ values=$rates.audio_samplerate
+ name=mime_audio_samplerate
+ id=mime_audio_samplerate
+ selected=$gBitSystem->getConfig('mime_audio_samplerate')|default:22050} Hz
+ {formhelp note="Set the audio sample rate. The higher the bitrate the higher the quality but also the larger the file."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Audio bitrate" for="mime_audio_bitrate"}
+ {forminput}
+ {html_options
+ options=$rates.audio_bitrate
+ values=$rates.audio_bitrate
+ name=mime_audio_bitrate
+ id=mime_audio_bitrate
+ selected=$gBitSystem->getConfig('mime_audio_bitrate')|default:96000} kbits/s
+ {formhelp note="Set the audio bitrate. The higher the bitrate the higher the quality but also the larger the file."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Force encode" for="mime_audio_force_encode"}
+ {forminput}
+ <input type='checkbox' name="mime_audio_force_encode" id="mime_audio_force_encode" value="y" {if $gBitSystem->isFeatureActive('mime_audio_force_encode')}checked="checked"{/if} />
+ {formhelp note="When mp3 files are uploaded they can be used directly for streaming. If you enable this, the uploaded mp3 will be re-encoded usually reducing filesize for streaming. The originally uploaded file will still be available for download."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Foreground Colour" for="mime_audio_frontcolor"}
+ {forminput}
+ <input type='text' name="mime_audio_frontcolor" id="mime_audio_frontcolor" size="10" value="{$gBitSystem->getConfig('mime_audio_frontcolor')|default:"FFFFFF"}" />
+ {formhelp note="Foreground colour of the progress bar."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Background Colour" for="mime_audio_backcolor"}
+ {forminput}
+ <input type='text' name="mime_audio_backcolor" id="mime_audio_backcolor" size="10" value="{$gBitSystem->getConfig('mime_audio_backcolor')|default:"000000"}" />
+ {formhelp note="Background colour of the progress bar."}
+ {/forminput}
+ </div>
+
+ <div class="row submit">
+ <input type="submit" name="plugin_settings" value="{tr}Save Plugin Settings{/tr}" />
+ </div>
+ {/form}
+ </div><!-- end .body -->
+</div><!-- end .liberty -->
+{/strip}
diff --git a/templates/mime/flv/admin.tpl b/templates/mime/flv/admin.tpl
new file mode 100644
index 0000000..9f72ae0
--- /dev/null
+++ b/templates/mime/flv/admin.tpl
@@ -0,0 +1,162 @@
+{strip}
+<div class="admin liberty">
+ <div class="header">
+ <h1>{tr}Flashvideo Plugin Settings{/tr}</h1>
+ </div>
+
+ <div class="body">
+ {form legend="Flashvideo specific settings"}
+ <p class="formhelp">
+ You can find some information relating to this plugin on the <a class="external" href="http://www.bitweaver.org/wiki/LibertyMime+Flv+Plugin">LibertyMime Flv Plugin page</a> at bitweaver.org.
+ </p>
+
+ {if $ffmpeg_extension}
+ <p class="success">
+ {biticon iname="dialog-ok" iexplain="OK"} {tr}The <a href="http://ffmpeg-php.sourceforge.net/">ffmpeg-php</a> extension is available.{/tr}
+ </p>
+ {else}
+ <p class="warning">
+ {biticon iname="dialog-warning" iexplain="Warining"} {tr}If possible, please install the <a href="http://ffmpeg-php.sourceforge.net/">ffmpeg-php</a> php extension. This plugin will work without the extension but many features will not work well such as video recognition and mp4 uploads.{/tr}
+ </p>
+ {/if}
+
+ {if !$gLibertySystem->isPluginActive( 'mimeflv' )}
+ {formfeedback error="This plugins has not been enabled. All settings you change here will have no effect on uploaded videos unless you enable the plugin in the liberty plugins administration screen"}
+ {/if}
+
+ {formfeedback hash=$feedback}
+ <div class="row">
+ {formlabel label="Path to ffmpeg" for="mime_flv_ffmpeg_path"}
+ {forminput}
+ <input type='text' name="mime_flv_ffmpeg_path" id="mime_flv_ffmpeg_path" size="40" value="{$gBitSystem->getConfig('mime_flv_ffmpeg_path')|escape|default:$ffmpeg_path}" />
+ {formhelp note="If this path is not correct, please set the correct path to ffmpeg."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Video codec" for="mime_flv_video_codec"}
+ {forminput}
+ {html_options
+ options=$rates.video_codec
+ values=$rates.video_codec
+ name=mime_flv_video_codec
+ id=mime_flv_video_codec
+ selected=$gBitSystem->getConfig('mime_flv_video_codec')|default:flv}
+ {formhelp note="You can choose between codecs you wan to use to encode the uploaded video with. We recommend flashvideo if you don't require high quality videos.
+ <dl>
+ <dt>Flashvideo</dt><dd>Medium filesize, medium quality, fast encoding.</dd>
+ <dt>MP4/AVC</dt><dd>Small filesize, high quality, slow encoding.</dd>
+ <dt>MP4/AVC - 2 passes</dt><dd>Small filesize, very high quality, very slow encoding (this is likey to take at least as long as the video length).</dd>
+ <dl>."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="ffmpeg mp3 param" for="ffmpeg_mp3_param"}
+ {forminput}
+ {html_options
+ options=$rates.mp3_param
+ values=$rates.mp3_param
+ name=ffmpeg_mp3_param
+ id=ffmpeg_mp3_param
+ selected=$gBitSystem->getConfig('ffmpeg_mp3_param')|default:libmp3lame}
+ {formhelp note="Due to differences in versions of ffmpeg you may need to change this setting. If ffmpeg and ffmpeg-php are installed, but uploaded videos are still not processed, try changing this param."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Force encode" for="mime_flv_force_encode"}
+ {forminput}
+ <input type='checkbox' name="mime_flv_force_encode" id="mime_flv_force_encode" value="y" {if $gBitSystem->isFeatureActive('mime_flv_force_encode')}checked="checked"{/if} />
+ {formhelp note="The inline player supports videos encoded using the flv or h264 codec with mp3 audio. When users upload such videos, we can use those directly for streaming instead of re-encoding them. In some cases, the uploaded files might be excessively large for streaming and re-encoding takes care of that (requires ffmpeg-php)."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Video bitrate" for="mime_flv_video_bitrate"}
+ {forminput}
+ {html_options
+ options=$rates.video_bitrate
+ values=$rates.video_bitrate
+ name=mime_flv_video_bitrate
+ id=mime_flv_video_bitrate
+ selected=$gBitSystem->getConfig('mime_flv_video_bitrate')|default:200000} kbits/s
+ {formhelp note="Set the video bitrate. The higher the bitrate the higher the quality but also the larger the file."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Video width" for="mime_flv_width"}
+ {forminput}
+ {html_options
+ options=$rates.video_width
+ values=$rates.video_width
+ name=mime_flv_width
+ id=mime_flv_width
+ selected=$gBitSystem->getConfig('mime_flv_width')|default:320} pixel
+ {formhelp note="Set the video width. We recommend 320 pixels. Height of the video will be adjusted automagically."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Audio sample rate" for="mime_flv_audio_samplerate"}
+ {forminput}
+ {html_options
+ options=$rates.audio_samplerate
+ values=$rates.audio_samplerate
+ name=mime_flv_audio_samplerate
+ id=mime_flv_audio_samplerate
+ selected=$gBitSystem->getConfig('mime_flv_audio_samplerate')|default:22050} Hz
+ {formhelp note="Set the audio sample rate. The higher the bitrate the higher the quality but also the larger the file."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Audio bitrate" for="mime_flv_audio_bitrate"}
+ {forminput}
+ {html_options
+ options=$rates.audio_bitrate
+ values=$rates.audio_bitrate
+ name=mime_flv_audio_bitrate
+ id=mime_flv_audio_bitrate
+ selected=$gBitSystem->getConfig('mime_flv_audio_bitrate')|default:32000} kbits/s
+ {formhelp note="Set the audio bitrate. The higher the bitrate the higher the quality but also the larger the file."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Default displayed size" for="mime_flv_default_size"}
+ {forminput}
+ {html_options
+ options=$rates.display_size
+ values=$rates.display_size
+ name=mime_flv_default_size
+ id=mime_flv_default_size
+ selected=$gBitSystem->getConfig('mime_flv_default_size')}
+ {formhelp note="If you are encoding small versions of the videos you can display larger versions. This will reduce video quality but make the encoded video smaller."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Foreground Colour" for="mime_flv_frontcolor"}
+ {forminput}
+ <input type='text' name="mime_flv_frontcolor" id="mime_flv_frontcolor" size="10" value="{$gBitSystem->getConfig('mime_flv_frontcolor')|default:"FFFFFF"}" />
+ {formhelp note="Foreground colour of the progress bar."}
+ {/forminput}
+ </div>
+
+ <div class="row">
+ {formlabel label="Background Colour" for="mime_flv_backcolor"}
+ {forminput}
+ <input type='text' name="mime_flv_backcolor" id="mime_flv_backcolor" size="10" value="{$gBitSystem->getConfig('mime_flv_backcolor')|default:"000000"}" />
+ {formhelp note="Background colour of the progress bar."}
+ {/forminput}
+ </div>
+
+ <div class="row submit">
+ <input type="submit" name="plugin_settings" value="{tr}Save Plugin Settings{/tr}" />
+ </div>
+ {/form}
+ </div><!-- end .body -->
+</div><!-- end .liberty -->
+{/strip}
diff --git a/templates/mime/image/admin.tpl b/templates/mime/image/admin.tpl
new file mode 100644
index 0000000..283e5c6
--- /dev/null
+++ b/templates/mime/image/admin.tpl
@@ -0,0 +1,45 @@
+{* $Header: /cvsroot/bitweaver/_bit_liberty/templates/mime/image/admin.tpl,v 1.1 2008/11/09 08:53:52 squareing Exp $ *}
+{strip}
+<div class="admin liberty">
+ <div class="header">
+ <h1>{tr}Image Plugin Settings{/tr}</h1>
+ </div>
+
+ <div class="body">
+ {form legend="Image specific settings"}
+ {foreach from=$settings key=feature item=output}
+ {if $feature == 'mime_image_panoramas' && $image_processor_warning}
+ {formfeedback warning="This feature is only available when using the magickwand image processor."}
+ {/if}
+ <div class="row">
+ {formlabel label=`$output.label` for=$feature}
+ {forminput}
+ {if $output.type == 'checkbox'}
+ {if $feature == 'mime_image_panoramas' && $image_processor_warning}
+ {html_checkboxes name="$feature" values="y" labels=false id=$feature disabled="disabled"}
+ {else}
+ {html_checkboxes name="$feature" values="y" checked=$gBitSystem->getConfig($feature) labels=false id=$feature}
+ {/if}
+ {else}
+ <input type='text' name="{$feature}" id="{$feature}" size="{if $output.type == 'text'}40{else}5{/if}" value="{$gBitSystem->getConfig($feature)|escape}" /> {$output.unit}
+ {/if}
+ {formhelp note=`$output.note` page=`$output.page`}
+ {/forminput}
+ </div>
+ {/foreach}
+
+ <div class="row">
+ {formlabel label="Panorama Size" for="mime_image_panorama_width"}
+ {forminput}
+ {html_options values=$panWidth options=$panWidth name="mime_image_panorama_width" id="mime_image_panorama_width" selected=$gBitSystem->getConfig('mime_image_panorama_width')|default:3000} {tr}pixels{/tr}
+ {formhelp note="Set the maximum panorama image size. The larger the image size, the better it will be for zooming but it will also take longer to download the image for viewing."}
+ {/forminput}
+ </div>
+
+ <div class="row submit">
+ <input type="submit" name="settings_store" value="{tr}Change preferences{/tr}" />
+ </div>
+ {/form}
+ </div><!-- end .body -->
+</div><!-- end .liberty -->
+{/strip}