jquery Tooltip and some links fixed

master
ravenlp 2008-10-29 17:14:01 +00:00
parent 4e6faab461
commit aaa894da26
8 changed files with 31 additions and 10 deletions

View File

@ -93,7 +93,7 @@ if ($isAdmin) {
<div id="div-process" style="display:none;"><?=__("Processing request&hellip;");?></div>
<div id="cont">
<div id="head">
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?=__("home")?>">gelato cms</a></h1>
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?=__("home")?>">gelato cms</a></h1>
<ul id="nav">
<li><a href="<?php echo $conf->urlGelato;?>/" title="<?=__("Take me to the tumblelog")?>"><?=__("Back to the Tumblelog")?></a></li>
</ul>

View File

@ -61,6 +61,8 @@ body{ background: #fff; text-align:center; font-family:"Trebuchet Ms", Verdana,
.manage li a{ padding:14px 6px 0 6px;}
#context_help{ display:block; margin:0; padding:5px; position: absolute; border: 1px solid #222; background-color: #444; color:#fff; font-size: 12px;}
form.newpost{ width:500px; margin:0 auto; padding:0;}
form.newpost ul{ list-style-type:none; margin:20px 0 10px 0; padding:0;}
form.newpost li{ margin:4px 0; padding:0; position:relative;}

View File

@ -75,7 +75,7 @@ if ($user->isAdmin()) {
<body>
<div id="cont">
<div id="head">
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
<ul id="nav">
<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
</ul>

View File

@ -88,7 +88,7 @@ if ($user->isAdmin()) {
<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;")?></div>
<div id="cont">
<div id="head">
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
<ul id="nav">
<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
</ul>

View File

@ -56,3 +56,22 @@ function selectFeedType(feed_url,username){
$('#url_label').text(feed_url);
}
}
$(function(){
// Fancy tooltip
var t = '';
$(".help").hover(function(e){
t = $(this).attr('title');
$(this).removeAttr('title').animate({opacity:1.0},500,function(){
if($("#context_help").get().length < 1){
$('.box:last').append('<div id="context_help"></div>');
}
$('#context_help').hide().html(t).css({left:e.pageX, top:e.pageY + 20}).fadeIn('slow');
});
},function(){
$(this).stop().attr('title',t);
$('#context_help').fadeOut('fast', function(){$(this).css({left:0, top:0})});
});
});

View File

@ -46,7 +46,7 @@ if ($user->isAdmin()) {
<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;")?></div>
<div id="cont">
<div id="head">
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
<ul id="nav">
<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
</ul>

View File

@ -352,7 +352,7 @@
&lt;code&gt; &lt;pre&gt; &lt;img&gt;
</code>
<br /><br />
Bookmarklet - <a class="bookmarklet" title="{__("Drag to the Bookmarks Toolbar")}" href="javascript:var w; setTimeout('w.focus()',100);w=window.open('{conf.urlGelato}/admin/bm.php?url='+encodeURIComponent(location.href)+'&sel='+encodeURIComponent(window.getSelection()),'bookmarklet','toolbar=0,resizable=0,status=1,width=650,height=540,dependent=yes' ); w.focus();">{__("add to gelato")}</a>
Bookmarklet - <a class="bookmarklet help" title="{__("Drag to the Bookmarks Toolbar")}" href="javascript:var w; setTimeout('w.focus()',100);w=window.open('{conf.urlGelato}/admin/bm.php?url='+encodeURIComponent(location.href)+'&sel='+encodeURIComponent(window.getSelection()),'bookmarklet','toolbar=0,resizable=0,status=1,width=650,height=540,dependent=yes' ); w.focus();">{__("add to gelato")}</a>
<br /><br />
</span>
</p>
@ -379,7 +379,7 @@
{if {$Posts_Number}}
{block {$rows} as {$row}}
<div class="entry">
<div class="info"><span class="compact"><a href="{$row.Permalink}">Link</a>&nbsp;<a href="{conf.urlGelato}/admin/index.php?edit={$row.Id_Post}"><img src="{conf.urlGelato}/admin/css/images/edit.png" alt="" title="" /></a>&nbsp;<a href="{conf.urlGelato}/admin/index.php?delete={$row.Id_Post}"><img src="{conf.urlGelato}/admin/css/images/delete.png" alt="" title="" /></a></span>
<div class="info"><span class="compact"><a href="{$row.Permalink}">Link</a>&nbsp;<a href="{conf.urlGelato}/admin/index.php?edit={$row.Id_Post}" title="{__('Edit this post')}" class="help"><img src="{conf.urlGelato}/admin/css/images/edit.png" alt=""/></a>&nbsp;<a href="{conf.urlGelato}/admin/index.php?delete={$row.Id_Post}" title="{__('Delete this post')}" class="help"><img src="{conf.urlGelato}/admin/css/images/delete.png" alt="" title="" /></a></span>
<p>{$row.Date_Added}</p>
</div>
<div class="post">

View File

@ -63,7 +63,7 @@ if ($user->isAdmin()) {
<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;");?></div>
<div id="cont">
<div id="head">
<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
<ul id="nav">
<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
</ul>