Plugin Directory

Changeset 2109063


Ignore:
Timestamp:
06/19/2019 05:02:21 PM (7 years ago)
Author:
insivia
Message:

Updates and fixes 1.3.2

Location:
image-studio/trunk/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • image-studio/trunk/modules/hooks.php

    r2108407 r2109063  
    4141            $this->post_id = $post_id;
    4242            $this->image_path = get_attached_file( get_post_thumbnail_id( $this->post_id) );
    43          ;
    4443           
    4544            if( !$this->image_path || $this->image_path == '' ){             
    46                 $this->post_has_image = false;           
    47             }
    48            
     45                $this->post_has_image = false;
     46            }
    4947           
    5048            $this->use_global = get_post_meta( $this->post_id, 'use_global', true );
    5149           
    52          
    53          
    5450            if( $this->use_global == 'no' ){
    5551                $this->overlay_color = get_post_meta( $this->post_id, 'overlay_color', true );
     
    8581            }
    8682     
    87  
    88          
    89      
    9083            $this->social_sizes = array(
    9184            'facebook' => array( 'w' => 1200, 'h' => 628, 'name' => 'Facebook' ),
     
    109102            '970x90' => array( 'w' => 970, 'h' => 90    ),
    110103            );
    111            
    112              
    113104           
    114105            // init output strings
     
    497488            if( $this->text_position == 'top' ){
    498489                $offset_fix = 10;
    499                
    500                
    501490            }
    502491           
     
    505494            }
    506495           
    507            
    508496            if( $this->text_position == 'bottom' ){
    509497                $offset_fix = 60;
    510                
    511498            }
    512499           
     
    538525                    $type_space = $type_space[2] - $type_space[0];
    539526                   
    540                    
    541                    
    542527                    $max_char_amount = $let_num;
    543528                    if( $type_space >= $max_string_width ){
     
    553538           
    554539            // calculate all offsets
    555          
    556540            $vert_active_area = $newheight - $newheight*0.1 - $newheight*0.1;
    557541            $common_block_top_offset = 0 + $newheight*0.1;
     
    573557                    $text_top_offset = $text_top_offset + $category_block_height;
    574558                }
    575                
    576559            }
    577560           
     
    590573                }
    591574            }
    592            
    593575           
    594576            if( $this->text_position == 'bottom' ){
  • image-studio/trunk/modules/meta_box.php

    r2108407 r2109063  
    560560                                                    $image = new imageManipulator( $post->ID );
    561561                                                   
     562                                                    $out .= '<optgroup label="Social Images">';
    562563                                                    foreach( $image->social_sizes as $key => $value ){
    563564                                                        $out .= '<option value="'.site_url().'?process_image=true&size='.$key.'&id='.$post->ID.'">'.$value['name'];
    564565                                                    }
     566                                                    $out .= '</optgroup>';
     567                                                    $out .= '<optgroup label="Ad Images">';
    565568                                                    foreach( $image->banner_sizes as $key => $value ){
    566569                                                        $out .= '<option value="'.site_url().'?process_image=true&size='.$key.'&id='.$post->ID.'">'.$key;
    567570                                                    }
    568                                                    
     571                                                    $out .= '</optgroup>';
    569572                                                    $out .= '</select>
    570573                                                </div>
     
    572575                                                    <a href="" class="btn btn-info btn-sm"   target="_blank" id="image_view_link">View</a>
    573576                                                    <a href="" class="btn btn-warning btn-sm" target="_blank" download="download" id="image_download_link">Download</a>
    574                                                    
    575                                                  
    576                                                    
    577577                                                </div>
    578578                                            </div>
     
    776776     
    777777     $meta_box = array(
    778         'title' => 'Image Overlap Settings',
     778        'title' => 'Image Studio',
    779779        'post_type' => $out_post_types,
    780780        'position' => 'advanced',
Note: See TracChangeset for help on using the changeset viewer.