Explorar el Código

jquery Tooltip and some links fixed

ravenlp hace 16 años
padre
commit
aaa894da26

+ 1 - 1
admin/comments.php Ver fichero

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

+ 2 - 0
admin/css/style.css Ver fichero

61
 
61
 
62
 .manage li a{ padding:14px 6px 0 6px;}
62
 .manage li a{ padding:14px 6px 0 6px;}
63
 
63
 
64
+#context_help{ display:block; margin:0; padding:5px; position: absolute; border: 1px solid #222; background-color: #444; color:#fff; font-size: 12px;}
65
+
64
 form.newpost{ width:500px; margin:0 auto; padding:0;}
66
 form.newpost{ width:500px; margin:0 auto; padding:0;}
65
 form.newpost ul{ list-style-type:none; margin:20px 0 10px 0; padding:0;}
67
 form.newpost ul{ list-style-type:none; margin:20px 0 10px 0; padding:0;}
66
 form.newpost li{ margin:4px 0; padding:0; position:relative;}
68
 form.newpost li{ margin:4px 0; padding:0; position:relative;}

+ 1 - 1
admin/feeds.php Ver fichero

75
 	<body>
75
 	<body>
76
 		<div id="cont">
76
 		<div id="cont">
77
 			<div id="head">
77
 			<div id="head">
78
-				<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
78
+				<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
79
 				<ul id="nav">
79
 				<ul id="nav">
80
 					<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
80
 					<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
81
 			  	</ul>
81
 			  	</ul>

+ 1 - 1
admin/options.php Ver fichero

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

+ 19 - 0
admin/scripts/tools.js Ver fichero

56
 			$('#url_label').text(feed_url);
56
 			$('#url_label').text(feed_url);
57
 		}
57
 		}
58
 }
58
 }
59
+
60
+$(function(){
61
+	
62
+	// Fancy tooltip 
63
+	var t = '';
64
+	$(".help").hover(function(e){
65
+		t = $(this).attr('title');
66
+		$(this).removeAttr('title').animate({opacity:1.0},500,function(){
67
+			if($("#context_help").get().length < 1){
68
+				$('.box:last').append('<div id="context_help"></div>');
69
+			}
70
+			$('#context_help').hide().html(t).css({left:e.pageX, top:e.pageY + 20}).fadeIn('slow');
71
+		});
72
+	},function(){
73
+		$(this).stop().attr('title',t);
74
+		$('#context_help').fadeOut('fast', function(){$(this).css({left:0, top:0})});
75
+	});
76
+	
77
+});

+ 1 - 1
admin/settings.php Ver fichero

46
 		<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;")?></div>
46
 		<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;")?></div>
47
 		<div id="cont">
47
 		<div id="cont">
48
 			<div id="head">
48
 			<div id="head">
49
-				<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
49
+				<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
50
 				<ul id="nav">
50
 				<ul id="nav">
51
 					<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
51
 					<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
52
 			  	</ul>
52
 			  	</ul>

+ 5 - 5
admin/themes/admin/index.htm Ver fichero

352
 										&lt;code&gt; &lt;pre&gt; &lt;img&gt;
352
 										&lt;code&gt; &lt;pre&gt; &lt;img&gt;
353
 									</code>
353
 									</code>
354
 									<br /><br />
354
 									<br /><br />
355
-					                                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>
356
-		                			                <br /><br />
357
-                       				         	</span>
358
-                			                </p>
355
+									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>
356
+										<br /><br />
357
+									</span>
358
+								</p>
359
 							<p>
359
 							<p>
360
 								<input class="btn" type="submit" name="btnAdd" value="{if {$isEdition}}Modify{else}Create{/if} post" />
360
 								<input class="btn" type="submit" name="btnAdd" value="{if {$isEdition}}Modify{else}Create{/if} post" />
361
 							</p>
361
 							</p>
379
 						{if {$Posts_Number}}
379
 						{if {$Posts_Number}}
380
 							{block {$rows} as {$row}}
380
 							{block {$rows} as {$row}}
381
 								<div class="entry">
381
 								<div class="entry">
382
-									<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>
382
+									<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>
383
 										<p>{$row.Date_Added}</p>
383
 										<p>{$row.Date_Added}</p>
384
 									</div>
384
 									</div>
385
 									<div class="post">
385
 									<div class="post">

+ 1 - 1
admin/user.php Ver fichero

63
 		<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;");?></div>
63
 		<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;");?></div>
64
 		<div id="cont">
64
 		<div id="cont">
65
 			<div id="head">
65
 			<div id="head">
66
-				<h1><a href="<?php echo $conf->urlGelato;?>/" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
66
+				<h1><a href="<?php echo $conf->urlGelato;?>/admin/index.php" title="gelato :: <?php echo __("home")?>">gelato cms</a></h1>
67
 				<ul id="nav">
67
 				<ul id="nav">
68
 					<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
68
 					<li><a href="<?php echo $conf->urlGelato;?>/" title="<?php echo __("Take me to the tumblelog")?>"><?php echo __("Back to the Tumblelog")?></a></li>
69
 			  	</ul>
69
 			  	</ul>