HEX
Server: Apache
System: Linux web2213.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: clinicamaciel (596848)
PHP: 7.3.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,eval,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/clinicamaciel/www/index_lixo/wp-content/themes/virtue/templates/content.php
                <article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemscope="" itemtype="http://schema.org/BlogPosting">
                      <div class="row">
                          <?php global $post; 
                          $postsummery  = get_post_meta( $post->ID, '_kad_post_summery', true );
                          $height       = get_post_meta( $post->ID, '_kad_posthead_height', true );
                          $swidth       = get_post_meta( $post->ID, '_kad_posthead_width', true );
                          if (!empty($height)){
                            $slideheight = $height;
                          } else {
                            $slideheight = 400;
                          }
                          if (!empty($swidth)){
                            $slidewidth = $swidth;
                          } else {
                            $slidewidth = 846;
                          }
                          if(empty($postsummery) || $postsummery == 'default') {
                            global $virtue;
                            if(!empty($virtue['post_summery_default'])) {
                              $postsummery = $virtue['post_summery_default'];
                            } else {
                              $postsummery = 'img_portrait';
                            }
                          } 
                        
                          if($postsummery == 'img_landscape') { 
                              $textsize = 'col-md-12'; 
                              if (has_post_thumbnail( $post->ID ) ) {
                                $image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); 
                                $thumbnailURL = $image_url[0];
                                $image = aq_resize($thumbnailURL, $slidewidth, $slideheight, true);
                                if(empty($image)) { $image = $thumbnailURL; }
                                ?>
                                <div class="col-md-12">
                                    <div class="imghoverclass img-margin-center">
                                      <a href="<?php the_permalink()  ?>" title="<?php echo esc_attr(get_the_title()); ?>">
                                        <img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr(get_the_title()); ?>" itemprop="image"  class="iconhover" style="display:block;">
                                      </a> 
                                    </div>
                                </div>
                                <?php $image = null; $thumbnailURL = null; 
                                } else {
                                    $thumbnailURL = virtue_post_default_placeholder();
                                    $image = aq_resize($thumbnailURL, $slidewidth, $slideheight, true);
                                    if(empty($image)) { $image = $thumbnailURL; } ?>
                                    <div class="col-md-12">
                                    <div class="imghoverclass img-margin-center">
                                      <a href="<?php the_permalink()  ?>" title="<?php echo esc_attr(get_the_title()); ?>">
                                              <img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr(get_the_title()); ?>" itemprop="image"  class="iconhover" style="display:block;">
                                          </a> 
                                       </div>
                                   </div>
                                  <?php $image = null; $thumbnailURL = null; 
                                  }  ?>
                      <?php } elseif($postsummery == 'img_portrait') { 
                            $textsize = 'col-md-7'; 
                            if (has_post_thumbnail( $post->ID ) ) {
                                $image_url = wp_get_attachment_image_src( 
                                get_post_thumbnail_id( $post->ID ), 'full' ); 
                                $thumbnailURL = $image_url[0]; 
                                $image = aq_resize($thumbnailURL, 365, 365, true);
                                if(empty($image)) { $image = $thumbnailURL; } ?>
                                <div class="col-md-5">
                                    <div class="imghoverclass img-margin-center">
                                        <a href="<?php the_permalink()  ?>" title="<?php echo esc_attr(get_the_title()); ?>">
                                            <img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr(get_the_title()); ?>" itemprop="image"  class="iconhover" style="display:block;">
                                        </a> 
                                     </div>
                                 </div>
                                <?php $image = null; $thumbnailURL = null; 
                                } else {
                                  $thumbnailURL = virtue_post_default_placeholder();
                                  $image = aq_resize($thumbnailURL, 365, 365, true);
                                  if(empty($image)) { $image = $thumbnailURL; } ?>
                                  <div class="col-md-5">
                                    <div class="imghoverclass img-margin-center">
                                        <a href="<?php the_permalink()  ?>" title="<?php echo esc_attr(get_the_title()); ?>">
                                            <img src="<?php echo esc_url($image); ?>" alt="<?php echo esc_attr(get_the_title()); ?>" itemprop="image"  class="iconhover" style="display:block;">
                                        </a> 
                                     </div>
                                 </div>
                                <?php $image = null; $thumbnailURL = null; 
                                } ?>
                      <?php } elseif($postsummery == 'slider_landscape') {
                            $textsize = 'col-md-12'; ?>
                            <div class="col-md-12">
                                <div class="flexslider kt-flexslider loading" style="max-width:<?php echo esc_attr($slidewidth);?>px;" data-flex-speed="7000" data-flex-anim-speed="400" data-flex-animation="fade" data-flex-auto="true">
                                    <ul class="slides">
                                      <?php global $post;
                                        $image_gallery = get_post_meta( $post->ID, '_kad_image_gallery', true );
                                            if(!empty($image_gallery)) {
                                              $attachments = array_filter( explode( ',', $image_gallery ) );
                                                if ($attachments) {
                                                foreach ($attachments as $attachment) {
                                                  $attachment_url = wp_get_attachment_url($attachment , 'full');
                                                  $image = aq_resize($attachment_url, $slidewidth, $slideheight, true);
                                                    if(empty($image)) {$image = $attachment_url;} ?>
                                                    <li>
                                                      <a href="<?php the_permalink() ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
                                                        <img src="<?php echo esc_attr($image); ?>" itemprop="image"  class="" />
                                                      </a>
                                                    </li>
                                                <?php 
                                                }
                                              }
                                            } else {
                                              $attach_args = array('order'=> 'ASC','post_type'=> 'attachment','post_parent'=> $post->ID,'post_mime_type' => 'image','post_status'=> null,'orderby'=> 'menu_order','numberposts'=> -1);
                                              $attachments = get_posts($attach_args);
                                                if ($attachments) {
                                                  foreach ($attachments as $attachment) {
                                                    $attachment_url = wp_get_attachment_url($attachment->ID , 'full');
                                                    $image = aq_resize($attachment_url, $slidewidth, $slideheight, true);
                                                      if(empty($image)) {$image = $attachment_url;} ?>
                                                    <li>
                                                      <a href="<?php the_permalink() ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
                                                        <img src="<?php echo esc_url($image); ?>" itemprop="image"  class="" />
                                                      </a>
                                                    </li>
                                                <?php 
                                                  }
                                                } 
                                            } ?>                                   
                                    </ul>
                                </div> <!--Flex Slides-->
                            </div>

                    <?php } elseif($postsummery == 'slider_portrait') { ?>
                             <?php $textsize = 'col-md-7'; ?>
                              <div class="col-md-5">
                                  <div class="flexslider kt-flexslider loading" data-flex-speed="7000" data-flex-anim-speed="400" data-flex-animation="fade" data-flex-auto="true">
                                      <ul class="slides">
                                         <?php global $post;
                                        $image_gallery = get_post_meta( $post->ID, '_kad_image_gallery', true );
                                            if(!empty($image_gallery)) {
                                              $attachments = array_filter( explode( ',', $image_gallery ) );
                                                if ($attachments) {
                                                foreach ($attachments as $attachment) {
                                                  $attachment_url = wp_get_attachment_url($attachment , 'full');
                                                  $image = aq_resize($attachment_url, 365, 365, true);
                                                    if(empty($image)) {$image = $attachment_url;} ?>
                                                    <li>
                                                      <a href="<?php the_permalink() ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
                                                        <img src="<?php echo esc_url($image); ?>" itemprop="image" class="" />
                                                      </a>
                                                    </li>
                                                <?php 
                                                }
                                              }
                                            } else {
                                              $attach_args = array('order'=> 'ASC','post_type'=> 'attachment','post_parent'=> $post->ID,'post_mime_type' => 'image','post_status'=> null,'orderby'=> 'menu_order','numberposts'=> -1);
                                              $attachments = get_posts($attach_args);
                                                if ($attachments) {
                                                  foreach ($attachments as $attachment) {
                                                    $attachment_url = wp_get_attachment_url($attachment->ID , 'full');
                                                    $image = aq_resize($attachment_url, 365, 365, true);
                                                      if(empty($image)) {$image = $attachment_url;} ?>
                                                    <li>
                                                      <a href="<?php the_permalink() ?>" alt="<?php echo esc_attr(get_the_title()); ?>">
                                                        <img src="<?php echo esc_url($image); ?>" itemprop="image" class="" />
                                                      </a>
                                                    </li>
                                                <?php 
                                                  }
                                                } 
                                            } ?>           
                                      </ul>
                                </div> <!--Flex Slides-->
                            </div>
                    <?php } elseif($postsummery == 'video') {
                           $textsize = 'col-md-12'; ?>
                            <div class="col-md-12">
                                <div class="videofit">
                                    <?php global $post; echo get_post_meta( $post->ID, '_kad_post_video', true ); ?>
                                </div>
                            </div>

                    <?php } else { 
                            $textsize = 'col-md-12'; 
                          }?>

                      <div class="<?php echo esc_attr($textsize);?> postcontent">
                          <?php get_template_part('templates/post', 'date'); ?> 
                          <header>
                              <a href="<?php the_permalink() ?>"><h2 class="entry-title" itemprop="name headline"><?php the_title(); ?></h2></a>
                               <?php get_template_part('templates/entry', 'meta-subhead'); ?>    
                          </header>
                          <div class="entry-content" itemprop="articleBody">
                              <?php the_excerpt(); ?>
                          </div>
                          <footer>
                              <?php $tags = get_the_tags(); if ($tags) { ?>
                                <span class="posttags color_gray"><i class="icon-tag"></i> <?php the_tags('', ', ', ''); ?></span>
                              <?php } ?>
                          </footer>
                        </div><!-- Text size -->
                  </div><!-- row-->
              </article> <!-- Article -->