HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //proc/self/cwd/wp-content/plugins/wp-media-folder/themes-gallery/gallery-portfolio.php
<?php
wp_enqueue_script('jquery-masonry');
wp_enqueue_script('wpmf-gallery');
$class[] = "gallery-masonry gallery-portfolio";
$class[] = "galleryid-{$id}";
$class[] = "gallery-columns-{$columns}";
$class[] = "gallery-size-{$size_class}";
$class[] = 'wpmf-gallery-bottomspace-' . $bottomspace;
$class[] = 'wpmf-gallery-clear';

$class = implode(' ', $class);

$padding_portfolio = get_option('wpmf_padding_portfolio');
if(!isset($padding_portfolio) && $padding_portfolio == ''){
    $padding_portfolio = 10;
}
$output = "<div class='wpmf-gallerys'><div id='$selector' data-gutter-width='" . $padding_portfolio . "' data-columns='" . $columns . "' class='{$class}'>";
$i = 0;
$pos = 1;

$current_theme = get_option('current_theme');
if(isset($current_theme) && $current_theme == 'Gleam'){
    $tclass = 'fancybox';
}else{
    $tclass = '';
}

foreach ($attachments as $id => $attachment) {
    $link_target = get_post_meta( $attachment->ID, '_gallery_link_target', true );
    if ($customlink) {
        $image_output = $this->wpmf_gallery_get_attachment_link($id, $size, false, false, false, $targetsize, $customlink, $link_target);
        $url_image = get_post_meta($id, _WPMF_GALLERY_PREFIX . 'custom_image_link', true);
        if($url_image == '') $url_image = get_attachment_link($id);
        $icon = "<a href='$url_image' title='$attachment->post_title' class='hover_img $tclass' target='$link_target'></a><a class='portfolio_lightbox $tclass' href='$url_image' title='$attachment->post_title' target='$link_target'>+</a>";
        if($url_image == '') $url_image = get_attachment_link($id);
    } else if (!empty($link) && 'file' === $link) {
        $image_output = $this->wpmf_gallery_get_attachment_link($id, $size, false, false, false, $targetsize, $customlink, $link_target);
        if(strpos($image_output, "data-lightbox='0'")){
            $url_image = get_post_meta($id, _WPMF_GALLERY_PREFIX . 'custom_image_link', true);
            $icon = "<a data-lightbox='0' href='$url_image' title='$attachment->post_title' class='hover_img $tclass' target='$link_target'></a><a data-lightbox='0' class='portfolio_lightbox $tclass' href='$url_image' title='$attachment->post_title' target='$link_target'>+</a>";
        }else{
            $urls = wp_get_attachment_image_src( $id ,  $targetsize);
            $url_image = $urls[0];
            //$url_image = wp_get_attachment_url($id);
            $icon = "<a data-lightbox='1' href='$url_image' title='$attachment->post_title' class='hover_img $tclass'></a><a data-lightbox='1' class='portfolio_lightbox $tclass' href='$url_image' title='$attachment->post_title'>+</a>";
        }

    } else if (!empty($link) && 'none' === $link) {
        if(get_post_meta($id, _WPMF_GALLERY_PREFIX . 'custom_image_link', true) != ''){
            $image_output = $this->wpmf_gallery_get_attachment_link($id, $size, false, false, false, $targetsize, $customlink, $link_target);
            $url_image = get_post_meta($id, _WPMF_GALLERY_PREFIX . 'custom_image_link', true);
            $icon = "<a href='$url_image' title='$attachment->post_title' class='hover_img $tclass' target='$link_target'></a><a class='portfolio_lightbox $tclass' href='$url_image' title='$attachment->post_title' target='$link_target'>+</a>";
        }else{
            $image_output = wp_get_attachment_image($id, $size, false);
            $icon = "<span class='hover_img'></span><span class='portfolio_lightbox' title='$attachment->post_title'>+</span>";
        }
    } else {
        $image_output = $this->wpmf_gallery_get_attachment_link($id, $size, true, false, false, 'large', false, $link_target);
    }
    
    $image_meta = wp_get_attachment_metadata($id);
    $orientation = '';
    if (isset($image_meta['height'], $image_meta['width']))
        $orientation = ( $image_meta['height'] > $image_meta['width'] ) ? 'portrait' : 'landscape';
    
    
    $output .= "<div class='wpmf-gallery-item wpmf-gallery-item-position-" . $pos . " wpmf-gallery-item-attachment-" . $id . "'>";
    $output .= "<div class='gallery-icon {$orientation}'>$icon $image_output</div>";
    if (trim($attachment->post_excerpt) || trim($attachment->post_title)) {
        $output .= "<div class='wpmf-caption-text wpmf-gallery-caption'>
                        <span class='title'>" . wptexturize($attachment->post_title) . " </span><br>
                        <span class='excerpt'>" . wptexturize($attachment->post_excerpt) . "</span>
                        </div>";
    }
    $output .= "</div>";

    $pos++;
}

$output .= "</div></div>\n";
?>