PATH:
home
/
letacommog
/
letaweb
/
admin
/
modules
/
video
<?php Yii::import('application.classes.socialEmbed.MediaEmbed.MediaEmbed', true); $has_error = false; $MediaEmbed = new MediaEmbed(); $MediaObject = $MediaEmbed->parseUrl($this->url); if ($MediaObject) { $code = $MediaObject->getEmbedCode(); } if (!isset($code)) { Yii::import('application.classes.socialEmbed.Embera.Autoload', true); $config = array( 'deny' => array('SoundClound', 'AudioSnaps','Twitter','YFrog'), ); $embera = new \Embera\Embera($config); $code = $embera->autoEmbed($this->url); $has_error = count($embera->getErrors()); } ?> <?php if (isset($code) && (!$has_error)) { ?> <div class="embed"> <?php echo $code; ?> </div> <?php } else { ?> <div class="alert"> <?php echo term('RESOLVE_URL_ERROR') ?> </div> <?php } ?> <script type="text/javascript"> $(document).ready(function() { var width = $("#<?php echo $this->page_id; ?>").width(); var height = width * 9 /16; $("#<?php echo $this->page_id; ?> iframe").height(height); }); $(window).resize(function() { var width = $("#<?php echo $this->page_id; ?>").width(); var height = width * 9 /16; $("#<?php echo $this->page_id; ?> iframe").height(height); }); </script>
[+]
..
[-] backend.php
[edit]
[-] frontend_view.php
[edit]
[-] backend.js
[edit]
[-] frontend_class.php
[edit]