السلام عليكم ورحمة الله وبركاته ،اليوم سوف نتعرف على كيفية
إضافة الروابط الأوتوماتيكية لتدوينات بلوجر تحت كل موضوع ،حيث يُعرض على شكل جدول أسفل كل تدوينة ويتضمن روابط المقال على شكل 3 صيغ :
URL,HTML,BBCODEوالان نترككم مع كيفية تطبيق الإضافة ,
#table {
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
font-size: 13px;
margin: 10px -12px;
width: 580px;
text-align: left;
border-collapse: collapse;
direction:ltr;
}
#table th {
font-size: 13px;
font-weight: normal;
padding: 8px;
background: #b9c9fe url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijVvP_DbHg4lHw4rvGL-48ADwx_wwAMjB-i_rGIh04MGHlRZYpjdt-8xreMCttAAqUwQVPGAlhW1EBiTo1kowc3SnK8hhZ3lW5GlziCkbJtyez7iEcmeLGYrls1qGMr48gw9TcUe7xFMzp/s1600/gradhead.png') repeat-x;
border-top: 2px solid #d3ddff;
border-bottom: 1px solid #fff;
color: #039;
}
#table td {
padding: 8px;
border-bottom: 1px solid #fff;
color: #4c4c4c;
border-top: 1px solid #fff;
background: #e8edff url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiSKs1Nr-HB5FeEwJv8k-lM74ZB0VkHRW6v5Axw5CUubzRZVENGgGGT4PLW1OYbAdApLyKzm3O3cFCTKgQcXKh3ILLVSlPXsAxxYxUgUfX6FUQLOlfakLqKnq5YksEYB1qi4Axpc64o2Zf/s1600/gradback.png') repeat-x;
}
#table tfoot tr td {
background: #e8edff;
font-size: 20px;
color: #99c;
text-align:center;
}
#table tbody tr:hover td {
background: #d0dafd url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg195yjb5v6hgFT47yVWNgk3Cj3b6BI1dk7-s8DspYGKRbxD0XmuvFBwSX33_ArGB7NduHeZ_LfQUrHBJHfJ0J44TVimbi3Jsafhnr-rpbn4s-hOE8vMOIBUEEShG_Q8oWa3KNcLMtqTCbq/s1600/gradhover.png') repeat-x;
color: #339;
}
#table a:hover {
text-decoration:underline;
}
<b:if cond='data:blog.pageType == "item"'>
<table id='table' summary='روابط الموضوع'>
<tfoot>
<tr>
<td colspan='2'>روابط هذه التدوينة قابلة للنسخ واللصق</td>
</tr>
</tfoot>
<tr>
<td>URL</td>
<td><input expr:value='data:post.canonicalUrl' onclick='this.focus(); this.select();' readonly='readonly' style='width: 560px;' type='text'/></td>
</tr><tr>
<td>HTML</td>
<td><input expr:value='"<a href=&quot;" + data:post.canonicalUrl + "&quot; title=&quot;" + data:post.title + "&quot;>" + data:post.title + "</a>"' onclick='this.focus(); this.select();' readonly='readonly' style='width: 560px;' type='text'/></td>
</tr><tr>
<td>BBCode</td>
<td><input expr:value='"[url=" + data:post.canonicalUrl + "]" + data:post.title + "[/url]"' onclick='this.focus(); this.select();' readonly='readonly' style='width: 560px;' type='text'/></td>
</tr>
</table> </b:if>