Sarkari Yojana Article CMS Portal Php Script
============================================================ YOJANA CMS - SITE FEATURES & VISUAL LOOK-AND-FEEL NOTES ============================================================ Yojana CMS (Sarkari Yojna Portal) ek high-performance, modern aur lightweight website hai jise custom backend features aur dynamic front-end layout ke sath design kiya gaya hai. Is document me website ke sabhi functions aur look-and-feel (design aesthetics) ki poori details di gayi hain. ------------------------------------------------------------ 1. Website ka Look & Design (Visual Aesthetics) ------------------------------------------------------------ Website ko ek premium aur high-end appearance dene ke liye design kiya gaya hai. Isme do core modes hain: A. Dark Mode (Premium Default Theme) - Background Colors: Deep slate-black background (#0b0f19 / bg-slate-950) jo visual strain ko kam karta hai. - Accents & Gradients: Header ke upar ek 1.5px ki vibrant neon gradient strip hai (Blue, Indigo, aur Purple colors ka mix). Buttons aur widgets me soft blue-indigo shadows use hoti hain. - Typography: Clean sans-serif look ke liye Google Fonts se 'Outfit' aur Devnagari script (Hindi readability) ke liye 'Noto Sans Devanagari' select kiya gaya hai. - Cards & Boxes: Posts aur widgets glassmorphism layout me printed hain (bg-slate-900 aur slate borders ke sath) jisse blocks distinct aur clean lagte hain. B. Light Mode (Clean Classic Theme) - Aesthetics: Agar settings se light mode enable kiya jaye, to site high-contrast white layout me badal jaati hai. - Backgrounds: Soft light-gray background (#f8fafc) aur clean white cards (#ffffff). - Text colors: Text color dark gray (#0f172a aur #334155) ho jata hai jo daytime reading ke liye best hai. - Inputs & borders: Borders light gray (#cbd5e1) aur form text dark gray ho jata. C. Homepage & Detailed Page Layout - Sticky Header: Main navigation header page scroll karne par top par stick rehta hai. Isme portal logo, category links, search bar, aur ek dynamic "Admin" login button hai. - Layout Grid: Homepage aur categories par 3-column layout use hota hai: * Left Column (2/3 width): Scheme articles ka modern grid layout. Har yojna card me banner image (ya stylized gradient placeholder), category tag, publication date, post views, aur brief snippet hota hai. * Right Column (1/3 width) - Sidebar Widgets: 1. Google AdSense Widget: Sidebar ad placement container. 2. Important Links: Useful external links open karne ke liye flat list. 3. Categories: Total post count badges ke sath categories link structure. 4. Recent Yojana Alerts: Latest 5 published yojanas ki auto-updating alerts list. - Footer copyright strip: Footer copyright text ke sath important utility pages (Privacy Policy, About Us, Disclaimer, etc.) automatically print hote hain. ------------------------------------------------------------ 2. Core Site Functions (Website ke Functions) ------------------------------------------------------------ CMS ke functions ko do hisso me baata ja sakta hai: Frontend (Public Users) aur Backend (Admin Control Panel). A. Frontend / Public Functions 1. Dynamic SEO Friendly Router (index.php): - Direct direct URL structures support karta hai (jaise /post-slug ya /category-slug). - Homepage par automatic 10 posts per page ki pagination block chalta hai jo next and previous pages par route karta hai bina URL path break kiye. 2. Dynamic Search System: - Homepage aur sidebars me search field hai jo users ko instantaneous database posts filtering allow karta hai. 3. Dynamic SEO & News Schema (/includes/seo.php): - Website metadata (Title, description, keywords, canonical URLs) page context ke hisab se generate karta hai. - Facebook, WhatsApp, aur Twitter sharing ke liye Open Graph tags output karta hai. - Google indexing engines ke liye structured JSON-LD NewsArticle schema automatic generate karta hai taaki schemes rich-search alerts me dikhein. 4. Important Guideline PDF Downloader: - Har post ke andar, agar admin ne upload kiya hai, to ek clean document download card aur direct link PDF file view karne ke liye embed hota hai. 5. Dynamic Sitemap & Robots: - /sitemap.xml automatically system posts aur page links ka valid XML feed generate karta hai. - /robots.txt indexation crawling rules aur sitemap feed locations provide karta hai. B. Backend Admin Panel Functions (/admin/) 1. Secure Admin Authentication: - Modern glassmorphic style admin login panel. Session hijacking prevention ke liye secure credentials hashing aur auto session boundaries set hain. 2. Dashboard Analytics: - Total articles published, total dynamic pages count, category numbers, and overall traffic post-views counter widget dashboard par live show hota hai. 3. Yojana Article Management (Add/Edit/Delete): - Normal editor: Image upload, PDF upload, title, category, meta settings details edit/save karne ke liye form. - AI Auto-Index on Publish: Jab naya post publish ya edit hota hai, to Google Search Console ko instant auto-notification ping chala jata. 4. Google Gemini AI Article Writer: - Post likhte waqt, admin simple topic input karke "Write with AI" button daba sakta hai. Gemini API instantly 1000-1500 words ka semantic HTML-formatted Hindi/Hinglish guide table, objectives, criteria, documents aur apply link ke sath generate karke textarea me load kar deta hai. 5. AI Featured Image Generator: - Google Imagen 3 API integration ke zariye admin post title/topic ke base par instantly ek dynamic high-definition custom banner image create aur preview kar sakta hai. 6. Google Indexing API Console Panel: - Post table list me direct "Index Now" buttons hain. Admin click karke Google ko instant URL publish/delete payload notifications ping kar sakta hai aur API reply response details dekh sakta hai. 7. Pages Manager (Static pages block): - Google AdSense verification requirements comply karne ke liye custom pages (jaise Disclaimer, Privacy Policy) design/modify karne ka CRUD panel. 8. Sidebar Links & Categories Manager: - Sidebar widget me chalne wale important custom urls aur post categories block list customize karne ka screen display. 9. Google AdSense & Verification Settings: - Admin Settings screen par dedicated inputs hain jahan Google verification tags, Search Console validation code aur 4 locations (header, sidebar, content_top, content_bottom) ke custom Google Ads codes paste karke database settings save kiye ja sakte hain. 10. Password Manager: - Admin password secure change options reset block.