You are here

class SimpleblackTemplate in MediaFront 6.2

Same name and namespace in other branches
  1. 6 players/osmplayer/player/templates/simpleblack/template.php \SimpleblackTemplate
  2. 7 players/osmplayer/player/templates/simpleblack/template.php \SimpleblackTemplate

Copyright (c) 2010 Alethia Inc, http://www.alethia-inc.com Developed by Travis Tidwell | travist at alethia-inc.com

License: GPL version 3.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Hierarchy

Expanded class hierarchy of SimpleblackTemplate

File

players/osmplayer/player/templates/simpleblack/template.php, line 28

View source
class SimpleblackTemplate extends OSMTemplate {

  /**
   * Return's this templates settings.  This function is used to tell the Open Standard Media Player class
   * about your template.
   */
  public function getSettings() {
    return array(
      /**
       * Boolean variable to tell this template if you are using theme roller.  This will basically
       * generate new CSS files so that multiple themes on the same page will not collide with each
       * other.
       */
      'generateCSS' => false,
      /**
       * The template specific JavaScript files required for this template.
       */
      'jsFiles' => array(
        /**
         * The release template JavaScript file(s).  Usually a compressed version of the debug version.
         */
        'release' => array(
          'templates/simpleblack/jquery.media.template.simpleblack.js',
        ),
        /**
         * The debug template JavaScript file(s) ( uncompressed ).
         */
        'debug' => array(
          'templates/simpleblack/jquery.media.template.simpleblack.js',
        ),
      ),
      /**
       * The CSS files used for this template.
       */
      'cssFiles' => array(
        'template' => 'templates/simpleblack/css/simpleblack.css',
      ),
      /**
       * The ID's for this template.  This is used to map certain HTML elements
       * of your template to the functionality behind the Open Standard Media Player.
       */
      'ids' => array(
        'loading' => '#mediaplayerloading',
        'player' => '#mediaplayer',
        'menu' => '#mediaplayer_menu',
        'node' => '#mediaplayer_node',
        'currentTime' => '#mediafront_playtime',
        'totalTime' => '#mediafront_totaltime',
        'playPause' => '#mediaplayer_playPause',
        'seekBar' => '#mediaplayer_seekBar',
        'seekUpdate' => '#mediaplayer_seekUpdate',
        'seekProgress' => '#mediaplayer_seekProgress',
        'seekHandle' => '#mediaplayer_seekHandle',
        'volumeBar' => '#mediaplayer_audioBar',
        'volumeHandle' => '#mediafront_audioControler',
        'mute' => '#mediaplayer_audioButton',
        'close' => '#mediaplayer_menuClose',
        'embed' => '#mediaplayer_embed',
        'elink' => '#mediaplayer_link',
        'busy' => '#mediaplayer_busy',
        'preview' => '#mediaplayer_preview',
        'play' => '#mediaplayer_bigPlay',
        'media' => '#mediaplayer_display',
        'control' => '#mediaplayer_control',
        'mediaRegion' => '#mediaplayer_minplayer',
      ),
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
OSMTemplate::$css_dir private property
OSMTemplate::$defaultIds public property
OSMTemplate::$playerSettings protected property
OSMTemplate::$prefix private property
OSMTemplate::$settings public property
OSMTemplate::$version private property
OSMTemplate::createCSS public function Create the CSS files for this media player. This will dynamically rename all the id's and class names within the master CSS files ( theme and template ), and then create a cached version of them within the css folder.
OSMTemplate::deleteCSS public function Delete the current cached CSS files.
OSMTemplate::getCSSFiles public function Get an array of the CSS files for this player.
OSMTemplate::getCSSHeader public function Get the CSS header for this player.
OSMTemplate::getIds public function Returns the id's for this template.
OSMTemplate::getThemeRollerCSS public function Returns the CSS file that is located within the current theme.
OSMTemplate::getVersion public function Get's the player version number.
OSMTemplate::resetCSS public function Resets all generated CSS files.
OSMTemplate::setCSSDir public function Set the CSS directory for this media player.
OSMTemplate::setPrefix public function Set's the prefix of the template.
OSMTemplate::theme public function Theme function for the base template class.
OSMTemplate::writeCSS private function Writes the contents of one CSS file to another, but also replaces all the id's and class names to take into account the prefix ( id ) of the media player.
OSMTemplate::__construct public function Constructor for the OSMTempalate class.
SimpleblackTemplate::getSettings public function Return's this templates settings. This function is used to tell the Open Standard Media Player class about your template. Overrides OSMTemplate::getSettings