- Index ofPoets
- Top Read Poets
- Classical Poets
- Women Poets
- Young Poets
- Poet Audios
ALL
Ghazal18
- ALL
- Ghazal 18
Ghazals of Shahid Mahmood
"; str += ""; str += "
"; $("#blogContentSection").show(); $("#blogTabId").show(); } //$(".rBlogs .SideBarPostItemListFull").html(str); $(".rBlogs .poetPageRelatedBlog").html(str); } else { $("#blogContentSection").hide(); $("#blogTabId").hide(); } try { //$('.SideBarPostItemList').bxSlider({ // minSlides: 1, // maxSlides: 6, // slideWidth: 272, // slideMargin: 10, // autoHover: true, // pager: false, // moveSlides: 3, // infiniteLoop: false, // controls: true //}); $('.SideBarPostItemList').owlCarousel({ margin: 20, autoWidth: false, items: 3, rtl: sldrRTL, nav: true }) } catch (e) { } }, error: function (err) { console.log(err.statusText); console.log('error'); } }); } else if (getviewbagdata == 9) { jQuery.ajax({ url: blogurl, type: "GET", contentType: 'application/json; charset=utf-8', dataType: 'json', crossOrigin: true, success: function (data) { var totCount = 0; if (data != null) { if (data.records.length >= 3) { totCount = 3; $('#blgDivH').show(); $('#blgDivD').hide(); } else { totCount = data.records.length; $('#blgDivH').hide(); $('#blgDivD').show(); } } if (totCount > 0) { var str = ''; for (var i = 0; i < totCount; i++) { // console.log(data.records[i]["Blog Date"]); // console.log(data.records[i]["Auhtor Name"]); // console.log(data); var currentDate = new Date(data.records[i]["Blog Date"].replace(/\s/, 'T')); // console.log(currentDate+"dddd"); var date = currentDate.getDate(); var month = currentDate.getMonth(); var year = currentDate.getFullYear(); function pad(n) { return n < 10 ? '0' + n : n; } var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; var dateWithFullMonthName = monthNames[month] + " " + pad(date) + ", " + year; str += "
"; str = str + "
"; str = str + ""; str = str + "
"; str = str + "
"; str = str + "
" + data.records[i]["Title"] + "
"; str = str + "
" + data.records[i]["Description"].substring(0, 100) + '...' + "
"; str = str + "
By " + data.records[i]["Auhtor Name"] + " | " + dateWithFullMonthName + "
"; str = str + "
"; str = str + "
"; str = str + "
"; $("#blogContent").show(); $("#blogTabId").show(); } $(".rBlogs .SideBarPostItemList").html(str); } else { $("#blogContent").hide(); $("#blogTabId").hide(); } try { //$('.SideBarPostItemList').bxSlider({ // minSlides: 1, // maxSlides: 6, // slideWidth: 272, // slideMargin: 10, // autoHover: true, // pager: false, // moveSlides: 3, // infiniteLoop: false, // controls: true //}); if ($(window).width() >= 992) { $('.SideBarPostItemList').owlCarousel({ margin: 20, autoWidth: false, items: 3, rtl: sldrRTL, nav: true }) } } catch (e) { } }, error: function (err) { console.log(err.statusText); } }); } //////////sorting js $('.sorting-list').on('change', function () { $('.sorting-list').not(this).prop('checked', false); }); var sortBy = "popularity-desc"; if (sortBy.includes("popularity")) { $('#chkpopularity').prop('checked', true); } else if (sortBy.includes("title")) { $('#chkalphabet').prop('checked', true); } else if (sortBy.includes("radeef")) { $('#chkradeef').prop('checked', true); } else if (sortBy.includes("year")) { $('#chkyear').prop('checked', true); } else if (sortBy.includes("diwan")) { $('#chkdiwan').prop('checked', true); } }); function onsorting(e) { $('.sortLoadMore').fadeIn(); if (e == "popularity") { if ('ghazals' == "miiriyaat" && '' != "") { window.location.href = "/poets/shahid-mahmood-1/ghazals?sort=popularity-desc&filter="; } else { window.location.href = "/poets/shahid-mahmood-1/ghazals?sort=popularity-desc"; } } else if (e == "alphabet") { if ('ghazals' == "miiriyaat" && '' != "") { window.location.href = "/poets/shahid-mahmood-1/ghazals?sort=title-asc&filter="; } else { window.location.href = "/poets/shahid-mahmood-1/ghazals?sort=title-asc"; } } else if (e == "radeef") { if ('ghazals' == "miiriyaat" && '' != "") { window.location.href = "/poets/shahid-mahmood-1/ghazals?sort=radeef-asc&filter="; } else { window.location.href = "/poets/shahid-mahmood-1/ghazals?sort=radeef-asc"; } } else if (e == "year") { window.location.href = "/poets/shahid-mahmood-1/ghazals?sort=year-asc"; } else if (e == "miriyaat") { if ('ghazals' == "miiriyaat" && '' != "") { window.location.href = "/poets/shahid-mahmood-1/ghazals?sort=diwan-asc&filter="; } else { window.location.href = "/poets/shahid-mahmood-1/ghazals?sort=diwan-asc"; } } } function diwanfilter(diwan, keyword) { var checkK = false; if (keyword != undefined && keyword.length > 0) checkK = true; var _url = "/poets/shahid-mahmood-1/ghazals"; if (checkK && (diwan == "1" || diwan == "2" || diwan == "3" || diwan == "4" || diwan == "5" || diwan == "6")) { _url = _url + "?sort=diwan-asc&filter=" + diwan + "&keyword=" + keyword + ''; } else if (diwan == "1" || diwan == "2" || diwan == "3" || diwan == "4" || diwan == "5" || diwan == "6") { _url = _url + "?sort=diwan-asc&filter=" + diwan + ''; } else { if (checkK) { _url = _url + "?sort=diwan-asc&keyword=" + keyword + ''; } else { _url = _url + "?sort=diwan-asc" + ''; } } window.location.href = _url.replace('&','&'); } isDefaultExplanation = 'False'; isDefaultTranslation = 'False';