Home প্রিমিয়াম পোস্ট APPS STORE NEW WEBSITE TO APP কোর্স

প্রম্পট এবং কোড দেখুন

AI Test Lab

Test your prompts directly on official platforms.

সরাসরি ব্লগার এডমিন এবং ব্লগার পাবলিশ রেডি কোড।

 




<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:css='false' b:defaultwidth='1100' b:layoutsVersion='3' b:responsive='true' b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
  <meta content='width=device-width, initial-scale=1' name='viewport'/>
  <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>
  <b:include data='blog' name='all-head-content'/>
  <title><data:blog.pageTitle/></title>
  <link expr:href='data:blog.homepageUrl + &quot;feeds/posts/default&quot;' rel='alternate' title='Atom' type='application/atom+xml'/>

  <b:skin><![CDATA[
/* ===== News Portal Theme: ডিফল্ট রঙ/ফন্ট (Admin Panel থেকে বদলায়) ===== */
:root{
  --primary:#b91c1c; --secondary:#111827; --accent:#f59e0b;
  --header-bg:#ffffff; --footer-bg:#111827;
  --text:#1f2937; --muted:#6b7280; --line:#e5e7eb; --bg:#f3f4f6; --card:#ffffff;
  --font-heading:'Hind Siliguri',sans-serif; --font-body:'Noto Sans Bengali','Hind Siliguri',sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-body);font-size:17px;line-height:1.75}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
h1,h2,h3,h4{font-family:var(--font-heading);line-height:1.35;margin:0}
.np-wrap{max-width:1180px;margin:0 auto;padding:0 14px}
.np-ad{text-align:center;margin:12px auto;max-width:100%;overflow:hidden}
.np-ad:empty{display:none}
.np-ad-label{font-size:11px;color:var(--muted);display:block}

/* টপ বার */
.np-topbar{background:var(--secondary);color:#e5e7eb;font-size:13px}
.np-topbar .np-wrap{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:34px;flex-wrap:wrap}
.np-social{display:flex;gap:6px;flex-wrap:wrap}
.np-social a{padding:1px 9px;border:1px solid rgba(255,255,255,.25);border-radius:3px;font-size:12px}
.np-social a:hover{background:var(--primary);border-color:var(--primary)}

/* হেডার */
.np-header{background:var(--header-bg);border-bottom:1px solid var(--line)}
.np-header .np-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;padding-bottom:14px}
.np-brand{display:flex;align-items:center;gap:12px;min-width:0}
.np-brand img{display:block;max-height:64px;width:auto}
.np-logo-mobile{display:none!important}
.np-brand-text strong{display:block;font-family:var(--font-heading);font-size:34px;color:var(--primary);line-height:1.1}
.np-brand-text span{font-size:13px;color:var(--muted)}
.np-search{display:flex}
.np-search input{border:1px solid var(--line);border-right:0;padding:8px 12px;font:inherit;font-size:15px;width:230px;border-radius:4px 0 0 4px;background:#fff}
.np-search button{border:0;background:var(--primary);color:#fff;padding:0 16px;font:inherit;font-size:15px;border-radius:0 4px 4px 0;cursor:pointer}

/* নেভিগেশন */
.np-nav{background:var(--primary);color:#fff;position:sticky;top:0;z-index:50}
.np-nav .np-wrap{display:flex;align-items:center;gap:4px}
.np-nav a{display:block;padding:10px 13px;font-family:var(--font-heading);font-weight:600;white-space:nowrap}
.np-nav a:hover{background:rgba(0,0,0,.18)}
.np-menu{display:flex;overflow-x:auto;scrollbar-width:none}
.np-menu::-webkit-scrollbar{display:none}
.np-home-link{font-size:18px}

/* ব্রেকিং */
.np-breaking{background:#fff;border-bottom:1px solid var(--line)}
.np-breaking .np-wrap{display:flex;align-items:center;gap:12px;overflow:hidden}
.np-breaking-label{background:var(--accent);color:#111;font-family:var(--font-heading);font-weight:700;padding:5px 14px;margin:6px 0;white-space:nowrap}
.np-ticker{overflow:hidden;flex:1;white-space:nowrap}
.np-ticker-track{display:inline-block;padding-left:100%;animation:np-scroll 45s linear infinite}
.np-ticker:hover .np-ticker-track{animation-play-state:paused}
.np-ticker a{margin-right:36px;font-weight:600}
.np-ticker a:hover{color:var(--primary)}
@keyframes np-scroll{to{transform:translateX(-100%)}}
@media (prefers-reduced-motion:reduce){.np-ticker-track{animation:none;padding-left:0}}

/* লেআউট */
.np-main{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;margin:18px auto}
.np-box{background:var(--card);border:1px solid var(--line);padding:16px;margin-bottom:20px}
.np-sec-title{display:flex;align-items:center;gap:10px;font-size:22px;margin:0 0 14px;padding-bottom:8px;border-bottom:2px solid var(--line);position:relative}
.np-sec-title:after{content:"";position:absolute;left:0;bottom:-2px;width:70px;height:2px;background:var(--primary)}
.np-sec-title a:hover{color:var(--primary)}

/* হিরো / গ্রিড / লিস্ট */
.np-hero{display:grid;grid-template-columns:1.5fr 1fr;gap:12px}
.np-hero-big{grid-row:span 2}
.np-hero-side{display:grid;grid-template-rows:1fr 1fr;gap:12px}
.np-hero-card{position:relative;display:block;min-height:170px;background:#222 center/cover no-repeat;color:#fff;overflow:hidden}
.np-hero-big.np-hero-card{min-height:360px}
.np-hero-card:before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 35%,rgba(0,0,0,.85))}
.np-hero-card h3{position:absolute;left:0;right:0;bottom:0;padding:14px;font-size:19px;z-index:1}
.np-hero-big h3{font-size:26px}
.np-hero-card:hover h3{text-decoration:underline}
.np-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.np-card{display:block}
.np-card .np-thumb{aspect-ratio:16/9;background:#e5e7eb center/cover no-repeat;display:block;width:100%;object-fit:cover}
.np-card h3{font-size:18px;margin:8px 0 2px}
.np-card:hover h3{color:var(--primary)}
.np-meta{font-size:13px;color:var(--muted)}
.np-excerpt{font-size:15px;color:#4b5563;margin:4px 0 0}
.np-list .np-card{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.np-list .np-card:last-child{border:0}
.np-list .np-card h3{margin-top:0;font-size:17px}
.np-list .np-thumb{aspect-ratio:4/3}

/* সাইডবার */
.np-side .np-box h2{font-size:19px;margin-bottom:10px;padding-bottom:6px;border-bottom:2px solid var(--primary)}
.np-pop{counter-reset:pop}
.np-pop .np-card{grid-template-columns:90px 1fr;counter-increment:pop}

/* পোস্ট */
.np-post h1{font-size:32px;margin-bottom:8px}
.np-labels a{display:inline-block;background:var(--primary);color:#fff;font-size:12px;padding:1px 10px;margin:0 6px 6px 0;border-radius:2px}
.np-article-body{font-size:19px;line-height:1.95;overflow-wrap:anywhere}
.np-article-body img{height:auto;margin:10px auto;display:block}
.np-article-body iframe{max-width:100%}
.np-share{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.np-share a,.np-share button{border:0;color:#fff;font:inherit;font-size:14px;padding:5px 14px;border-radius:3px;cursor:pointer}
.np-pager{display:flex;justify-content:space-between;gap:10px;margin:18px 0}
.np-pager a{background:var(--primary);color:#fff;padding:8px 18px;border-radius:3px}
.np-empty{padding:30px;text-align:center;color:var(--muted)}

/* ফুটার */
.np-footer{background:var(--footer-bg);color:#d1d5db;margin-top:24px;padding:28px 0 90px;font-size:15px}
.np-footer .np-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.np-footer h4{color:#fff;margin-bottom:10px;font-size:18px}
.np-footer a:hover{color:#fff;text-decoration:underline}
.np-footer li{list-style:none;margin:4px 0}
.np-footer ul{margin:0;padding:0}
.np-footer img{max-height:56px;width:auto}
.np-copy{border-top:1px solid rgba(255,255,255,.15);margin-top:22px;padding-top:14px;text-align:center;font-size:14px}

/* মোবাইল স্টিকি অ্যাড */
#np-sticky{display:none;position:fixed;left:0;right:0;bottom:0;z-index:999;background:#fff;border-top:1px solid var(--line);text-align:center;padding:4px 0;max-height:110px;overflow:hidden}
#np-sticky.on{display:block}
#np-sticky button{position:absolute;right:4px;top:2px;border:0;background:#111;color:#fff;width:22px;height:22px;border-radius:50%;line-height:22px;font-size:13px;cursor:pointer;z-index:2}

@media (max-width:900px){
  .np-main{grid-template-columns:1fr}
  .np-hero{grid-template-columns:1fr}
  .np-hero-big.np-hero-card{min-height:240px}
  .np-hero-side{grid-template-rows:none;grid-template-columns:1fr 1fr}
  .np-footer .np-cols{grid-template-columns:1fr}
}
@media (max-width:640px){
  body{font-size:16px}
  .np-logo-desktop{display:none!important}
  .np-logo-mobile{display:block!important}
  .np-brand-text strong{font-size:26px}
  .np-search{display:none}
  .np-grid{grid-template-columns:1fr}
  .np-post h1{font-size:25px}
  .np-article-body{font-size:18px}
  .np-hero-side{grid-template-columns:1fr}
  .np-list .np-card{grid-template-columns:105px 1fr}
}
@media print{.np-nav,.np-topbar,.np-ad,.np-side,.np-share,#np-sticky,.np-footer{display:none!important}}
]]></b:skin>
</head>

<body expr:data-ptype='data:blog.pageType'>

  <div class='np-ad' data-placement='header_top'/>

  <div class='np-topbar'>
    <div class='np-wrap'>
      <span id='np-date'/>
      <div class='np-social' id='np-social-top'/>
    </div>
  </div>

  <header class='np-header'>
    <div class='np-wrap'>
      <a class='np-brand' expr:href='data:blog.homepageUrl'>
        <img alt='Logo' class='np-logo-desktop' id='np-logo' style='display:none'/>
        <img alt='Logo' class='np-logo-mobile' id='np-logo-m' style='display:none'/>
        <span class='np-brand-text' id='np-brand-text'>
          <strong id='np-name'><data:blog.title/></strong>
          <span id='np-tagline'/>
        </span>
      </a>
      <form action='/search' class='np-search' method='get'>
        <input aria-label='খুঁজুন' name='q' placeholder='খবর খুঁজুন...' type='search'/>
        <button type='submit'>খ&#2497;&#2433;জ&#2497;ন</button>
      </form>
    </div>
  </header>

  <nav aria-label='মেনু' class='np-nav'>
    <div class='np-wrap'>
      <a class='np-home-link' expr:href='data:blog.homepageUrl' title='হোম'>হ&#2507;ম</a>
      <div class='np-menu' id='np-menu'/>
    </div>
  </nav>

  <div class='np-breaking' id='np-breaking' style='display:none'>
    <div class='np-wrap'>
      <span class='np-breaking-label' id='np-breaking-label'>ব&#2509;র&#2503;ক&#2495;&#2434;</span>
      <div class='np-ticker'><div class='np-ticker-track' id='np-ticker'/></div>
    </div>
  </div>

  <div class='np-wrap'><div class='np-ad' data-placement='header_bottom'/></div>

  <div class='np-wrap np-main'>
    <main id='np-content'>

      <b:if cond='data:blog.pageType == &quot;index&quot; and not data:blog.searchQuery and not data:blog.searchLabel'>
        <div class='np-ad' data-placement='homepage_top'/>
        <div id='np-home'/>
        <div class='np-ad' data-placement='homepage_middle'/>
      </b:if>
      <b:if cond='data:blog.searchLabel or data:blog.searchQuery'>
        <div class='np-ad' data-placement='category_top'/>
      </b:if>

      <b:section class='np-main-sec' id='main-sec' maxwidgets='1' showaddelement='no'>
        <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog' version='2' visible='true'>
          <b:widget-settings>
            <b:widget-setting name='showDateHeader'>false</b:widget-setting>
            <b:widget-setting name='showShareButtons'>false</b:widget-setting>
            <b:widget-setting name='showCommentLink'>false</b:widget-setting>
            <b:widget-setting name='showAuthor'>false</b:widget-setting>
            <b:widget-setting name='style.unittype'>TextAndImage</b:widget-setting>
            <b:widget-setting name='timestampLabel'/>
            <b:widget-setting name='reactionsLabel'/>
            <b:widget-setting name='showAuthorProfile'>false</b:widget-setting>
            <b:widget-setting name='style.layout'>1x1</b:widget-setting>
            <b:widget-setting name='showLabels'>true</b:widget-setting>
            <b:widget-setting name='showLocation'>true</b:widget-setting>
            <b:widget-setting name='postLabelsLabel'/>
            <b:widget-setting name='showTimestamp'>true</b:widget-setting>
            <b:widget-setting name='postsPerAd'>3</b:widget-setting>
            <b:widget-setting name='showBacklinks'>false</b:widget-setting>
            <b:widget-setting name='showInlineAds'>true</b:widget-setting>
            <b:widget-setting name='showReactions'>false</b:widget-setting>
          </b:widget-settings>
          <b:includable id='main' var='top'>
            <b:if cond='data:blog.pageType == &quot;item&quot;'>
              <b:loop values='data:posts' var='post'>
                <article class='np-box np-post'>
                  <div class='np-labels'>
                    <b:loop values='data:post.labels' var='label'>
                      <b:if cond='data:label.name != &quot;featured&quot; and data:label.name != &quot;breaking&quot;'>
                        <a expr:href='data:label.url' rel='tag'><data:label.name/></a>
                      </b:if>
                    </b:loop>
                  </div>
                  <h1 id='np-post-title'><data:post.title/></h1>
                  <div class='np-meta'><data:post.timestamp/></div>
                  <div class='np-ad' data-placement='article_top'/>
                  <div class='np-share' expr:data-title='data:post.title' expr:data-url='data:post.url' id='np-share-top'/>
                  <div class='np-article-body' expr:data-post-id='data:post.id' id='np-article-body'><data:post.body/></div>
                  <div class='np-ad' data-placement='article_bottom'/>
                  <div class='np-share' expr:data-title='data:post.title' expr:data-url='data:post.url' id='np-share-bottom'/>
                </article>
              </b:loop>
            <b:elseif cond='data:blog.pageType == &quot;static_page&quot;'/>
              <b:loop values='data:posts' var='post'>
                <article class='np-box np-post'>
                  <h1><data:post.title/></h1>
                  <div class='np-article-body'><data:post.body/></div>
                </article>
              </b:loop>
            <b:else/>
              <div class='np-box'>
                <b:if cond='data:blog.searchLabel'>
                  <h2 class='np-sec-title'><span><data:blog.searchLabel/></span></h2>
                <b:elseif cond='data:blog.searchQuery'/>
                  <h2 class='np-sec-title'><span>অন&#2497;সন&#2509;ধ&#2494;ন: <data:blog.searchQuery/></span></h2>
                <b:else/>
                  <h2 class='np-sec-title'><span>সর&#2509;বশ&#2503;ষ খবর</span></h2>
                </b:if>
                <b:if cond='data:posts.size == 0'>
                  <div class='np-empty'>ক&#2507;ন&#2507; খবর প&#2494;ওয&#2492;&#2494; য&#2494;য&#2492;ন&#2495;&#2404;</div>
                </b:if>
                <div class='np-grid'>
                  <b:loop values='data:posts' var='post'>
                    <a class='np-card' expr:href='data:post.url'>
                      <b:if cond='data:post.thumbnailUrl'>
                        <img alt='' class='np-thumb' expr:src='data:post.thumbnailUrl' loading='lazy'/>
                      <b:else/>
                        <span class='np-thumb'/>
                      </b:if>
                      <h3><data:post.title/></h3>
                      <span class='np-meta'><data:post.timestamp/></span>
                      <p class='np-excerpt'><data:post.snippet/></p>
                    </a>
                  </b:loop>
                </div>
                <div class='np-pager'>
                  <b:if cond='data:newerPageUrl'><a expr:href='data:newerPageUrl'>&#8592; নত&#2497;ন খবর</a><b:else/><span/></b:if>
                  <b:if cond='data:olderPageUrl'><a expr:href='data:olderPageUrl'>প&#2497;রন&#2507; খবর &#8594;</a></b:if>
                </div>
              </div>
            </b:if>
          </b:includable>
          <b:includable id='aboutPostAuthor'>
  <div class='author-name'>
    <a class='g-profile' expr:href='data:post.author.profileUrl' rel='author' title='author profile'>
      <span>
        <data:post.author.name/>
      </span>
    </a>
  </div>
  <div>
    <span class='author-desc'>
      <data:post.author.aboutMe/>
    </span>
  </div>
</b:includable>
          <b:includable id='addComments'>
  <a expr:href='data:post.commentsUrl' expr:onclick='data:post.commentsUrlOnclick'>
    <b:message name='messages.postAComment'/>
  </a>
</b:includable>
          <b:includable id='commentAuthorAvatar'>
  <div class='avatar-image-container'>
    <img class='author-avatar' expr:src='data:comment.authorAvatarSrc' height='35' width='35'/>
  </div>
</b:includable>
          <b:includable id='commentDeleteIcon' var='comment'>
  <span expr:class='&quot;item-control &quot; + data:comment.adminClass'>
    <b:if cond='data:showCmtPopup'>
      <div class='goog-toggle-button'>
        <div class='goog-inline-block comment-action-icon'/>
      </div>
    <b:else/>
      <a class='comment-delete' expr:href='data:comment.deleteUrl' expr:title='data:messages.deleteComment'>
        <img src='https://resources.blogblog.com/img/icon_delete13.gif'/>
      </a>
    </b:if>
  </span>
</b:includable>
          <b:includable id='commentForm' var='post'>
  <div class='comment-form'>
    <a name='comment-form'/>
    <h4 id='comment-post-message'><data:messages.postAComment/></h4>
    <b:if cond='data:this.messages.blogComment != &quot;&quot;'>
      <p><data:this.messages.blogComment/></p>
    </b:if>
    <b:include data='post' name='commentFormIframeSrc'/>
    <iframe allowtransparency='allowtransparency' class='blogger-iframe-colorize blogger-comment-from-post' expr:height='data:cmtIframeInitialHeight ?: &quot;90px&quot;' frameborder='0' id='comment-editor' name='comment-editor' src='' width='100%'/>
    <data:post.cmtfpIframe/>
    <script type='text/javascript'>
      BLOG_CMT_createIframe(&#39;<data:post.appRpcRelayPath/>&#39;);
    </script>
  </div>
</b:includable>
          <b:includable id='commentFormIframeSrc' var='post'>
  <a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/>
</b:includable>
          <b:includable id='commentItem' var='comment'>
  <div class='comment' expr:id='&quot;c&quot; + data:comment.id'>
    <b:include cond='data:blog.enabledCommentProfileImages' name='commentAuthorAvatar'/>

    <div class='comment-block'>
      <div class='comment-author'>
        <b:if cond='data:comment.authorUrl'>
          <b:message name='messages.authorSaidWithLink'>
            <b:param expr:value='data:comment.author' name='authorName'/>
            <b:param expr:value='data:comment.authorUrl' name='authorUrl'/>
          </b:message>
        <b:else/>
          <b:message name='messages.authorSaid'>
            <b:param expr:value='data:comment.author' name='authorName'/>
          </b:message>
        </b:if>
      </div>
      <div expr:class='&quot;comment-body&quot; + (data:comment.isDeleted ? &quot; deleted&quot; : &quot;&quot;)'>
        <data:comment.body/>
      </div>
      <div class='comment-footer'>
        <span class='comment-timestamp'>
          <a expr:href='data:comment.url' title='comment permalink'>
            <data:comment.timestamp/>
          </a>
          <b:include data='comment' name='commentDeleteIcon'/>
        </span>
      </div>
    </div>
  </div>
</b:includable>
          <b:includable id='commentList' var='comments'>
  <div id='comments-block'>
    <b:loop values='data:comments' var='comment'>
      <b:include data='comment' name='commentItem'/>
    </b:loop>
  </div>
</b:includable>
          <b:includable id='commentPicker' var='post'>
  <b:if cond='data:post.showThreadedComments'>
    <b:include data='post' name='threadedComments'/>
  <b:else/>
    <b:include data='post' name='comments'/>
  </b:if>
</b:includable>
          <b:includable id='comments' var='post'>
  <section expr:class='&quot;comments&quot; + (data:post.embedCommentForm ? &quot; embed&quot; : &quot;&quot;)' expr:data-num-comments='data:post.numberOfComments' id='comments'>
    <a name='comments'/>
    <b:if cond='data:post.allowComments'>

      <b:include name='commentsTitle'/>

      <div expr:id='data:widget.instanceId + &quot;_comments-block-wrapper&quot;'>
        <b:include cond='data:post.comments' data='post.comments' name='commentList'/>
      </div>

      <b:if cond='data:post.commentPagingRequired'>
        <div class='paging-control-container'>
          <b:if cond='data:post.hasOlderLinks'>
            <a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'>
              <data:messages.oldest/>
            </a>
            <a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'>
              <data:messages.older/>
            </a>
          </b:if>

          <span class='comment-range-text'>
            <data:post.commentRangeText/>
          </span>

          <b:if cond='data:post.hasNewerLinks'>
            <a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'>
              <data:messages.newer/>
            </a>
            <a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'>
              <data:messages.newest/>
            </a>
          </b:if>
        </div>
      </b:if>

      <div class='footer'>
        <b:if cond='data:post.embedCommentForm'>
          <b:if cond='data:post.allowNewComments'>
            <b:include data='post' name='commentForm'/>
          <b:else/>
            <data:post.noNewCommentsText/>
          </b:if>
        <b:else/>
          <b:if cond='data:post.allowComments'>
            <b:include data='post' name='addComments'/>
          </b:if>
        </b:if>
      </div>
    </b:if>
    <b:if cond='data:showCmtPopup'>
      <div id='comment-popup'>
        <iframe allowtransparency='allowtransparency' frameborder='0' id='comment-actions' name='comment-actions' scrolling='no'>
        </iframe>
      </div>
    </b:if>
  </section>
</b:includable>
          <b:includable id='commentsTitle'>
  <h3 class='title'><data:messages.comments/></h3>
</b:includable>
          <b:includable id='feedLinks'>
  <b:if cond='!data:view.isPost'> <!-- Blog feed links -->
    <b:if cond='data:feedLinks'>
      <div class='blog-feeds'>
        <b:include data='feedLinks' name='feedLinksBody'/>
      </div>
    </b:if>
  <b:else/> <!--Post feed links -->
    <div class='post-feeds'>
      <b:loop values='data:posts' var='post'>
        <b:if cond='data:post.allowComments and data:post.feedLinks'>
          <b:include data='post.feedLinks' name='feedLinksBody'/>
        </b:if>
      </b:loop>
    </div>
  </b:if>
</b:includable>
          <b:includable id='feedLinksBody' var='links'>
  <div class='feed-links'>
  <data:messages.subscribeTo/>
  <b:loop values='data:links' var='f'>
     <a class='feed-link' expr:href='data:f.url' expr:type='data:f.mimeType' target='_blank'><data:f.name/> (<data:f.feedType/>)</a>
  </b:loop>
  </div>
</b:includable>
          <b:includable id='homePageLink'>
  <a class='home-link' expr:href='data:blog.homepageUrl'>
    <data:messages.home/>
  </a>
</b:includable>
          <b:includable id='iframeComments' var='post'>
  <!-- G+ comments, no longer available. The includable is retained for backwards-compatibility. -->
</b:includable>
          <b:includable id='inlineAd' var='post'>
  <b:if cond='!data:view.isPreview'>
    <b:if cond='data:this.adCode or data:this.adClientId or data:blog.adsenseClientId'>
      <!-- Ad -->
      <div class='inline-ad'>
        <b:if cond='data:this.adCode != &quot;&quot;'>
          <data:this.adCode/>
        <b:else/>
          <b:include cond='data:this.adClientId or data:blog.adsenseClientId' name='defaultAdUnit'/>
        </b:if>
      </div>
    </b:if>
  <b:else/>
    <div class='inline-ad'>
      <div class='inline-ad-placeholder'>
        <span><b:message name='messages.adsGoHere'/></span>
      </div>
    </div>
  </b:if>
</b:includable>
          <b:includable id='nextPageLink'>
  <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:messages.olderPosts'>
    <data:messages.olderPosts/>
  </a>
</b:includable>
          <b:includable id='post' var='post'>
  <div class='post'>
    <b:include data='post' name='postMeta'/>
    <b:include data='post' name='postTitle'/>
    <b:include name='headerByline'/>
    <b:if cond='data:view.isSingleItem'>
      <b:include data='post' name='postBody'/>
    <b:else/>
      <b:include data='post' name='postBodySnippet'/>
      <b:include data='post' name='postJumpLink'/>
    </b:if>
    <b:include data='post' name='postFooter'/>
  </div>
</b:includable>
          <b:includable id='postBody' var='post'>
  <!-- If metaDescription is empty, use the post body as the schema.org description too, for G+/FB snippeting. -->
  <div class='post-body entry-content float-container' expr:id='&quot;post-body-&quot; + data:post.id'>
    <data:post.body/>
  </div>
</b:includable>
          <b:includable id='postBodySnippet' var='post'>
  <b:include data='post' name='postBody'/>
</b:includable>
          <b:includable id='postCommentsAndAd' var='post'>
  <article class='post-outer-container'>
    <!-- Post title and body -->
    <div class='post-outer'>
      <b:include data='post' name='post'/>
    </div>

    <!-- Comments -->
    <b:include cond='data:view.isSingleItem' data='post' name='commentPicker'/>

    <!-- Show ad inside post container, after comments, if single item. -->
    <b:include cond='data:view.isSingleItem and data:post.includeAd' data='post' name='inlineAd'/>
  </article>

  <!-- Show ad outside post container (between posts) for feed pages. -->
  <b:include cond='data:view.isMultipleItems and data:post.includeAd' data='post' name='inlineAd'/>
</b:includable>
          <b:includable id='postCommentsLink'>
  <b:if cond='data:view.isMultipleItems'>
    <span class='byline post-comment-link container'>
      <b:include cond='data:post.commentSource != 1' name='commentsLink'/>
    </span>
  </b:if>
</b:includable>
          <b:includable id='postFooter' var='post'>
  <div class='post-footer'>
    <b:include name='footerBylines'/>
    <b:include data='post' name='postFooterAuthorProfile'/>
  </div>
</b:includable>
          <b:includable id='postFooterAuthorProfile' var='post'>
  <b:if cond='data:post.author.aboutMe and data:view.isPost'>
    <div class='author-profile'>
      <b:if cond='data:post.author.authorPhoto.url'>
        <img class='author-image' expr:src='data:post.author.authorPhoto.url' width='50px'/>
        <div class='author-about'>
          <b:include data='post' name='aboutPostAuthor'/>
        </div>
      <b:else/>
        <b:include data='post' name='aboutPostAuthor'/>
      </b:if>
    </div>
  </b:if>
</b:includable>
          <b:includable id='postHeader' var='post'>
  <b:include name='headerByline'/>
</b:includable>
          <b:includable id='postMeta' var='post'>
  <b:include data='post' name='postMetadataJSON'/>
</b:includable>
          <b:includable id='postPagination'>
  <div class='blog-pager container' id='blog-pager'>
    <b:include cond='data:newerPageUrl' name='previousPageLink'/>
    <b:include cond='data:olderPageUrl' name='nextPageLink'/>
    <b:include cond='data:view.url != data:blog.homepageUrl' name='homePageLink'/>
  </div>
</b:includable>
          <b:includable id='postTitle' var='post'>
  <a expr:name='data:post.id'/>
  <b:if cond='data:post.title != &quot;&quot;'>
    <h3 class='post-title entry-title'>
      <b:if cond='data:post.link or (data:post.url and data:view.url != data:post.url)'>
        <a expr:href='data:post.link ?: data:post.url'><data:post.title/></a>
      <b:else/>
        <data:post.title/>
      </b:if>
    </h3>
  </b:if>
</b:includable>
          <b:includable id='previousPageLink'>
  <a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' expr:title='data:messages.newerPosts'>
    <data:messages.newerPosts/>
  </a>
</b:includable>
          <b:includable id='threadedCommentForm' var='post'>
  <div class='comment-form'>
    <a name='comment-form'/>
    <h4 id='comment-post-message'><data:messages.postAComment/></h4>
    <b:if cond='data:this.messages.blogComment != &quot;&quot;'>
      <p><data:this.messages.blogComment/></p>
    </b:if>
    <b:include data='post' name='commentFormIframeSrc'/>
    <iframe allowtransparency='allowtransparency' class='blogger-iframe-colorize blogger-comment-from-post' expr:height='data:cmtIframeInitialHeight ?: &quot;90px&quot;' frameborder='0' id='comment-editor' name='comment-editor' src='' width='100%'/>
    <data:post.cmtfpIframe/>
    <script type='text/javascript'>
      BLOG_CMT_createIframe(&#39;<data:post.appRpcRelayPath/>&#39;);
    </script>
  </div>
</b:includable>
          <b:includable id='threadedCommentJs' var='post'>
  <script async='async' expr:src='data:post.commentSrc' type='text/javascript'/>
  <b:template-script inline='true' name='threaded_comments'/>
  <script type='text/javascript'>
    blogger.widgets.blog.initThreadedComments(
        <data:post.commentJso/>,
        <data:post.commentMsgs/>,
        <data:post.commentConfig/>);
  </script>
</b:includable>
          <b:includable id='threadedComments' var='post'>
  <section class='comments threaded' expr:data-embed='data:post.embedCommentForm' expr:data-num-comments='data:post.numberOfComments' id='comments'>
    <a name='comments'/>

    <b:include name='commentsTitle'/>

    <div class='comments-content'>
      <b:if cond='data:post.embedCommentForm'>
        <b:include data='post' name='threadedCommentJs'/>
      </b:if>
      <div id='comment-holder'>
         <data:post.commentHtml/>
      </div>
    </div>

    <p class='comment-footer'>
      <b:if cond='data:post.allowNewComments'>
        <b:include data='post' name='threadedCommentForm'/>
      <b:else/>
        <data:post.noNewCommentsText/>
      </b:if>
      <b:if cond='data:post.showManageComments'>
        <b:include data='post' name='manageComments'/>
      </b:if>
    </p>

    <b:if cond='data:showCmtPopup'>
      <div id='comment-popup'>
        <iframe allowtransparency='allowtransparency' frameborder='0' id='comment-actions' name='comment-actions' scrolling='no'>
        </iframe>
      </div>
    </b:if>
  </section>
</b:includable>
          <b:includable id='tooltipCss'>
  <style>
    .post-body a.b-tooltip-container {
      position: relative;
      display: inline-block;
    }

    .post-body a.b-tooltip-container .b-tooltip {
      display: block !important;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translate(-20%, 1px);
      visibility: hidden;
      opacity: 0;
      z-index: 1;
      transition: opacity 0.2s ease-in-out;
    }

    .post-body a.b-tooltip-container .b-tooltip iframe {
      width: 200px;
      height: 198px;
      max-width: none;
      border: none;
      border-radius: 20px;
      box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.2);
    }

    @media (hover: hover) {
      .post-body a.b-tooltip-container:hover .b-tooltip {
        visibility: visible;
        opacity: 1;
      }
    }
  </style>
</b:includable>
        </b:widget>
      </b:section>
    </main>

    <aside class='np-side' id='np-side'>
      <div class='np-ad' id='np-side-ad'/>
      <b:section class='np-side-sec' id='sidebar-sec' preferred='yes'>
        <b:widget id='PopularPosts1' locked='false' title='জনপ্রিয় খবর' type='PopularPosts' version='2' visible='true'>
          <b:widget-settings>
            <b:widget-setting name='numItemsToShow'>3</b:widget-setting>
            <b:widget-setting name='showThumbnails'>true</b:widget-setting>
            <b:widget-setting name='showSnippets'>false</b:widget-setting>
            <b:widget-setting name='timeRange'>ALL_TIME</b:widget-setting>
          </b:widget-settings>
          <b:includable id='main'>
            <div class='np-box'>
              <h2><data:title/></h2>
              <div class='np-list np-pop'>
                <b:loop values='data:posts' var='post'>
                  <a class='np-card' expr:href='data:post.href'>
                    <b:if cond='data:post.thumbnail'>
                      <img alt='' class='np-thumb' expr:src='data:post.thumbnail' loading='lazy'/>
                    <b:else/>
                      <span class='np-thumb'/>
                    </b:if>
                    <h3><data:post.title/></h3>
                  </a>
                </b:loop>
              </div>
            </div>
          </b:includable>
        </b:widget>
      </b:section>
    </aside>
  </div>

  <div class='np-wrap'><div class='np-ad' data-placement='footer'/></div>

  <footer class='np-footer'>
    <div class='np-wrap'>
      <div class='np-cols'>
        <div>
          <img alt='Logo' id='np-flogo' style='display:none'/>
          <h4 id='np-fname'/>
          <p id='np-fabout'/>
        </div>
        <div>
          <h4>ব&#2495;ভ&#2494;গ</h4>
          <ul id='np-fcats'/>
          <h4 style='margin-top:14px'>তথ&#2509;য</h4>
          <ul id='np-fpages'/>
        </div>
        <div>
          <h4>য&#2507;গ&#2494;য&#2507;গ</h4>
          <div id='np-fcontact'/>
          <div class='np-social' id='np-social-foot' style='margin-top:10px'/>
        </div>
      </div>
      <div class='np-copy' id='np-copy'/>
    </div>
  </footer>

  <div id='np-sticky'><button aria-label='বন্ধ করুন' id='np-sticky-x' type='button'>&#215;</button><div class='np-ad' data-placement='mobile_sticky' style='margin:0'/></div>

  <script>//<![CDATA[
(function () {
  /* =====================================================================
     ★ শুধু এই এক লাইনে আপনার Cloudflare Worker-এর ঠিকানা বসান ★
     উদাহরণ: https://news-portal-api.yourname.workers.dev  (শেষে / দেবেন না)
     ===================================================================== */
  var API = 'https://YOUR-WORKER.workers.dev';

  var doc = document;
  function $(s, r) { return (r || doc).querySelector(s); }
  function $all(s, r) { return Array.prototype.slice.call((r || doc).querySelectorAll(s)); }
  function el(tag, attrs, text) {
    var e = doc.createElement(tag);
    if (attrs) for (var k in attrs) { if (attrs[k] !== undefined && attrs[k] !== null) e.setAttribute(k, attrs[k]); }
    if (text) e.textContent = text;
    return e;
  }
  function safeUrl(u) { return /^https?:\/\//i.test(u || '') ? u : ''; }
  function bigImg(u, size) { return u ? u.replace(/\/s\d+(-c)?\//, '/' + (size || 'w640-h360-c') + '/').replace(/=s\d+(-c)?$/, '=' + (size || 'w640-h360-c')) : ''; }
  function get(url) { return fetch(url).then(function (r) { if (!r.ok) throw new Error(r.status); return r.json(); }); }

  /* ---- কোন ধরনের পেজ ---- */
  var ptype = doc.body.getAttribute('data-ptype');
  var path = location.pathname;
  var page = 'home';
  if (ptype === 'item') page = 'article';
  else if (ptype === 'static_page') page = 'page';
  else if (path.indexOf('/search/label/') === 0) page = 'category';
  else if (path.indexOf('/search') === 0) page = 'search';
  var isMobile = window.innerWidth < 768;

  /* ---- বাংলা তারিখ ---- */
  try { $('#np-date').textContent = new Date().toLocaleDateString('bn-BD', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }); } catch (e) {}

  /* ---- ফিড থেকে খবর ---- */
  function feed(label, n) {
    var u = '/feeds/posts/default' + (label ? '/-/' + encodeURIComponent(label) : '') + '?alt=json&max-results=' + n;
    return get(u).then(function (j) {
      return ((j.feed && j.feed.entry) || []).map(function (e) {
        var link = (e.link || []).filter(function (l) { return l.rel === 'alternate'; })[0];
        var html = e.content ? e.content.$t : (e.summary ? e.summary.$t : '');
        var tmp = doc.createElement('div'); tmp.innerHTML = html;
        var img = tmp.querySelector('img');
        return {
          title: e.title.$t,
          url: link ? link.href : '#',
          img: (e.media$thumbnail && e.media$thumbnail.url) || (img && img.src) || '',
          date: e.published ? new Date(e.published.$t).toLocaleDateString('bn-BD', { year: 'numeric', month: 'long', day: 'numeric' }) : '',
          text: (tmp.textContent || '').replace(/\s+/g, ' ').trim().slice(0, 130)
        };
      });
    });
  }
  function card(p, withExcerpt) {
    var a = el('a', { 'class': 'np-card', href: p.url });
    var t = el('span', { 'class': 'np-thumb' });
    if (p.img) t.style.backgroundImage = 'url("' + bigImg(p.img) + '")';
    a.appendChild(t);
    var box = el('div');
    box.appendChild(el('h3', null, p.title));
    box.appendChild(el('span', { 'class': 'np-meta' }, p.date));
    if (withExcerpt && p.text) box.appendChild(el('p', { 'class': 'np-excerpt' }, p.text));
    a.appendChild(box);
    return a;
  }
  function heroCard(p, big) {
    var a = el('a', { 'class': 'np-hero-card' + (big ? ' np-hero-big' : ''), href: p.url });
    if (p.img) a.style.backgroundImage = 'url("' + bigImg(p.img, big ? 'w900-h560-c' : 'w600-h360-c') + '")';
    a.appendChild(el('h3', null, p.title));
    return a;
  }

  /* ---- হোমপেজ সেকশন ---- */
  function renderSections(sections) {
    var host = $('#np-home');
    if (!host) return;
    sections.forEach(function (s) {
      var label = s.type === 'featured' ? (s.label || 'featured') : s.label;
      if (!label) return;
      feed(label, Number(s.count) || 6).then(function (posts) {
        if (!posts.length) return;
        var box = el('section', { 'class': 'np-box', 'data-order': s.order || 0 });
        var h = el('h2', { 'class': 'np-sec-title' });
        var link = el('a', { href: '/search/label/' + encodeURIComponent(label) }, s.title || label);
        if (s.type === 'featured') h.appendChild(el('span', null, s.title || 'বিশেষ খবর')); else h.appendChild(link);
        box.appendChild(h);
        if (s.layout === 'hero' || s.type === 'featured') {
          var hero = el('div', { 'class': 'np-hero' });
          hero.appendChild(heroCard(posts[0], true));
          var side = el('div', { 'class': 'np-hero-side' });
          posts.slice(1, 3).forEach(function (p) { side.appendChild(heroCard(p, false)); });
          hero.appendChild(side);
          box.appendChild(hero);
        } else if (s.layout === 'list') {
          var l = el('div', { 'class': 'np-list' });
          posts.forEach(function (p) { l.appendChild(card(p, true)); });
          box.appendChild(l);
        } else {
          var g = el('div', { 'class': 'np-grid' });
          posts.forEach(function (p) { g.appendChild(card(p, false)); });
          box.appendChild(g);
        }
        host.appendChild(box);
        // order অনুযায়ী সাজানো (ফিড দেরিতে এলেও ক্রম ঠিক থাকে)
        $all('[data-order]', host).sort(function (a, b) { return a.getAttribute('data-order') - b.getAttribute('data-order'); }).forEach(function (n) { host.appendChild(n); });
      }).catch(function () {});
    });
  }

  /* ---- ব্রেকিং নিউজ ---- */
  function renderBreaking(settings) {
    var b = settings.breaking || {};
    if (b.enabled === false) return;
    feed('breaking', Number(b.count) || 8).then(function (posts) {
      if (!posts.length) return;
      $('#np-breaking-label').textContent = b.label || 'ব্রেকিং';
      var t = $('#np-ticker');
      posts.forEach(function (p) { t.appendChild(el('a', { href: p.url }, p.title)); });
      $('#np-breaking').style.display = '';
    }).catch(function () {});
  }

  /* ---- ব্র্যান্ডিং, রঙ, ফন্ট, ফেভিকন ---- */
  var GF = { 'Hind Siliguri': 'Hind+Siliguri:wght@400;500;600;700', 'Noto Sans Bengali': 'Noto+Sans+Bengali:wght@400;500;600;700', 'Noto Serif Bengali': 'Noto+Serif+Bengali:wght@400;500;600;700', 'Tiro Bangla': 'Tiro+Bangla', 'Baloo Da 2': 'Baloo+Da+2:wght@400;500;600;700', 'Anek Bangla': 'Anek+Bangla:wght@400;500;600;700', 'Galada': 'Galada' };
  function applyBranding(s) {
    var c = s.colors || {}, f = s.fonts || {}, root = doc.documentElement.style;
    if (c.primary) root.setProperty('--primary', c.primary);
    if (c.secondary) root.setProperty('--secondary', c.secondary);
    if (c.accent) root.setProperty('--accent', c.accent);
    if (c.headerBg) root.setProperty('--header-bg', c.headerBg);
    if (c.footerBg) root.setProperty('--footer-bg', c.footerBg);
    var fams = [];
    if (f.heading && GF[f.heading]) { root.setProperty('--font-heading', "'" + f.heading + "',sans-serif"); fams.push(GF[f.heading]); }
    if (f.body && GF[f.body]) { root.setProperty('--font-body', "'" + f.body + "',sans-serif"); if (fams.indexOf(GF[f.body]) < 0) fams.push(GF[f.body]); }
    if (fams.length) {
      doc.head.appendChild(el('link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?' + fams.map(function (x) { return 'family=' + x; }).join('&') + '&display=swap' }));
    }
    var name = s.nameBn || '';
    if (name) { $('#np-name').textContent = name; $('#np-fname').textContent = name; }
    if (s.tagline) $('#np-tagline').textContent = s.tagline;
    var logo = safeUrl(s.logoUrl), mlogo = safeUrl(s.mobileLogoUrl) || logo;
    if (logo) { var L = $('#np-logo'); L.src = logo; L.alt = name; L.style.display = ''; $('#np-brand-text').style.display = 'none'; }
    if (mlogo) { var M = $('#np-logo-m'); M.src = mlogo; M.alt = name; M.style.display = ''; }
    var fl = safeUrl(s.footerLogoUrl) || logo;
    if (fl) { var F = $('#np-flogo'); F.src = fl; F.alt = name; F.style.display = ''; }
    if (safeUrl(s.faviconUrl)) {
      $all('link[rel~="icon"],link[rel="shortcut icon"]').forEach(function (n) { n.parentNode.removeChild(n); });
      doc.head.appendChild(el('link', { rel: 'icon', href: s.faviconUrl }));
    }
    $('#np-fabout').textContent = s.footerAbout || s.tagline || '';
    $('#np-copy').textContent = (s.copyrightText || '©') + ' ' + new Date().getFullYear() + ' ' + name;
    var ct = s.contact || {}, cbox = $('#np-fcontact');
    [['ঠিকানা', ct.address], ['ফোন', ct.phone], ['ইমেইল', ct.email], ['হোয়াটসঅ্যাপ', ct.whatsapp]].forEach(function (r) {
      if (r[1]) { var p = el('div'); p.textContent = r[0] + ': ' + r[1]; cbox.appendChild(p); }
    });
    if (s.customHeadHtml) inject(doc.head, s.customHeadHtml);
    if (s.customFooterHtml) inject(doc.body, s.customFooterHtml);
  }

  function applySeo(seo) {
    if (page === 'home') {
      if (seo.metaTitle) doc.title = seo.metaTitle;
      var d = $('meta[name="description"]');
      if (seo.metaDescription) { if (d) d.setAttribute('content', seo.metaDescription); else doc.head.appendChild(el('meta', { name: 'description', content: seo.metaDescription })); }
      if (seo.keywords) doc.head.appendChild(el('meta', { name: 'keywords', content: seo.keywords }));
      if (seo.ogImage && safeUrl(seo.ogImage)) doc.head.appendChild(el('meta', { property: 'og:image', content: seo.ogImage }));
    }
    if (seo.googleVerification) doc.head.appendChild(el('meta', { name: 'google-site-verification', content: seo.googleVerification }));
    if (seo.bingVerification) doc.head.appendChild(el('meta', { name: 'msvalidate.01', content: seo.bingVerification }));
    if (seo.twitterHandle) doc.head.appendChild(el('meta', { name: 'twitter:site', content: seo.twitterHandle }));
    if (seo.ga4Id && /^G-[A-Z0-9]+$/.test(seo.ga4Id)) {
      var s = el('script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=' + seo.ga4Id });
      doc.head.appendChild(s);
      window.dataLayer = window.dataLayer || [];
      window.gtag = function () { window.dataLayer.push(arguments); };
      window.gtag('js', new Date()); window.gtag('config', seo.ga4Id);
    }
  }

  var ICON = { facebook: 'ফেসবুক', youtube: 'ইউটিউব', x: 'X', instagram: 'ইনস্টাগ্রাম', telegram: 'টেলিগ্রাম', whatsapp: 'হোয়াটসঅ্যাপ', tiktok: 'টিকটক', linkedin: 'লিংকডইন', rss: 'RSS', other: 'লিংক' };
  function renderSocial(list) {
    ['np-social-top', 'np-social-foot'].forEach(function (id) {
      var box = $('#' + id);
      list.forEach(function (x) {
        if (!safeUrl(x.url)) return;
        box.appendChild(el('a', { href: x.url, target: '_blank', rel: 'noopener nofollow' }, ICON[x.platform] || x.platform));
      });
    });
  }
  function renderMenus(cats, pages) {
    var m = $('#np-menu'), fc = $('#np-fcats'), fp = $('#np-fpages');
    cats.forEach(function (c) {
      var u = '/search/label/' + encodeURIComponent(c.name);
      m.appendChild(el('a', { href: u }, c.name));
      var li = el('li'); li.appendChild(el('a', { href: u }, c.name)); fc.appendChild(li);
    });
    (pages || []).forEach(function (p) {
      if (p.showInFooter !== false && p.published !== false && safeUrl(p.url)) { var li = el('li'); li.appendChild(el('a', { href: p.url }, p.title)); fp.appendChild(li); }
    });
  }

  /* ---- বিজ্ঞাপন ---- */
  // innerHTML-এর <script> চলে না, তাই fragment দিয়ে ঢোকানো হয় (script চালু হয়)
  function inject(target, html) {
    try { target.appendChild(doc.createRange().createContextualFragment(html)); } catch (e) {}
  }
  function renderAd(slot, ad) {
    if (ad.type === 'direct_link' || ad.type === 'smartlink') {
      var u = (ad.code || '').trim();
      if (!safeUrl(u)) return;
      var a = el('a', { href: u, target: '_blank', rel: 'sponsored nofollow noopener' }, ad.name || 'বিজ্ঞাপন');
      a.style.cssText = 'display:inline-block;padding:10px 18px;background:var(--accent);color:#111;font-weight:700;border-radius:4px';
      slot.appendChild(a);
    } else {
      inject(slot, ad.code || '');
    }
  }
  function placeAfterParagraph(body, n, node) {
    var ps = $all('p', body).filter(function (p) { return p.parentNode === body || body.contains(p); });
    var ref = ps[Math.min(n, ps.length) - 1];
    if (ref && ref.parentNode) ref.parentNode.insertBefore(node, ref.nextSibling); else body.appendChild(node);
  }
  function renderAds(ads) {
    var sideSlot = $('#np-side-ad');
    if (sideSlot) sideSlot.setAttribute('data-placement', (page === 'category' || page === 'search') ? 'category_sidebar' : 'homepage_sidebar');
    var body = $('#np-article-body');
    ads.forEach(function (ad) {
      if (ad.type === 'popunder' || ad.type === 'social_bar' || ad.type === 'in_page_push') { inject(doc.body, ad.code || ''); return; }
      if (ad.placement === 'article_content' || ad.placement === 'article_after_paragraph') {
        if (!body) return;
        var wrap = el('div', { 'class': 'np-ad' });
        renderAd(wrap, ad);
        var n = ad.placement === 'article_content' ? Math.max(1, Math.round($all('p', body).length / 2)) : Number(ad.afterParagraph) || 2;
        placeAfterParagraph(body, n, wrap);
        return;
      }
      if (ad.placement === 'mobile_sticky') {
        if (!isMobile) return;
        $('#np-sticky').classList.add('on');
      }
      var slot = $('.np-ad[data-placement="' + ad.placement + '"]');
      if (slot) { var holder = el('div'); renderAd(holder, ad); slot.appendChild(holder); }
    });
    var x = $('#np-sticky-x');
    if (x) x.addEventListener('click', function () { $('#np-sticky').classList.remove('on'); });
  }

  /* ---- শেয়ার বাটন ও স্কিমা ---- */
  function renderShare() {
    $all('.np-share').forEach(function (box) {
      var url = box.getAttribute('data-url') || location.href, title = box.getAttribute('data-title') || doc.title;
      var u = encodeURIComponent(url), t = encodeURIComponent(title);
      [['ফেসবুক', 'https://www.facebook.com/sharer/sharer.php?u=' + u, '#1877f2'], ['X', 'https://twitter.com/intent/tweet?url=' + u + '&text=' + t, '#111827'], ['হোয়াটসঅ্যাপ', 'https://api.whatsapp.com/send?text=' + t + '%20' + u, '#16a34a'], ['টেলিগ্রাম', 'https://t.me/share/url?url=' + u + '&text=' + t, '#0284c7']].forEach(function (s) {
        var a = el('a', { href: s[1], target: '_blank', rel: 'noopener nofollow' }, s[0]); a.style.background = s[2]; box.appendChild(a);
      });
      var b = el('button', { type: 'button' }, 'লিংক কপি'); b.style.background = '#6b7280';
      b.addEventListener('click', function () { if (navigator.clipboard) navigator.clipboard.writeText(url).then(function () { b.textContent = 'কপি হয়েছে'; }); });
      box.appendChild(b);
    });
  }
  function articleSchema(s) {
    var body = $('#np-article-body'); if (!body) return;
    var id = body.getAttribute('data-post-id');
    get('/feeds/posts/default/' + id + '?alt=json').then(function (j) {
      var e = j.entry; var img = (e.media$thumbnail && e.media$thumbnail.url) || '';
      var data = { '@context': 'https://schema.org', '@type': 'NewsArticle', headline: e.title.$t, datePublished: e.published.$t, dateModified: e.updated.$t, mainEntityOfPage: location.href, image: img ? [bigImg(img, 'w1200')] : undefined, publisher: { '@type': 'Organization', name: s.nameBn || s.nameEn || '', logo: safeUrl(s.logoUrl) ? { '@type': 'ImageObject', url: s.logoUrl } : undefined } };
      var sc = el('script', { type: 'application/ld+json' }); sc.textContent = JSON.stringify(data); doc.head.appendChild(sc);
    }).catch(function () {});
  }

  /* ---- আপগ্রেড: থাম্বনেইল বড় করা ---- */
  $all('.np-card img.np-thumb').forEach(function (i) { i.src = bigImg(i.src); });
  renderShare();

  /* ---- শুরু: কনফিগ ও বিজ্ঞাপন লোড ---- */
  function boot(cfg) {
    var s = cfg.settings || {};
    applyBranding(s);
    applySeo(cfg.seo || {});
    renderSocial(cfg.social || []);
    renderMenus(cfg.categories || [], cfg.pages || []);
    renderBreaking(s);
    if (page === 'home') renderSections(cfg.sections || []);
    if (page === 'article') articleSchema(s);
  }
  if (API.indexOf('YOUR-WORKER') > -1) { console.warn('News Portal: theme-এ Worker URL বসানো হয়নি।'); return; }
  get(API + '/api/public/config').then(boot).catch(function (e) { console.warn('News Portal config error', e); });
  get(API + '/api/public/ads?device=' + (isMobile ? 'mobile' : 'desktop') + '&page=' + page).then(renderAds).catch(function () {});
})();
//]]></script>
</body>
</html>



বিজ্ঞাপন
পোস্ট করেছেন

Tanbin Farazi