Make WordPress Themes

Changeset 171837


Ignore:
Timestamp:
07/17/2022 04:06:16 PM (3 years ago)
Author:
themedropbox
Message:

New version of eMart Shop - 1.0.1

Location:
emart-shop/1.0.1
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • emart-shop/1.0.1/inc/class/class-post-related.php

    r171836 r171837  
    242242                $ids     = explode( ",", $gallery['ids'] );
    243243               
    244                 foreach( $ids as $id ) {
    245                
    246                    $link   = wp_get_attachment_url( $id );
    247                
    248                    $html  .= '<div class="item gallery-image"><img src="' . esc_url( $link ) . '"  class="img-responsive" alt="' .esc_attr( get_the_title() ). '" title="' .esc_attr( get_the_title() ). '"  /></div>';
    249                
    250                 }
     244                if( !empty($ids) ):
     245                    foreach( $ids as $id ) {
     246                   
     247                       $link   = wp_get_attachment_url( $id );
     248                   
     249                       $html  .= '<div class="item gallery-image"><img src="' . esc_url( $link ) . '"  class="img-responsive" alt="' .esc_attr( get_the_title() ). '" title="' .esc_attr( get_the_title() ). '"  /></div>';
     250                   
     251                    }
     252                endif;
    251253               
    252254            $html .= '</figure>';
  • emart-shop/1.0.1/style.css

    r171836 r171837  
    88Tested up to: 6.0.0
    99Requires PHP: 7.0
    10 Version: 1.0.0
     10Version: 1.0.1
    1111License: GPLv3 or later
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    21212121     margin-bottom: 20px !important;
    21222122 }
     2123 #commentform [class^="col-"] span.required{
     2124    position: absolute;
     2125    right: 20px;
     2126    top: 10px;
     2127 }
    21232128 #commentform input[type=checkbox], input[type=radio] {
    21242129     width: 15px;
Note: See TracChangeset for help on using the changeset viewer.