You are here

public function OSMTemplate::getIds in MediaFront 7

Same name and namespace in other branches
  1. 6.2 players/osmplayer/player/OSMTemplate.php \OSMTemplate::getIds()
  2. 6 players/osmplayer/player/OSMTemplate.php \OSMTemplate::getIds()

Returns the id's for this template.

File

players/osmplayer/player/OSMTemplate.php, line 366

Class

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

Code

public function getIds() {
  $ids = array();

  // Only add the prefix if the template is using themeroller.
  if ($this->settings['generateCSS']) {

    // Iterate through all the id's and add the id.
    foreach ($this->settings['ids'] as $index => $id) {
      $ids[$index] = $id[0] . $this->prefix . substr($id, 1);
    }
  }
  else {
    $ids = $this->settings['ids'];
  }

  // Return the id's with the prefix's in place.
  return $ids;
}