Changeset 19392 for extensions/Media_Icon
- Timestamp:
- Dec 10, 2012, 11:06:51 PM (12 years ago)
- Location:
- extensions/Media_Icon
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Media_Icon/admin/admin_advanced.php
r19372 r19392 2 2 //Initialization 3 3 $conf_media_icon_advanced = unserialize($conf['media_icon_advanced']); 4 $conf_media_icon_general = unserialize($conf['media_icon_general']); 4 5 5 6 //Save config … … 46 47 47 48 //Parameters of the template 49 $template->assign('media_icon_style', $conf_media_icon_general['style']); 48 50 $template->assign( 49 51 'media_icon_advanced', … … 53 55 ) 54 56 ); 57 $template->assign('media_icon_admin_path', PHPWG_ROOT_PATH); 55 58 56 59 //Add our template to the global template -
extensions/Media_Icon/admin/admin_advanced.tpl
r19324 r19392 63 63 {if isset($media_icon_errors.opacity)}<span class="media_icon_error_description" title="{$media_icon_errors.opacity}">!</span>{/if} 64 64 </fieldset> 65 65 66 66 <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> 67 75 </form> -
extensions/Media_Icon/picture.php
r19372 r19392 55 55 preg_match('/<\s*img\s+[^>]*?src\s*=\s*(\'|\")(.*?)\\1[^>]*?\/?\s*>/i',$content,$match); 56 56 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); 58 58 } 59 59
Note: See TracChangeset
for help on using the changeset viewer.