Parcourir la source

jquery Tooltip and some links fixed

ravenlp il y a 15 ans
Parent
révision
aaa894da26

+ 1 - 1
admin/comments.php Voir le fichier

@@ -93,7 +93,7 @@ if ($isAdmin) {
93 93
 		<div id="div-process" style="display:none;"><?=__("Processing request&hellip;");?></div>
94 94
 		<div id="cont">
95 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 97
 				<ul id="nav">
98 98
 					<li><a href="<?php echo $conf->urlGelato;?>/" title="<?=__("Take me to the tumblelog")?>"><?=__("Back to the Tumblelog")?></a></li>
99 99
 			  	</ul>

+ 2 - 0
admin/css/style.css Voir le fichier

@@ -61,6 +61,8 @@ body{ background: #fff; text-align:center; font-family:"Trebuchet Ms", Verdana,
61 61
 
62 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 66
 form.newpost{ width:500px; margin:0 auto; padding:0;}
65 67
 form.newpost ul{ list-style-type:none; margin:20px 0 10px 0; padding:0;}
66 68
 form.newpost li{ margin:4px 0; padding:0; position:relative;}

+ 1 - 1
admin/feeds.php Voir le fichier

@@ -75,7 +75,7 @@ if ($user->isAdmin()) {
75 75
 	<body>
76 76
 		<div id="cont">
77 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 79
 				<ul id="nav">
80 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 81
 			  	</ul>

+ 1 - 1
admin/options.php Voir le fichier

@@ -88,7 +88,7 @@ if ($user->isAdmin()) {
88 88
 		<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;")?></div>
89 89
 		<div id="cont">
90 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 92
 				<ul id="nav">
93 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 94
 			  	</ul>

+ 19 - 0
admin/scripts/tools.js Voir le fichier

@@ -56,3 +56,22 @@ function selectFeedType(feed_url,username){
56 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 Voir le fichier

@@ -46,7 +46,7 @@ if ($user->isAdmin()) {
46 46
 		<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;")?></div>
47 47
 		<div id="cont">
48 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 50
 				<ul id="nav">
51 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 52
 			  	</ul>

+ 5 - 5
admin/themes/admin/index.htm Voir le fichier

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

+ 1 - 1
admin/user.php Voir le fichier

@@ -63,7 +63,7 @@ if ($user->isAdmin()) {
63 63
 		<div id="div-process" style="display:none;"><?php echo __("Processing request&hellip;");?></div>
64 64
 		<div id="cont">
65 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 67
 				<ul id="nav">
68 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 69
 			  	</ul>