private function video() { $this->canCrop = false; if ($this->results) { // ADD CLASS TO SUPERCONTAINER FOR SORT if ($this->canSort) { $sortCls = 'sortGalerias'; } else { $sortCls = 'noSortGalerias'; } if ($this->useSuperContainer) { $out[] = '<div class="superContainerMedia ' . $sortCls . ' ' . $this->superContainerCls . '" style="' . $this->superContainerStyle . '">'; } foreach ($this->results as $item) { $this->AbsPath = ROOT . 'admin/uploads/' . $this->table . '/' . $item['nombre']; $this->RelPath = $this->nivel . 'uploads/' . $this->table . '/' . $item['nombre']; if ($this->titulo) { $item['titulo'] = $this->titulo; } if ($this->nombre) { $item['nombre'] = $this->nombre; } if (file_exists($this->RelPath) && $item['nombre'] != '') { if ($this->useContainer) { $out[] = '<div class="imagenes_galeria ' . $this->containerCls . '" style="' . $this->containerStyle . '" id="item_' . $item['id'] . '">'; } $phpt = new PhpT(); $phpt->fileName = $item['fuente']; if ($this->canCrop && $item['cropCords']) { $c = explode(",", $item['cropCords']); $phpt->params = array('sx' => $c[0], 'sy' => $c[1], 'sw' => $c[4], 'sh' => $c[5], 'w' => $this->phptParams['w'], 'h' => $this->phptParams['h'], 'aoe' => 1); } else { $phpt->params = $this->phptParams; } $phpt->folder = $item['tabla']; $out[] = '<div class="playerContainer imageContainer" id="player_' . $item['id'] . '">'; // PAYER $out[] = '<div id="s' . $item['id'] . '" class="player ' . $this->itemCls . '" style="' . $this->itemStyle . '"></div>'; $out[] = '<script type="text/javascript">'; $out[] = 'jwplayer("s' . $item['id'] . '").setup({'; $out[] = '"flashplayer": "plugins/jwplayer/player.swf",'; if ($item['fuente']) { $out[] = '"image": "' . $phpt->getSrc() . $phpt->getParams() . '",'; } $out[] = '"file": "' . $this->RelPath . '",'; $out[] = '"repeat": "true",'; $out[] = '"controlbar": "bottom",'; $out[] = '"width": "' . $this->playerWidth . '",'; $out[] = '"height": "' . $this->playerHeight . '"'; $out[] = '});'; $out[] = '</script>'; $out[] = '</div>'; $out[] = $this->buildButtons($item); $out[] = $this->buildDisplayName($item); if ($this->useContainer) { $out[] = '</div>'; } } else { if ($this->useContainer) { $out[] = '<div class="imagenes_galeria ' . $this->containerCls . '" id="item_' . $item['id'] . '">'; } $out[] = $this->RelPath; $out[] = $this->buildButtons($item); $out[] = $this->buildDisplayName($item); if ($this->useContainer) { $out[] = '</div>'; } } } $out[] = '<div style="clear: both;"></div>'; if ($this->useSuperContainer) { $out[] = '</div>'; } return join('', $out); } }