X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fconfig%2Fp2p-tube.php;h=045f54dfcd4cc3dad0bddd9d8e4376dc1b4e3770;hb=09add6ca11db3ca299f73fbc92f4f2d0aed1daa8;hp=ac030431ba35ac1400e5891e8bcae2f79fdd2ee1;hpb=0b134deb6f1108155973436e3de7296a76a2d660;p=living-lab-site.git diff --git a/application/config/p2p-tube.php b/application/config/p2p-tube.php index ac03043..045f54d 100644 --- a/application/config/p2p-tube.php +++ b/application/config/p2p-tube.php @@ -4,18 +4,64 @@ /* |-------------------------------------------------------------------------- -| Default Video File Extension +| Site Name +|-------------------------------------------------------------------------- +| +| Sets the name of the site. It can be used for example in pages title. +| +*/ +$config['site_name'] = 'P2P-Next UPB LivingLab'; + +/* +|-------------------------------------------------------------------------- +| Autoload Stylesheets +|-------------------------------------------------------------------------- +| +| Sets the default CSSs that are going to be automatically added on any HTML +| page generated with 'application/views/html_begin.php' view and +| HTML_head_params library. +| +| Do not include any path to the file! 'css/' is going to be used. +| +| Use "array()" for no default stylesheet. +| +*/ +$config['autoload_css'] = array('default.css', + 'jquery-ui.css'); + +/* +|-------------------------------------------------------------------------- +| Autoload Javascript +|-------------------------------------------------------------------------- +| +| Sets the default Javascripts that are going to be automatically added in any +| HTML page generated with 'application/views/html_begin.php' view and +| HTML_head_params library. +| +| Do not include any path to the file! 'js/' is going to be used. +| +| Use "array()" for no default javascript. +| +*/ +$config['autoload_js'] = array('jquery.js', + 'jquery-ui.js', + 'jquery.ui.nsinstall.js'); + +/* +|-------------------------------------------------------------------------- +| Default Video File Extension (OBSOLETE) |-------------------------------------------------------------------------- | | Sets the default video file extension, which must be set without '.' prefix. | This extension is going to be added to the `name` field from the DB in -| order to deduce the video file name if not stated otherwise. Possible values: +| order to deduce the video file name if not stated otherwise in the format. +| Possible values: | | ogv | ogg | */ -$config['default_video_ext'] = 'ogg'; // TODO: Change to 'ogv'! +$config['default_video_ext'] = 'ogv'; /* |-------------------------------------------------------------------------- @@ -30,5 +76,38 @@ $config['default_video_ext'] = 'ogg'; // TODO: Change to 'ogv'! | torrent | */ -$config['default_video_ext'] = 'tstream'; +$config['default_torrent_ext'] = 'tstream'; + +/* +|-------------------------------------------------------------------------- +| Categories +|-------------------------------------------------------------------------- +| +| An associative list with the video categories of the site. IDs are used +| in DB (for example in `videos` table), and values are string identifiers +| for categories. Category names localization can be made by concatenating +| 'ui_categ_' with the value in order to obtain a language key. +| IDs must be numeric and must preferably start from 1. +| +*/ +$config['categories'] = array(1 => 'movies', 2 => 'tech_talks', 3 => 'events', 4 => 'karaoke'); + +/* +|-------------------------------------------------------------------------- +| Videos per page +|-------------------------------------------------------------------------- +| +| The number of video icons shown per page (as in catalog/category). +| +*/ +$config['videos_per_page'] = 16; +/* +|-------------------------------------------------------------------------- +| Videos per row +|-------------------------------------------------------------------------- +| +| The number of video icons shown on a single line (as in home page). +| +*/ +$config['videos_per_row'] = 4;