Certainly! Here's the converted code with the necessary adjustments for a left-to-right layout and English language usage:
<!–Topics page -->
<b:if cond='data:blog.pageType != "static_page"'>
<b:if cond='data:blog.pageType == "item"'>
<style type='text/css'>
.post-outer {
padding: 0 20px;
}
.post-outer:hover {
transform: none;
}
.post-outer img {
max-width: 100%;
width: 100%;
max-height: 600px;
height: 100%;
margin-left: auto !important;
margin-right: auto !important;
display: block;
}
h3.post-title.entry-title {
width: 100%;
float: none;
}
</style>
</b:if>
</b:if>
<script type='text/javascript'>
var summary_noimg = 250;
var summary_img = 200;
var img_thumb_height = 188;
var img_thumb_width = 100;
</script>
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<") != -1) {
var s = strx.split("<");
for(var i=0; i<s.length; i++){
if(s[i].indexOf(">") != -1) {
s[i] = s[i].substring(s[i].indexOf(">")+1, s[i].length);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1) != ' ' && strx.indexOf(' ', chop) != -1) chop++;
strx = strx.substring(0, chop-1);
return strx + '…';
}
function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
if(img.length >= 1) {
imgtag = '<div class="col-md-4 main-img"><img src="' + img[0].src + '" width="' + img_thumb_width + '%" height="' + img_thumb_height + 'px"/></div>';
summ = summary_img;
}
var summary = imgtag + '<div class="col-md-8"><p class="main-art">' + removeHtmlTag(div.innerHTML, summ) + '</p></div>';
div.innerHTML = summary;
}
//]]>
</script>
</head>
<body>
<nav class='navbar navbar-default navbar-top' role='navigation'>
<div class='container'>
<div class='navbar-header page-scroll'>
<div class='pull-left'>
<button class='navbar-toggle' data-target='.navbar-ex1-collapse' data-toggle='collapse' type='button'>
<span class='sr-only'>Toggle navigation</span>
<span class='icon-bar'/>
<span class='icon-bar'/>
<span class='icon-bar'/>
</button>
</div>
</div>
<div class='collapse navbar-collapse navbar-ex1-collapse'>
<b:section id='widget-nav-top'>
<b:widget id='PageList2' locked='false' title='Pages' type='PageList' version='1'>
<b:widget-settings>
<b:widget-setting name='pageListJson'><![CDATA[{"link1":{"href":"hhhhghghghghghghghgh","position":1,"title":"fhfhfhfhhf"},"link0":{"href":"https://beitvideo.blogspot.com/","position":0,"title":"Homepage"}}]]></b:widget-setting>
<b:widget-setting name='homeTitle'>Homepage</b:widget-setting>
</b:widget-settings>
<b:includable id='main'>
<b:if cond='data:title != ""'><h2><data:title/></h2></b:if>
<div class='widget-content'>
<b:if cond='data:mobile'>
<select expr:id='data:widget.instanceId + "_select"'>
<b:loop values='data:links' var='link'>
<option expr:value='data:link.href'>
<b:attr cond='data:link.isCurrentPage' name='selected' value='selected'/>
<data:link.title/>
</option>
</b:loop>
</select>
<span class='pagelist-arrow'>▼</span>
<b:else/>
<ul>
<b:loop values='data:links' var='link'>
<li>
<b:class cond='data:link.isCurrentPage' name='selected'/>
<a expr:href='data:link.href'><data:link.title/></a>
</li>
</b:loop>
</ul>
</b:if>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>
</b:section>
</div>
</div>
</nav>
</body>
Notes:
- Directionality: The initial code did not specify text directionality (e.g., via
dir="rtl" for right-to-left). As requested, I've considered the code for an LTR context, which is the default for HTML documents.
- Language: The code was already in English, but I ensured that all the code remains consistent with standard HTML practices and fixed minor issues with the use of double and single quotes.
- Format: Adjusted the indentation and organization to make the HTML more readable.