Changeset 19392


Ignore:
Timestamp:
12/10/12 23:06:51 (7 years ago)
Author:
julien1311
Message:

bug fix on picture.php
begin work on result pane in advanced option

Location:
extensions/Media_Icon
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Media_Icon/admin/admin_advanced.php

    r19372 r19392  
    22//Initialization 
    33$conf_media_icon_advanced = unserialize($conf['media_icon_advanced']); 
     4$conf_media_icon_general = unserialize($conf['media_icon_general']); 
    45 
    56//Save config 
     
    4647 
    4748//Parameters of the template 
     49$template->assign('media_icon_style', $conf_media_icon_general['style']); 
    4850$template->assign( 
    4951        'media_icon_advanced', 
     
    5355        ) 
    5456); 
     57$template->assign('media_icon_admin_path', PHPWG_ROOT_PATH); 
    5558 
    5659//Add our template to the global template 
  • extensions/Media_Icon/admin/admin_advanced.tpl

    r19324 r19392  
    6363                {if isset($media_icon_errors.opacity)}<span class="media_icon_error_description" title="{$media_icon_errors.opacity}">!</span>{/if} 
    6464        </fieldset> 
    65    
     65         
    6666        <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit"/></p> 
     67         
     68        <fieldset> 
     69                <legend>{'Result'|@translate}</legend> 
     70                <div class="media_icon_bold_center"> 
     71                        <a href="#"><span class="media_icon media_icon_pdf_{$media_icon_style}"></span><img class="thumbnail" alt="landscape" src="{$media_icon_admin_path}plugins/media_icon/admin/img/landscape.png" width="323" height="200" /></a> 
     72                        <a href="#"><span class="media_icon media_icon_youtube_{$media_icon_style}"></span><img class="thumbnail" alt="portrait" src="{$media_icon_admin_path}plugins/media_icon/admin/img/portrait.png" width="150" height="200" /></a> 
     73                </div> 
     74        </fieldset> 
    6775</form> 
  • extensions/Media_Icon/picture.php

    r19372 r19392  
    5555                preg_match('/<\s*img\s+[^>]*?src\s*=\s*(\'|\")(.*?)\\1[^>]*?\/?\s*>/i',$content,$match); 
    5656         
    57                 $content = str_replace($match[0],'<span class="media_icon media_icon_'.$media_icon_type.'_'.$conf_media_icon_general['style'].'"></span>'.$match[0].'</a>',$content); 
     57                $content = str_replace($match[0],'<span class="media_icon media_icon_'.$media_icon_type.'_'.$conf_media_icon_general['style'].'"></span>'.$match[0],$content); 
    5858        } 
    5959         
Note: See TracChangeset for help on using the changeset viewer.