Your IP : 216.73.216.209


Current Path : /home/megadansyp/www/administrator/components/com_videogallerylite/views/video/tmpl/
Upload File :
Current File : /home/megadansyp/www/administrator/components/com_videogallerylite/views/video/tmpl/default.php

<?php
/**
 * @package Video Gallery Lite
 * @author Huge-IT
 * @copyright (C) 2014 Huge IT. All rights reserved.
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 * @website		http://www.huge-it.com/
 **/ 

defined('_JEXEC') or die('Restircted access');
JHtml::stylesheet(Juri::root() . 'media/com_videogallerylite/style/admin.style.css');
$doc = JFactory::getDocument();
$doc->addScript("http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js");
$doc->addScript("http://code.jquery.com/ui/1.10.4/jquery-ui.js");
JHtml::script(Juri::root() . "/media/com_videogallerylite/js/admin.js");
JHtml::script(Juri::root() . "/media/com_videogallerylite/js/simple-slider.js");
$doc->addScript(JURI::root(true) . "/media/com_videogallerylite/elements/jscolor/jscolor.js");
JHtml::stylesheet('media/com_videogallerylite/style/simple-gallery.css');
?>
<style>
    html.wp-toolbar {
        padding:0px !important;
    }
    #wpadminbar,#adminmenuback,#screen-meta, .update-nag,#dolly {
        display:none;
    }
    #wpbody-content {
        padding-bottom:30px;
    }
    #adminmenuwrap {display:none !important;}
    .auto-fold #wpcontent, .auto-fold #wpfooter {
        margin-left: 0px;
    }
    #wpfooter {display:none;}
    iframe {height:250px !important;}
    #TB_window {height:250px !important;}
</style>
<script type="text/javascript">
    jQuery(document).ready(function() {

        jQuery('.huge-it-insert-post-button').on('click', function() {
            var ID1 = jQuery('#huge_it_add_video_input').val();
            if (ID1 == "") {
                alert("Please copy and past url form Youtobe or Vimeo to insert into gallery.");
                return false;
            }

            window.parent.uploadID.val(ID1);

            tb_remove();
            $("#save-buttom").click();
        });

        jQuery('#huge_it_add_video_input').change(function() {

            if (jQuery(this).val().indexOf("youtube") >= 0) {
                jQuery('#add-video-popup-options > div').removeClass('active');
                jQuery('#add-video-popup-options  .youtube').addClass('active');
            } else if (jQuery(this).val().indexOf("vimeo") >= 0) {
                jQuery('#add-video-popup-options > div').removeClass('active');
                jQuery('#add-video-popup-options  .vimeo').addClass('active');
            } else {
                jQuery('#add-video-popup-options > div').removeClass('active');
                jQuery('#add-video-popup-options  .error-message').addClass('active');
            }
        })

        jQuery('.updated').css({"display": "none"});
<?php if (@$_GET["closepop"] == 1) { ?>
            $("#closepopup").click();
            
            self.parent.location.reload();
<?php } ?>

    });

</script>



<a id="closepopup"  onclick=" parent.eval('tb_remove()')" style="display:none;" > [X] </a>

<div id="huge_it_slider_add_videos">
    <div id="huge_it_slider_add_videos_wrap">
        
		<div id="huge_it_slider_add_videos_wrap">
        <h2>Add Video URL From YouTube or Vimeo</h2>
        <div class="control-panel">
            <form action="<?php echo JRoute::_('index.php?option=com_videogallerylite&view=video&task=video.save&id=' . $_GET['pid']) ?>" method="post" name="adminForm" id="adminForm"   enctype="multipart/form-data">
                <input type="text" id="huge_it_add_video_input" name="huge_it_add_video_input" />
                <div class="button2-left" style="margin: 0 0 0 10px;float: left;">
<div class="blank">
  <button class='btn btn-large btn-success' id='huge-it-insert-video-button' onClick="setTimeout(function(){window.parent.location.reload()},300);setTimeout(function(){window.parent.SqueezeBox.close();},300)" >Insert Video</button> 
</div>
</div>				<div id="add-video-popup-options">
                    <div>
                        <div>
                            <label for="show_title">Title:</label>	
                            <div>
                                <input name="show_title" value="" type="text" />
                            </div>
                        </div>
                        <div>
                            <label for="show_description">Description:</label>
                            <textarea id="show_description" name="show_description"></textarea>
                        </div>
                        <div>
                            <label for="show_url">Url:</label>
                            <input type="text" name="show_url" value="" />	
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>	
</div>