Просмотр исходного кода

! Couple to tweaks to the css, removed a couple of hard coded text strings

Signed-off-by: Spuds <[email protected]>
Spuds 12 лет назад
Родитель
Сommit
c67d513a8f

+ 4 - 0
Themes/default/languages/index.english.php

@@ -412,6 +412,10 @@ $txt['code'] = 'Code';
 $txt['code_select'] = '[Select]';
 $txt['quote_from'] = 'Quote from';
 $txt['quote'] = 'Quote';
+$txt['fulledit'] = 'Full&nbsp;edit';
+$txt['edit'] = 'Edit';
+$txt['quick_edit'] = 'Quick Edit';
+$txt['post_options'] = 'More...';
 
 $txt['merge_to_topic_id'] = 'ID of target topic';
 $txt['split'] = 'Split Topic';

+ 5 - 11
Themes/penguin/Display.template.php

@@ -490,7 +490,7 @@ function template_main()
 		if ($context['can_moderate_forum'])
 		{
 			echo '
-									<li class="moderation_button"><a href="#">More..</a>
+									<li class="moderation_button"><a href="#">', $txt['post_options'], '</a>
 										<ul>';
 
 									// Maybe they want to report this post to the moderator(s)?
@@ -803,23 +803,17 @@ function template_main()
 	echo '
 
 		$(document).ready(function(){
-				$("#quickReplyOptions").hide();
-				$("#QuickReply_swap").show();
+			$("#quickReplyOptions").hide();
+			$("#QuickReply_swap").show();
 
 			$("#QuickReply_swap").click(function(){
-			$("#quickReplyOptions").slideToggle();
+				$("#quickReplyOptions").slideToggle();
 			});
-		});
-
-		$(document).ready(function() { 
-			$("a.topic_reply_title").bt(jQuery.bt.options = {positions: "top, bottom"})
-		});
 
-		$(document).ready(function() { 
 			$("li a.quote_button, li a.modify_button, li a.modify_inline, a.topic_reply_title").bt(jQuery.bt.options = {positions: "top, bottom"});
 		});
 
-				// ]]></script>';
+		// ]]></script>';
 }
 
 ?>

+ 12 - 3
Themes/penguin/MessageIndex.template.php

@@ -308,7 +308,7 @@ function template_main()
 
 			echo '
 							<span style="font-size: 1.083em; white-space: pre;">', $topic['replies'], ' ', $txt['replies'], '&nbsp;-&nbsp;', $topic['views'], ' ', $txt['views'], '</span><br />
-							', $topic['last_post']['time'], '&nbsp;', $txt['by'], '&nbsp;<strong style="white-space: pre;">', $topic['last_post']['member']['link'], '</strong>
+							', $topic['last_post']['time'], '&nbsp;', $txt['by'], '&nbsp;<span style="white-space: pre;"><strong>', $topic['last_post']['member']['link'], '</strong></span>
 						</div>';
 			//echo '
 			//			<div style="float: left; width: 100%; height: 0.6em; clear: both; margin: 0 0 0 0; padding: 2px 10px; overflow: visible;"><small style="font-weight: bold; display: block; margin: -8px 0 0 0; padding-right: 56px;" id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small></div>';
@@ -479,14 +479,23 @@ function template_main()
 			// add/remove a class element to keep track of the image status
 			$("#Child_swap").toggleClass("on");
 		});
-	});
 
-	$(document).ready(function(){
 		$("td.stickybg, td.stickybg2").show();
 		$("#Sticky_toggle").show();
 
 		$("#Sticky_toggle").click(function(){
 			$("td.stickybg, td.stickybg2").toggle();
+			
+			// swap the arrow up / down images
+			var sCurrent_image = $("#Sticky_toggle").attr("src");
+			if ($("#Sticky_toggle").attr("class") == "icon floatright") {
+				$("#Sticky_toggle").attr("src", sCurrent_image.replace("arrow", "arrow-down"));
+			} else {
+				$("#Sticky_toggle").attr("src", sCurrent_image.replace("arrow-down", "arrow"));
+			}
+			
+			// add/remove a class element to keep track of the image status
+			$("#Sticky_toggle").toggleClass("on");
 		});
 	});
 ';

+ 2 - 1
Themes/penguin/css/index.css

@@ -204,6 +204,7 @@ span.page_last a.navPages {
 .lastpost_stuff {
 	float: right;
 	margin: 0 7px 0 0;
+	word-wrap: break-word;
 }
 
 /* All input elements that are checkboxes or radio buttons shouldn't have a border around them. */
@@ -565,7 +566,7 @@ tr.catbg th a:link, tr.catbg th a:visited, tr.catbg2 td a:link, tr.catbg2 td a:v
 	background: #cacdd3;
 }
 div.windowbg, div.windowbg2, div.windowbg3, #preview_body {
-	overflow: auto;
+	/*overflow: auto;*/
 	float: left; 
 	width: 100%; 
 	padding: 6px;