WordPress.org

Plugin Directory

Changeset 1451860


Ignore:
Timestamp:
07/09/16 15:54:13 (15 months ago)
Author:
tallythemes
Message:
  • Fixed image issue.
  • Using wordpress nativ image functions for image display.
Location:
tallykit/trunk
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • tallykit/trunk/components/gallery/gallery.php

    r1030585 r1451860  
    1919if(!defined( 'TALLYKIT_GALLERY_SINGLE_HEIGHT' )){ define('TALLYKIT_GALLERY_SINGLE_HEIGHT', '600'); }; 
    2020 
     21add_image_size('tallykit_gallery_album', 600, 600, true); 
     22add_image_size('tallykit_gallery_single', 600, 600, true); 
     23 
    2124include('gallery-types.php'); 
    2225include('gallery-metabox.php'); 
  • tallykit/trunk/components/gallery/templates/content/content-grid.php

    r1030585 r1451860  
    11<div class="tk_gallery_item"> 
    22    <a href="<?php the_permalink(); ?>"> 
    3         <?php        
    4             $image_url = ''; 
    5             $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    6             if( $thumb_data[0] != '' ){ $image_url = $thumb_data[0]; } 
     3        <?php  
     4            if(get_the_post_thumbnail() != ''){ 
     5                the_post_thumbnail( 'tallykit_gallery_album', array( 'class' => '' ) );  
     6            }else{ 
     7                echo '<img src="http://placehold.it/'.TALLYKIT_GALLERY_ALBUM_WIDTH.'x'.TALLYKIT_GALLERY_ALBUM_HEIGHT.'">';   
     8            } 
    79        ?> 
    8         <img src="<?php echo acoc_image_size($image_url, $image_size[0], $image_size[1], true); ?>" width="<?php echo $image_size[0]; ?>" height="<?php echo $image_size[1]; ?>" alt="<?php the_title(); ?>"  /> 
    910        <div class="tk_gallery_item_details"> 
    1011            <h3><?php the_title(); ?></h3>           
  • tallykit/trunk/components/logo/logo.php

    r1030585 r1451860  
    1515if(!defined( 'TALLYKIT_LOGO_IMAGE_WIDTH' )){ define('TALLYKIT_LOGO_IMAGE_WIDTH', '307'); }; 
    1616if(!defined( 'TALLYKIT_LOGO_IMAGE_HEIGHT' )){ define('TALLYKIT_LOGO_IMAGE_HEIGHT', ''); }; 
     17add_image_size('tallykit_logo', 307, 99999, true); 
    1718 
    1819include('logo-types.php'); 
  • tallykit/trunk/components/logo/templates/content/content-carousel.php

    r1030585 r1451860  
    33        <div class="tk-logo-item-content"> 
    44            <div class="tk-logo-item-content-inner"> 
    5                 <?php 
    6                 $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    7                 $image_url = $thumb_data[0]; 
    8                 ?> 
    9                  <img src="<?php echo acoc_image_size($image_url, $image_size[0], $image_size[1], false); ?>" alt="<?php the_title(); ?>" height="<?php echo $image_size[0]; ?>" width="<?php echo $image_size[1]; ?>" /> 
     5                 <?php  
     6                    if(get_the_post_thumbnail() != ''){ 
     7                        the_post_thumbnail( 'tallykit_logo', array( 'class' => '' ) );  
     8                    }else{ 
     9                        echo '<img src="http://placehold.it/'.TALLYKIT_LOGO_IMAGE_WIDTH.'x'.TALLYKIT_LOGO_IMAGE_HEIGHT.'">';     
     10                    } 
     11                ?> 
    1012            </div> 
    1113        </div> 
  • tallykit/trunk/components/logo/templates/content/content-grid.php

    r1030585 r1451860  
    44        <div class="tallykit_logo_item_image"> 
    55            <div class="tk-item-content"> 
    6                 <?php 
    7                 $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    8                 $image_url = $thumb_data[0]; 
    9                 ?> 
    10                 <img src="<?php echo acoc_image_size($image_url, $image_size[0], $image_size[1], false); ?>" alt="<?php the_title(); ?>" height="<?php echo $image_size[0]; ?>" width="<?php echo $image_size[1]; ?>" /> 
     6                <?php  
     7                    if(get_the_post_thumbnail() != ''){ 
     8                        the_post_thumbnail( 'tallykit_logo', array( 'class' => '' ) );  
     9                    }else{ 
     10                        echo '<img src="http://placehold.it/'.TALLYKIT_LOGO_IMAGE_WIDTH.'x'.TALLYKIT_LOGO_IMAGE_HEIGHT.'">';     
     11                    } 
     12                ?> 
    1113            </div> 
    1214        </div> 
  • tallykit/trunk/components/people/people.php

    r1030585 r1451860  
    1515if(!defined( 'TALLYKIT_PEOPLE_IMAGE_ARCHIVE_W' )){ define('TALLYKIT_PEOPLE_IMAGE_ARCHIVE_W', '688'); }; 
    1616if(!defined( 'TALLYKIT_PEOPLE_IMAGE_ARCHIVE_H' )){ define('TALLYKIT_PEOPLE_IMAGE_ARCHIVE_H', '458'); }; 
     17add_image_size('tallykit_people', 688, 458, true); 
    1718 
    1819include('people-types.php'); 
  • tallykit/trunk/components/people/templates/content/content-grid.php

    r1030585 r1451860  
    22        <div class="tk_people_item_image"> 
    33            <a href="<?php the_permalink(); ?>"> 
    4             <?php 
    5                 $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    6                 $image_url = $thumb_data[0]; 
    7             ?> 
    8             <img src="<?php echo acoc_image_size($image_url, $image_size[0], $image_size[1], $crop = true); ?>" width="<?php echo $image_size[0]; ?>" height="<?php echo $image_size[1]; ?>" alt="<?php the_title(); ?>"  /> 
     4                <?php  
     5                    if(get_the_post_thumbnail() != ''){ 
     6                        the_post_thumbnail( 'tallykit_people', array( 'class' => '' ) );  
     7                    }else{ 
     8                        echo '<img src="http://placehold.it/'.TALLYKIT_PEOPLE_IMAGE_ARCHIVE_W.'x'.TALLYKIT_PEOPLE_IMAGE_ARCHIVE_H.'">';  
     9                    } 
     10                ?> 
    911            </a> 
    1012        </div> 
  • tallykit/trunk/components/people/templates/people-single.php

    r1184587 r1451860  
    99            </div> 
    1010            <div class="tk_people_single_info"> 
    11                 <?php 
    12                     $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    13                     $image_url = acoc_image_size($thumb_data[0] ,'500', '');  
    14                 ?> 
    1511                <div class="tk_people_image"> 
    16                     <img src="<?php echo $image_url; ?>" alt="<?php the_title(); ?>"  /> 
     12                    <?php  
     13                        if(get_the_post_thumbnail() != ''){ 
     14                            the_post_thumbnail( 'tallykit_people', array( 'class' => '' ) );  
     15                        }else{ 
     16                            echo '<img src="http://placehold.it/'.TALLYKIT_PEOPLE_IMAGE_ARCHIVE_W.'x'.TALLYKIT_PEOPLE_IMAGE_ARCHIVE_H.'">';  
     17                        } 
     18                    ?> 
    1719                    <h3><?php the_title(); ?></h3> 
    1820                </div> 
  • tallykit/trunk/components/portfolio/portfolio.php

    r1030585 r1451860  
    1515if(!defined( 'TALLYKIT_PORTFOLIO_ARCHIVE_W' )){ define('TALLYKIT_PORTFOLIO_ARCHIVE_W', '680'); }; 
    1616if(!defined( 'TALLYKIT_PORTFOLIO_ARCHIVE_H' )){ define('TALLYKIT_PORTFOLIO_ARCHIVE_H', '500'); }; 
     17add_image_size('tallykit_portfolio', 680, 500, true); 
    1718 
    1819include('portfolio-types.php'); 
  • tallykit/trunk/components/portfolio/templates/content/content-grid.php

    r1030585 r1451860  
    22    <a href="<?php the_permalink(); ?>"> 
    33        <div class="tallykit_portfolio_item_image"> 
    4             <?php 
    5                 $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    6                 $image_url = $thumb_data[0]; 
    7             ?>             
    8             <img src="<?php echo acoc_image_size($image_url, $image_size[0], $image_size[1], true); ?>" alt="<?php the_title(); ?>" height="<?php echo $image_size[0]; ?>" width="<?php echo $image_size[1]; ?>" /> 
     4            <?php  
     5                if(get_the_post_thumbnail() != ''){ 
     6                    the_post_thumbnail( 'tallykit_portfolio', array( 'class' => '' ) );  
     7                }else{ 
     8                    echo '<img src="http://placehold.it/'.TALLYKIT_PORTFOLIO_ARCHIVE_W.'x'.TALLYKIT_PORTFOLIO_ARCHIVE_H.'">';    
     9                } 
     10            ?> 
    911        </div> 
    1012        <div class="tallykit_portfolio_item_details"> 
  • tallykit/trunk/components/portfolio/templates/content/content-slidehow.php

    r1030585 r1451860  
    22    <a href="<?php the_permalink(); ?>"> 
    33        <div class="tallykit_portfolio_item_image"> 
    4             <?php 
    5             $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    6                 $image_url = $thumb_data[0]; 
     4            <?php  
     5                if(get_the_post_thumbnail() != ''){ 
     6                    the_post_thumbnail( 'tallykit_portfolio', array( 'class' => '' ) );  
     7                }else{ 
     8                    echo '<img src="http://placehold.it/'.TALLYKIT_PORTFOLIO_ARCHIVE_W.'x'.TALLYKIT_PORTFOLIO_ARCHIVE_H.'">';    
     9                } 
    710            ?> 
    8             <img src="<?php echo acoc_image_size($image_url, $image_size[0], $image_size[1], true); ?>" alt="<?php the_title(); ?>" height="<?php echo $image_size[0]; ?>" width="<?php echo $image_size[1]; ?>" /> 
    911        </div> 
    1012        <div class="tallykit_portfolio_item_details"> 
  • tallykit/trunk/components/portfolio/templates/portfolio-single.php

    r967527 r1451860  
    99                <div class="tk_portfolio_video_holder"><?php echo wp_oembed_get(get_post_meta(get_the_ID(), 'tallykit_portfolio_video', true)); ?></div> 
    1010            <?php else: ?> 
    11                 <?php 
    12                 $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    13                 $image_url = $thumb_data[0]; 
     11                <?php  
     12                    if(get_the_post_thumbnail() != ''){ 
     13                        the_post_thumbnail( 'tallykit_portfolio', array( 'class' => '' ) );  
     14                    }else{ 
     15                        echo '<img src="http://placehold.it/'.TALLYKIT_PORTFOLIO_ARCHIVE_W.'x'.TALLYKIT_PORTFOLIO_ARCHIVE_H.'">';    
     16                    } 
    1417                ?> 
    15                 <img src="<?php echo acoc_image_size($image_url , '1000'); ?>" alt="<?php the_title(); ?>"  /> 
    1618            <?php endif; ?> 
    1719             
  • tallykit/trunk/components/testimonial/templates/content/content-carousel.php

    r1030585 r1451860  
    33    <div class="tallykit_testimonial_item_info"> 
    44        <div class="tallykit_testimonial_item_arrow_wrap"><div class="tallykit_testimonial_item_arrow"></div></div> 
    5         <?php 
    6             $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    7             $image_url = $thumb_data[0]; 
     5        <?php  
     6            if(get_the_post_thumbnail() != ''){ 
     7                the_post_thumbnail( 'tallykit_testimonial', array( 'class' => '' ) );  
     8            }else{ 
     9                echo '<img src="http://placehold.it/'.TALLYKIT_TESTIMONIAL_IMAGE_W.'x'.TALLYKIT_TESTIMONIAL_IMAGE_H.'">';    
     10            } 
    811        ?> 
    9         <img src="<?php echo acoc_image_size($image_url, $image_size[0], $image_size[1], true); ?>" alt="<?php the_title(); ?>" height="<?php echo $image_size[0]; ?>" width="<?php echo $image_size[1]; ?>" /> 
    1012        <span class="tallykit_testimonial_item_author"><?php the_title(); ?></span><br /> 
    1113        <span class="tallykit_testimonial_item_pogition"><?php echo get_post_meta(get_the_ID(), 'tallykit_testimonial_position', true); ?> - <?php echo get_post_meta(get_the_ID(), 'tallykit_testimonial_link', true); ?></span> 
  • tallykit/trunk/components/testimonial/templates/content/content-grid.php

    r1030585 r1451860  
    33    <div class="tk_testimonial_item_info"> 
    44        <div class="tk_testimonial_arrow_wrap"><div class="tk_testimonial_arrow"></div></div> 
    5         <?php  
    6             $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    7             $image_url = $thumb_data[0]; 
    8         ?> 
    9         <img src="<?php echo acoc_image_size($image_url, $image_size[0], $image_size[1], true); ?>" alt="<?php the_title(); ?>" height="<?php echo $image_size[0]; ?>" width="<?php echo $image_size[1]; ?>" /> 
     5            <?php  
     6                if(get_the_post_thumbnail() != ''){ 
     7                    the_post_thumbnail( 'tallykit_testimonial', array( 'class' => '' ) ); 
     8                }else{ 
     9                    echo '<img src="http://placehold.it/'.TALLYKIT_TESTIMONIAL_IMAGE_W.'x'.TALLYKIT_TESTIMONIAL_IMAGE_H.'">';    
     10                } 
     11            ?> 
     12             
    1013        <span class="tk_testimonial_author_name"> 
    1114            <?php $link = get_post_meta(get_the_ID(), 'tallykit_testimonial_link', true);  ?> 
  • tallykit/trunk/components/testimonial/templates/content/content-slidehow.php

    r1030585 r1451860  
    11<div class="tk_testimonial_slider_item"> 
    2     <?php  
    3         $thumb_data = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); // Get post by ID 
    4         $image_url = $thumb_data[0]; 
    5     ?> 
    6     <img src="<?php echo acoc_image_size($image_url, $image_size[0], $image_size[1], true); ?>" alt="<?php the_title(); ?>" height="<?php echo $image_size[0]; ?>" width="<?php echo $image_size[1]; ?>" /> 
     2            <?php  
     3                if(get_the_post_thumbnail() != ''){ 
     4                    the_post_thumbnail( 'tallykit_testimonial', array( 'class' => '' ) );  
     5                }else{ 
     6                    echo '<img src="http://placehold.it/'.TALLYKIT_TESTIMONIAL_IMAGE_W.'x'.TALLYKIT_TESTIMONIAL_IMAGE_H.'">';    
     7                } 
     8            ?> 
    79     
    810    <div class="tk_testimonial_item_content"><?php echo get_the_content(); ?></div> 
  • tallykit/trunk/components/testimonial/testimonial.php

    r1030585 r1451860  
    1515if(!defined( 'TALLYKIT_TESTIMONIAL_IMAGE_W' )){ define('TALLYKIT_TESTIMONIAL_IMAGE_W', '100'); }; 
    1616if(!defined( 'TALLYKIT_TESTIMONIAL_IMAGE_H' )){ define('TALLYKIT_TESTIMONIAL_IMAGE_H', '100'); }; 
     17add_image_size('tallykit_testimonial', 100, 100, true); 
    1718 
    1819include('testimonial-types.php'); 
  • tallykit/trunk/readme.txt

    r1447980 r1451860  
    55Requires at least: 4 
    66Tested up to: 4.5.3 
    7 Stable tag: 5.8 
     7Stable tag: 5.9 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    3838 
    3939== Changelog == 
     40 
     41= 5.9 = 
     42* Fixed image issue. 
     43* Using wordpress nativ image functions for image display. 
    4044 
    4145= 5.8 = 
  • tallykit/trunk/tallykit.php

    r1447980 r1451860  
    44Plugin URI: https://github.com/tallythemes/tallykit 
    55Description: A collection of features and functionality for <strong>Tally Framework</strong> theme. 
    6 Version: 5.8 
     6Version: 5.9 
    77Author: TallyThemes 
    88Author URI: http://tallythemes.com/ 
     
    2525    define('TALLYKIT_URL', site_url(str_replace( $path_abs, '', $path_dir )) ); 
    2626    define('TALLYKIT_DRI', $path_dir ); 
    27     define('TALLYKIT_VERSION', 5.8 ); 
     27    define('TALLYKIT_VERSION', 5.9 ); 
    2828     
    2929    define('TALLYKIT_COMPONENTS_URL', TALLYKIT_URL.'components/' ); 
Note: See TracChangeset for help on using the changeset viewer.