Пример #1
0
                }
                /* DATA VIDEO */
                if (isset($_POST['video']) && $_POST['video'] != '' && $isValidYoutube == 1 || isset($_POST['video']) && $_POST['video'] != '' && $isValidVimeoURL == 1) {
                    echo ' ' . $dataVideo;
                }
                ?>
 
							</p>
					    <?php 
            }
            ?>
			 <!-- ******* MEDIA ******** -->
			 
<?php 
            //Class
            $mediaGet = $obj->getMedia_2($response);
            $widthPhoto = _Function::getWidth('../../upload/' . $mediaGet[0]['photo']);
            if ($widthPhoto >= 600) {
                $thumbPic = 'thumb/600-600-';
            } else {
                $thumbPic = null;
            }
            $url_slideshare = preg_replace('#^https?:#', '', rtrim($mediaGet[0]['doc_url'], '/'));
            //==== PHOTO
            if ($mediaGet[0]['photo'] != '') {
                $media = "<a data-view='" . $_SESSION['LANG']['details'] . " &rarr;' data-url=" . $urlStatus . " class='galeryAjax cboxElement link-img' href='" . URL_BASE . "upload/" . $mediaGet[0]['photo'] . "'><img class='photoPost img-responsive' src='" . URL_BASE . $thumbPic . "upload/" . $mediaGet[0]['photo'] . "'></a>";
            } else {
                if ($mediaGet[0]['video_site'] == 'vimeo') {
                    $media = '<div class="embed-responsive embed-responsive-4by3"> <iframe class="embed-responsive-item" src="https://player.vimeo.com/video/' . $mediaGet[0]['video_code'] . '" width="450" height="360" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></div>';
                } else {
                    if ($mediaGet[0]['video_site'] == 'youtube') {