- Error en el plugin mime_type_link_images.php
git-svn-id: https://192.168.0.254/svn/Proyectos.AdemasProyectosSolidarios_Web/trunk@13 dac18aa3-6f68-5b46-b19f-13bb96c8fe2c
This commit is contained in:
parent
668b24821c
commit
c0de514441
@ -315,14 +315,14 @@ function mtli_add_jquery(){
|
||||
function mtli_display_css($content){
|
||||
global $mtli_available_mime_types;
|
||||
global $add_attachment_style;
|
||||
$mtli_css = "<style type='text/css'> .mtli_attachment { display:inline-block; height:".mtli_get_option('image_size')."px; background-position: top left; background-attachment: scroll; background-repeat: no-repeat; padding-left: ".(mtli_get_option('image_size')*1.2)."px; }";
|
||||
$mtli_css = "<style type='text/css'> <!-- .mtli_attachment { display:inline-block; height:".mtli_get_option('image_size')."px; background-position: top left; background-attachment: scroll; background-repeat: no-repeat; padding-left: ".(mtli_get_option('image_size')*1.2)."px; }";
|
||||
$wp_content_url = mtli_get_wp_path();
|
||||
foreach($mtli_available_mime_types as $k=>$mime_type){
|
||||
if(mtli_get_option('enable_'.$mime_type)){
|
||||
$mtli_css .= '.mtli_'.$mime_type.' { background-image: url('.$wp_content_url.'/plugins/mimetypes-link-icons/images/'.$mime_type.'-icon-'.mtli_get_option('image_size').'x'.mtli_get_option('image_size').'.'.mtli_get_option('image_type').'); }';
|
||||
}
|
||||
}
|
||||
$mtli_css.="</style>";
|
||||
$mtli_css.="--> </style>";
|
||||
if($add_attachment_style===true || mtli_get_option('enable_async')){
|
||||
return $content.$mtli_css;
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user