پرش به محتوا

الگو:آخرین مطالب: تفاوت میان نسخه‌ها

از صبح نجف
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
جزبدون خلاصۀ ویرایش
برچسب: ویرایش مبدأ ۲۰۱۷
 
(۲۹ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
<div style="border: 1px solid #e2e8f0; padding: 1rem; background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); border-radius: 1rem; min-width: 250px; max-width: 900px; margin: 0 auto; transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.02); overflow: hidden;">
<div style="display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; margin: 20px auto 0 auto;">
     <div style="font-size: 1.25rem; font-weight: 700; background: linear-gradient(135deg, #1e293b, #0f172a); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 3px solid #3b82f6; text-align: center; letter-spacing: -0.01em;">📰 آخرین مطالب</div>
   
     <div style="display: grid; grid-template-columns: 1fr; gap: 0.6rem;">
    <!-- الگوی اول: مطالب وبلاگ نویس -->
         <div style="display: contents;">
<div style="flex: 1 1 300px; min-width: 250px; max-width: 600px; border: 1px solid #bae6fd; padding: 18px; background: linear-gradient(80deg, #e5ffe4, #ffffff); border-radius: 16px; box-shadow: 0 8px 20px rgba(14,165,233,0.08);">
             <DynamicPageList>
    <div style="font-size: 18px; font-weight: bold; color: #0369a1; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #0ea5e9; text-align: center;">
namespace = main
        📰 وبلاگ نویس
count = 16
    </div>
ordermethod = lastedit
     <div style="color: #075985;">
order = descending
        <DynamicPageList>
mode = unordered
category            = وبلاگ نویس
suppresserrors = true
count                = 10
addtitlecategory = false
order                = descending
ordermethod          = categoryadd
addfirstcategorydate = true
shownamespace        = false
mode                = unordered
suppresserrors      = true
</DynamicPageList>
    </div>
</div>
 
 
<!-- الگوی سوم: مقالات -->
<div style="flex: 1 1 300px; min-width: 250px; max-width: 600px; border: 1px solid #bae6fd; padding: 18px; background: linear-gradient(80deg, #e5ffe4, #ffffff); border-radius: 16px; box-shadow: 0 8px 20px rgba(14,165,233,0.08);">
    <div style="font-size: 18px; font-weight: bold; color: #0369a1; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #0ea5e9; text-align: center;">
        📰 مقالات
    </div>
     <div style="color: #075985;">
         <DynamicPageList>
category             = مقالات
count                = 10
order                = descending
ordermethod         = categoryadd
addfirstcategorydate = true
shownamespace        = false
mode                 = unordered
suppresserrors       = true
</DynamicPageList>
</DynamicPageList>
        </div>
     </div>
     </div>
</div>
</div>


<style>
</div>
/* استایل اختصاصی برای آیتم‌های لیست و حالت دوستونه */
@media (min-width: 768px) {
    div[style*="max-width: 900px"] > div:last-child > div {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
}
div[style*="max-width: 900px"] ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
div[style*="max-width: 900px"] li {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 0.75rem;
    padding: 0.5rem 0.8rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
div[style*="max-width: 900px"] li:hover {
    background: #fefce8;
    border-color: #facc15;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -6px rgba(0,0,0,0.1);
}
div[style*="max-width: 900px"] li a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    display: block;
}
div[style*="max-width: 900px"] li a:hover {
    color: #d97706;
    text-decoration: underline;
}
div[style*="max-width: 900px"] li a::before {
    content: "📄 ";
    font-size: 0.8rem;
    opacity: 0.7;
}
</style>

نسخهٔ کنونی تا ‏۱۴ اردیبهشت ۱۴۰۵، ساعت ۱۰:۳۰

       📰 وبلاگ نویس


       📰 مقالات