缩略图地址替换
This commit is contained in:
parent
e2f7c3c1d5
commit
c8dbe891b5
|
@ -30,7 +30,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<a href="/heihe/view/uuid/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>
|
||||
</div>
|
||||
|
||||
<img src="/data/thumb/id/<?php echo $md['id'];?>" alt="<?php echo $this->escape($md['title']);?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>"
|
||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" alt="<?php echo $this->escape($md['title']);?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>"
|
||||
onclick="fnCreate('<?php echo $thumburl; ?>')" />
|
||||
|
||||
</div>
|
||||
|
|
|
@ -48,7 +48,7 @@ window.onload=function() {
|
|||
"title" : "<?php echo htmlspecialchars(mb_substr($row['title'],11,mb_strlen($row['title'],'UTF-8')-10,'UTF-8')); ?>",
|
||||
"options" : {
|
||||
// set the full HTML for the info window
|
||||
"infoHtml": "<div class='info'><a href=/heihe/view/uuid/<?php echo $row['uuid']; ?>><?php echo htmlspecialchars($row['title']); ?></a><hr /><img src=/data/thumb/id/<?php echo $row['id']; ?> /></div>",
|
||||
"infoHtml": "<div class='info'><a href=/heihe/view/uuid/<?php echo $row['uuid']; ?>><?php echo htmlspecialchars($row['title']); ?></a><hr /><img src=/service/thumb/id/<?php echo $row['id']; ?> /></div>",
|
||||
"theme":"orange"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -159,7 +159,7 @@ endforeach;
|
|||
</div>
|
||||
<div id="left">
|
||||
|
||||
<div id="ImageViewer"><img src="/data/thumb/id/<?php echo $md->id;?>" onclick="fnCreate('<?php echo $this->thumburl; ?>')" /> </div>
|
||||
<div id="ImageViewer"><img src="/service/thumb/id/<?php echo $md->id;?>" onclick="fnCreate('<?php echo $this->thumburl; ?>')" /> </div>
|
||||
<div id="abstract">
|
||||
<p>
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
||||
|
|
Loading…
Reference in New Issue