Ignore:
Timestamp:
05/04/05 07:08:32 (15 years ago)
Author:
niko
Message:

#225
several ImageManager? fixes, see #225 for details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ImageManager/editorFrame.php

    r60 r111  
    2222        <title></title> 
    2323<script type="text/javascript"> 
    24 _backend_url = "<? print $IMConfig['backend_url']; ?>"; 
     24_backend_url = "<?php print $IMConfig['backend_url']; ?>"; 
    2525</script> 
    2626 
    27 <link href="<? print $IMConfig['base_url'];?>assets/editorFrame.css" rel="stylesheet" type="text/css" />         
    28 <script type="text/javascript" src="<? print $IMConfig['base_url'];?>assets/wz_jsgraphics.js"></script> 
    29 <script type="text/javascript" src="<? print $IMConfig['base_url'];?>assets/EditorContent.js"></script> 
     27<link href="<?php print $IMConfig['base_url'];?>assets/editorFrame.css" rel="stylesheet" type="text/css" />      
     28<script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/wz_jsgraphics.js"></script> 
     29<script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/EditorContent.js"></script> 
    3030<script type="text/javascript"> 
    3131 
     
    3737}; 
    3838         
    39         var mode = "<? echo $editor->getAction(); ?>" //crop, scale, measure 
     39        var mode = "<?php echo $editor->getAction(); ?>" //crop, scale, measure 
    4040 
    41 var currentImageFile = "<? if(count($imageInfo)>0) echo rawurlencode($imageInfo['file']); ?>"; 
     41var currentImageFile = "<?php if(count($imageInfo)>0) echo rawurlencode($imageInfo['file']); ?>"; 
    4242 
    43 <? if ($editor->isFileSaved() == 1) { ?> 
     43<?php if ($editor->isFileSaved() == 1) { ?> 
    4444        alert(i18n('File saved.')); 
    45 <? } else if ($editor->isFileSaved() == -1) { ?> 
     45<?php } else if ($editor->isFileSaved() == -1) { ?> 
    4646        alert(i18n('File was not saved.')); 
    47 <? } ?> 
     47<?php } ?> 
    4848 
    4949</script> 
    50 <script type="text/javascript" src="<? print $IMConfig['base_url'];?>assets/editorFrame.js"></script> 
     50<script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/editorFrame.js"></script> 
    5151</head> 
    5252 
    5353<body> 
    5454<div id="status"></div> 
    55 <div id="ant" class="selection" style="visibility:hidden"><img src="<? print $IMConfig['base_url'];?>img/spacer.gif" width="0" height="0" border="0" alt="" id="cropContent"></div> 
    56 <? if ($editor->isGDEditable() == -1) { ?> 
     55<div id="ant" class="selection" style="visibility:hidden"><img src="<?php print $IMConfig['base_url'];?>img/spacer.gif" width="0" height="0" border="0" alt="" id="cropContent"></div> 
     56<?php if ($editor->isGDEditable() == -1) { ?> 
    5757        <div style="text-align:center; padding:10px;"><span class="error">GIF format is not supported, image editing not supported.</span></div> 
    58 <? } ?> 
     58<?php } ?> 
    5959<table height="100%" width="100%"> 
    6060        <tr> 
    6161                <td> 
    62 <? if(count($imageInfo) > 0 && is_file($imageInfo['fullpath'])) { ?> 
    63         <span id="imgCanvas" class="crop"><img src="<? echo $imageInfo['src']; ?>" <? echo $imageInfo['dimensions']; ?> alt="" id="theImage" name="theImage"></span> 
    64 <? } else { ?> 
     62<?php if(count($imageInfo) > 0 && is_file($imageInfo['fullpath'])) { ?> 
     63        <span id="imgCanvas" class="crop"><img src="<?php echo $imageInfo['src']; ?>" <?php echo $imageInfo['dimensions']; ?> alt="" id="theImage" name="theImage"></span> 
     64<?php } else { ?> 
    6565        <span class="error">No Image Available</span> 
    66 <? } ?> 
     66<?php } ?> 
    6767                </td> 
    6868        </tr> 
Note: See TracChangeset for help on using the changeset viewer.