| Server IP : 198.71.58.22 / Your IP : 216.73.216.72 Web Server : Apache/2.4.62 (AlmaLinux) OpenSSL/3.2.2 System : Linux localhost 5.14.0-570.33.2.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 14 07:37:35 EDT 2025 x86_64 User : root ( 0) PHP Version : 8.3.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/gladstonespeech.com/ |
Upload File : |
#!/usr/bin/env python3
"""
Rewrite SiteOrigin Editor and Heading widget content across all 9 therapy pages.
- Replace Chicago/IL references with Montgomery County, MD
- Unique, differentiator-rich copy per page
- Updated section headings (h6 labels and h2 titles)
"""
import json, re, copy
TEMPLATES_DIR = "templates"
# ── Per-page content ────────────────────────────────────────────────────────────
PAGES = {
"auditory-processing-disorder.json": {
"w1_title": "Auditory Processing Therapy in Montgomery County, MD",
"w2_title": "When Your Child Hears, But Doesn't Process",
"w3_text": """<p class="lead"><strong>Auditory Processing Disorder is a listening challenge — not a hearing one.</strong></p>
<p>Does your child ask you to repeat things constantly, even though their hearing test came back normal? Does background noise make it nearly impossible for them to follow a teacher's instructions? Auditory Processing Disorder (APD) affects how the brain makes sense of sound — and it can quietly hold your child back at school, at home, and in social situations.</p>
<p>At Gladstone Speech, our therapists understand APD from the inside out. We use a personalized assessment process to identify exactly where the breakdown is occurring — whether it's distinguishing similar sounds, filtering background noise, or following multi-step directions — and we build a treatment plan that targets those specific challenges.</p>
<p><strong>Signs of APD can include:</strong></p>
<ul>
<li>Difficulty following verbal instructions, especially in noisy environments</li>
<li>Frequently mishearing words (saying "What?" or "Huh?" often)</li>
<li>Trouble reading or spelling, even with adequate hearing</li>
<li>Difficulty understanding fast or complex speech</li>
<li>Poor listening skills that improve noticeably in quiet settings</li>
</ul>""",
"w7_text": """<h2 style="text-align: center; font-family: Montserrat; font-size: 40px; color: #ffffff;">How We Help Children with Auditory Processing Disorder in Montgomery County</h2>""",
"w10_title": "PERSONALIZED APD TREATMENT PLANS",
"w11_title": "A Targeted Plan for Every Child's Unique Listening Profile",
"w12_text": """<p class="lead"><strong>No two children with APD struggle the same way — so no two treatment plans should look the same.</strong></p>
<p>Our approach to APD therapy begins with a comprehensive evaluation that goes beyond standard hearing tests. We assess auditory discrimination, processing speed, phonological awareness, and working memory — building a complete picture of how your child processes what they hear.</p>
<p>Treatment is built around SMART goals: Specific, Measurable, Achievable, Relevant, and Time-bound. We track progress carefully and adjust your child's plan as their abilities grow. Our therapists use evidence-based strategies including phonological awareness training, auditory discrimination exercises, and environmental modification recommendations for your home and school.</p>
<p>Gladstone's clinical team collaborates with your child's audiologist, teachers, and other professionals to create a coordinated support network — because progress in the therapy room should translate to real life.</p>""",
},
"autism-spectrum-speech-disorders.json": {
"w1_title": "Autism & Communication Therapy in Montgomery County, MD",
"w2_title": "Every Voice on the Spectrum Deserves to Be Heard",
"w3_text": """<p class="lead"><strong>Autism doesn't define how far your child can go — the right support does.</strong></p>
<p>Communication on the autism spectrum looks different for every child. Some children are non-speaking and need AAC (augmentative and alternative communication) systems. Others speak fluently but struggle with the social rules of conversation — taking turns, reading facial expressions, or understanding figurative language.</p>
<p>At Gladstone Speech, we meet every child where they are. Our therapists are experienced across the full spectrum, from early intervention with toddlers to targeted social communication support for school-age children. We take time to understand your child's strengths, interests, and communication style before building a treatment plan together with your family.</p>
<p><strong>Common communication challenges we address:</strong></p>
<ul>
<li>Limited or absent verbal speech</li>
<li>Echolalia (repeating words or phrases without communicative intent)</li>
<li>Difficulty initiating or maintaining conversation</li>
<li>Challenges with non-literal language — jokes, idioms, sarcasm</li>
<li>AAC needs: picture communication, speech-generating devices</li>
</ul>""",
"w7_text": """<h2 style="text-align: center; font-family: Montserrat; font-size: 40px; color: #ffffff;">How We Support Children on the Autism Spectrum in Montgomery County</h2>""",
"w10_title": "STRENGTHS-BASED AUTISM THERAPY",
"w11_title": "Building Communication Skills That Open Doors for Your Child",
"w12_text": """<p class="lead"><strong>Communication is possible for every child — we start with what's already there.</strong></p>
<p>Our autism speech therapy begins with a strengths-based profile. Rather than focusing solely on deficits, we identify what communication tools your child already uses — and build from there. This keeps treatment motivating, respectful of the child's individuality, and genuinely effective.</p>
<p>Our therapist Grace Tung brings extensive AAC experience to every session, supporting families in learning to use communication devices and picture systems alongside their children. Averi Cannon adds a family-centered lens — because the people who know a child best are their greatest asset in therapy.</p>
<p>Every plan sets clear, measurable milestones — whether it's a first word, a first request, or a first full conversation. SMART goals keep therapy on track and give your family a clear picture of progress every step of the way. We work in coordination with ABA providers, school teams, and pediatricians to ensure consistent support across all environments.</p>""",
},
"childhood-apraxia-of-speech.json": {
"w1_title": "Apraxia of Speech Therapy in Montgomery County, MD",
"w2_title": "Helping the Brain Learn the Road to Speech",
"w3_text": """<p class="lead"><strong>Childhood Apraxia of Speech is a motor planning disorder — and it responds to the right kind of practice.</strong></p>
<p>Children with Childhood Apraxia of Speech (CAS) know exactly what they want to say. The problem is that their brain has difficulty sending the right signals to the muscles needed for speech. The result: words that come out inconsistently, phrases that fall apart under pressure, and a child who is far more capable than their speech suggests.</p>
<p>Early, intensive therapy is the most important factor in helping a child with CAS reach their potential. At Gladstone Speech, our therapists are trained in evidence-based approaches to motor speech treatment — and we work closely with families to ensure that practice doesn't stop when the session ends.</p>
<p><strong>Common signs of Childhood Apraxia of Speech:</strong></p>
<ul>
<li>Limited babbling or very few first words as a baby</li>
<li>Inconsistent speech errors — the same word may sound different each time</li>
<li>Difficulty imitating sounds and words on request</li>
<li>Groping or struggling mouth movements when trying to speak</li>
<li>Comprehension that is clearly stronger than verbal expression</li>
</ul>""",
"w7_text": """<h2 style="text-align: center; font-family: Montserrat; font-size: 40px; color: #ffffff;">How We Treat Childhood Apraxia of Speech in Montgomery County</h2>""",
"w10_title": "MOTOR SPEECH THERAPY",
"w11_title": "Intensive, Evidence-Based CAS Therapy Designed for Each Child",
"w12_text": """<p class="lead"><strong>Apraxia responds to repetition, precision, and a therapist who knows what to look for.</strong></p>
<p>Treating Childhood Apraxia of Speech requires a fundamentally different approach than general articulation therapy. Our therapists use motor-planning frameworks, providing high-frequency practice with precise feedback to help the brain build reliable motor pathways for speech. Sessions are intensive by design — because the research is clear that more repetitions yield faster results.</p>
<p>Our therapist Grace Tung has hands-on experience treating CAS across clinic and school settings. Each child's program is shaped by their current motor speech profile, and SMART goals give families a clear, measurable timeline for what to expect at each stage of treatment.</p>
<p>We also coach parents and caregivers to support motor practice at home — because the more high-quality repetitions a child gets in a natural context, the faster those motor patterns solidify. We coordinate with school SLPs and other specialists to make sure your child is receiving consistent, effective support every day.</p>""",
},
"fluency-aka-stuttering.json": {
"w1_title": "Stuttering & Fluency Therapy in Montgomery County, MD",
"w2_title": "Finding Your Voice — On Your Own Terms",
"w3_text": """<p class="lead"><strong>Stuttering is more than how words come out — it can affect how a child sees themselves.</strong></p>
<p>Stuttering can begin suddenly, often between ages 2 and 5, and may involve repetitions, prolongations, or complete blocks on sounds and words. For some children, it resolves on its own. For many others, early intervention makes all the difference in whether stuttering becomes a lifelong challenge or a manageable trait.</p>
<p>At Gladstone Speech, we treat fluency disorders in the context of the whole child. That means we don't just address how speech sounds — we also address the anxiety, avoidance behaviors, and self-confidence that stuttering can affect. Our approach is always grounded in the latest evidence and tailored to what your child needs most right now.</p>
<p><strong>Signs that warrant a fluency evaluation:</strong></p>
<ul>
<li>Repetitions of sounds, syllables, or whole words ("b-b-ball," "I-I want")</li>
<li>Prolongations of sounds ("ssssnake")</li>
<li>Blocks — moments where no sound comes out despite visible effort</li>
<li>Physical tension in the face, neck, or body when speaking</li>
<li>Avoidance of speaking situations, certain words, or social settings</li>
</ul>""",
"w7_text": """<h2 style="text-align: center; font-family: Montserrat; font-size: 40px; color: #ffffff;">How We Help Children Who Stutter in Montgomery County, MD</h2>""",
"w10_title": "FLUENCY SHAPING & STUTTERING MODIFICATION",
"w11_title": "Measurable Fluency Goals That Build Real Confidence",
"w12_text": """<p class="lead"><strong>We work alongside the child, family, and school to create comprehensive fluency support.</strong></p>
<p>Fluency therapy at Gladstone Speech is never one-size-fits-all. We begin with a thorough evaluation that includes speech samples across contexts, careful rating of disfluency type and frequency, and assessment of any secondary behaviors or emotional impact. From there, we craft a personalized plan using approaches best suited to your child's age, personality, and goals.</p>
<p>For younger children, we often use indirect approaches that shape the child's environment and parent interaction patterns to ease pressure on speech. For older children and teens, we teach fluency shaping techniques and stuttering modification strategies — and just as importantly, we build the resilience and self-advocacy skills that let them communicate confidently in any situation.</p>
<p>Progress is tracked with specific, measurable goals at every phase of treatment. We collaborate with teachers and school SLPs so that the strategies your child uses in our clinic transfer to the classroom, the playground, and every room they walk into.</p>""",
},
"phonological-disorders.json": {
"w1_title": "Phonological Disorder Therapy in Montgomery County, MD",
"w2_title": "When Speech Patterns Get in the Way of Being Understood",
"w3_text": """<p class="lead"><strong>Your child knows exactly what they want to say — we help the world understand them.</strong></p>
<p>Phonological disorders aren't about muscle weakness or physical difficulty making sounds. They're about patterns — the brain's way of organizing the sound system. A child with a phonological disorder might consistently say "tat" for "cat," drop all the sounds at the end of words, or substitute one class of sounds for another across the board.</p>
<p>Because these are patterned errors, they respond quickly to the right therapy approach. At Gladstone Speech, we identify which phonological processes your child is using and design a targeted treatment plan that eliminates the patterns most affecting intelligibility first — giving your child rapid, meaningful gains in being understood.</p>
<p><strong>Common phonological processes we treat:</strong></p>
<ul>
<li>Stopping — replacing fricatives like /f/ or /s/ with stops like /p/ or /t/</li>
<li>Fronting — moving back sounds like /k/ and /g/ to the front of the mouth</li>
<li>Final consonant deletion — dropping the last sound of words</li>
<li>Cluster reduction — "top" instead of "stop"</li>
<li>Gliding — /r/ and /l/ replaced with /w/ or /j/</li>
</ul>""",
"w7_text": """<h2 style="text-align: center; font-family: Montserrat; font-size: 40px; color: #ffffff;">How We Help Children with Phonological Disorders in Montgomery County</h2>""",
"w10_title": "PHONOLOGICAL PROCESS THERAPY",
"w11_title": "Systematic, Pattern-Based Therapy for Rapid Intelligibility Gains",
"w12_text": """<p class="lead"><strong>Targeting phonological patterns produces faster, wider-ranging improvement than sound-by-sound drilling.</strong></p>
<p>Our therapist Grace Tung brings deep expertise in phonological disorders, having worked with children across clinic and school environments. After identifying the specific phonological processes driving your child's errors, we use evidence-based approaches — such as cycles therapy or minimal pair contrast therapy — to systematically eliminate the error patterns most affecting intelligibility.</p>
<p>Treatment goals are written with precision: we measure how often your child correctly produces each pattern in words, sentences, and conversation — and adjust intensity based on what the data shows. Parents receive home practice activities designed to extend gains from every session.</p>
<p>Because phonological skills are foundational to reading and spelling, addressing them early has benefits that reach well beyond speech clarity. Our approach is both effective and efficient — most families see meaningful improvement in intelligibility within a focused treatment period.</p>""",
},
"receptive-and-expressive-language-disorders-and-delay.json": {
"w1_title": "Language Therapy for Children in Montgomery County, MD",
"w2_title": "Understanding More. Saying More. Growing Every Day.",
"w3_text": """<p class="lead"><strong>Language is the foundation of learning, connection, and self-expression — and it can be strengthened at any age.</strong></p>
<p>Language has two sides: what we understand (receptive language) and what we produce (expressive language). A child may struggle with one, both, or different aspects of each. Some children understand everything said to them but struggle to put sentences together. Others speak in full sentences but miss subtle nuances of what they hear.</p>
<p>Language delays and disorders affect children across all developmental profiles — including those with no other diagnoses. At Gladstone Speech, we assess both sides of your child's language profile and build a treatment plan that addresses what's most important for their learning, social development, and daily communication.</p>
<p><strong>Signs of receptive or expressive language challenges include:</strong></p>
<ul>
<li>Difficulty following multi-step directions</li>
<li>Limited vocabulary for their age</li>
<li>Trouble forming complete sentences or using correct grammar</li>
<li>Difficulty understanding questions or abstract concepts</li>
<li>Struggles with narrative — retelling a story or describing an event in order</li>
</ul>""",
"w7_text": """<h2 style="text-align: center; font-family: Montserrat; font-size: 40px; color: #ffffff;">How We Treat Receptive and Expressive Language Disorders in Montgomery County</h2>""",
"w10_title": "LANGUAGE DEVELOPMENT THERAPY",
"w11_title": "Individualized Language Plans That Grow With Your Child",
"w12_text": """<p class="lead"><strong>Language therapy works — and we have the research-backed methods and the experienced team to prove it.</strong></p>
<p>Our therapist Grace Tung has extensive experience treating receptive and expressive language disorders across age groups and settings — school, clinic, and rehabilitation. She uses a naturalistic, child-led framework paired with structured language targets, because children learn language best when it's embedded in meaningful interaction.</p>
<p>Every plan at Gladstone Speech is built around SMART goals that parents can understand and track. We measure baseline performance, set specific targets, and monitor progress over time so you always know where your child stands and what comes next. Treatment is adjusted regularly based on real data — not guesswork.</p>
<p>Averi Cannon's family-centered philosophy also informs how we engage with parents and caregivers — because the language learning that happens at the dinner table and during bedtime routines matters just as much as what happens in a therapy session. We give families practical strategies to accelerate their child's progress every day.</p>""",
},
"social-pragmatic-language-disorders.json": {
"w1_title": "Social Communication Therapy in Montgomery County, MD",
"w2_title": "Helping Your Child Belong — In Every Room They Enter",
"w3_text": """<p class="lead"><strong>Speaking clearly is only part of communication — what matters is connecting with people.</strong></p>
<p>Social pragmatic language is the set of unwritten rules that govern how we use language with others: how we start a conversation, take turns, adjust our tone for different audiences, and interpret what someone really means beyond their words. For some children, these rules don't come naturally.</p>
<p>Social communication challenges are common in children with autism spectrum disorder, ADHD, language disorders, and acquired brain injuries — but they can also appear in children with no other diagnosis. The impact is real: difficulty making friends, misreading social situations, isolation in group settings, and frustration on all sides.</p>
<p><strong>Signs your child may need social communication therapy:</strong></p>
<ul>
<li>Difficulty starting or keeping a conversation going</li>
<li>Talking "at" others rather than "with" them</li>
<li>Trouble reading facial expressions, body language, or tone of voice</li>
<li>Missing the point of jokes, sarcasm, or figurative language</li>
<li>Difficulty adjusting language for different audiences (teacher vs. friend)</li>
</ul>""",
"w7_text": """<h2 style="text-align: center; font-family: Montserrat; font-size: 40px; color: #ffffff;">How We Build Social Communication Skills in Montgomery County, MD</h2>""",
"w10_title": "PRAGMATIC LANGUAGE THERAPY",
"w11_title": "Real-World Social Skills Built Through Meaningful Practice",
"w12_text": """<p class="lead"><strong>Social communication skills can be explicitly taught — and they generalize when practice is consistent and purposeful.</strong></p>
<p>At Gladstone Speech, social pragmatic therapy is never just "playing together." Every session targets specific, observable social communication skills using structured activities, role play, peer modeling, and video analysis — whatever works best for your child's learning style and goals.</p>
<p>Grace Tung brings broad clinical experience with social communication challenges across age groups and diagnostic profiles. Together with each family, she builds a roadmap of measurable social goals — from initiating a conversation with a classmate to understanding implied meaning in a teacher's instructions.</p>
<p>We also equip parents and caregivers with scripts and strategies for extending practice at home. Real-world generalization — using skills in the cafeteria, at birthday parties, and during family meals — is always the end goal. Therapy is designed to prepare your child for the moments that matter most in their daily life.</p>""",
},
"speech-sound-production-articulation-disorders.json": {
"w1_title": "Articulation Therapy for Children in Montgomery County, MD",
"w2_title": "Clear Speech, Clear Confidence — One Sound at a Time",
"w3_text": """<p class="lead"><strong>If your child's speech is difficult to understand, targeted articulation therapy can make a remarkable difference.</strong></p>
<p>Articulation disorders occur when a child has consistent difficulty producing one or more speech sounds correctly. While some sound errors are developmentally expected at certain ages, others persist beyond the typical window — making it harder for teachers, family members, and peers to understand what your child is saying.</p>
<p>At Gladstone Speech, we assess which sounds your child is having difficulty with, compare those errors to developmental norms, and determine whether therapy is recommended. If it is, we build a plan that targets the highest-priority sounds first — the ones most affecting intelligibility — and progresses systematically through each target.</p>
<p><strong>Common articulation challenges we treat:</strong></p>
<ul>
<li>Difficulty with the /r/ sound — one of the most common and persistent errors</li>
<li>Lateral or interdental lisps affecting /s/ and /z/</li>
<li>Errors with /l/, /th/, /sh/, /ch/, or consonant blends</li>
<li>Sound distortions that persist past the expected developmental age</li>
<li>Consistent substitutions or omissions across words and sentences</li>
</ul>""",
"w7_text": """<h2 style="text-align: center; font-family: Montserrat; font-size: 40px; color: #ffffff;">How We Help Children with Articulation Disorders in Montgomery County</h2>""",
"w10_title": "SPEECH SOUND PRODUCTION THERAPY",
"w11_title": "A Structured, Evidence-Based Path to Clear Speech",
"w12_text": """<p class="lead"><strong>Articulation therapy works best when it's targeted, consistent, and carried into daily life.</strong></p>
<p>Our therapist Grace Tung specializes in articulation and phonological disorders, with experience treating children across clinic and school settings. She uses a structured cueing hierarchy — moving from imitation at the sound level all the way to spontaneous use in natural conversation — so that every child has a clear, measurable path toward accurate speech.</p>
<p>Each plan is built with SMART goals that track progress specifically and accurately. We measure accuracy at the sound, word, phrase, sentence, and conversation level — and we do not advance to the next stage until each level is genuinely mastered. This methodical approach produces durable results, not short-term fixes.</p>
<p>Parents receive structured home practice activities at every stage, because carry-over into real conversation is always the ultimate goal. We coach caregivers on how to reinforce correct productions during everyday routines — without creating pressure or frustration. With consistent practice in and out of the clinic, most children make strong, measurable progress within a focused treatment period.</p>""",
},
"speech-therapy-services.json": {
"w1_title": "SPEECH THERAPY SERVICES IN MONTGOMERY COUNTY, MD",
"w2_title": "Comprehensive Speech and Language Services for Children and Families",
"w3_text": """<p class="lead"><strong>Speech therapy is far more than the "r" sound — it's the full range of how we communicate, connect, and learn.</strong></p>
<p>At Gladstone Speech, we provide individualized evaluation and treatment for a wide spectrum of speech, language, feeding, and myofunctional disorders. Our clients include children from infancy through adolescence, and our clinicians are trained to meet each child exactly where they are — whether that means working toward a first word, building language for academic success, or addressing feeding challenges in medically complex infants.</p>
<p>Our team brings deep clinical expertise, licensed in Maryland, Virginia, and DC, and drawing on advanced training across a range of specialties. We believe that the right therapy, delivered by the right therapist at the right time, makes a genuine difference in a child's life — and in the life of their family.</p>
<p><strong>Our services include:</strong></p>
<ul>
<li>Articulation and phonological disorders</li>
<li>Receptive and expressive language delays and disorders</li>
<li>Childhood Apraxia of Speech (CAS)</li>
<li>Fluency and stuttering treatment</li>
<li>Auditory processing disorder</li>
<li>Social pragmatic language</li>
<li>Autism spectrum communication</li>
<li>Orofacial myofunctional therapy and pediatric feeding</li>
</ul>""",
"w7_text": """<h2 style="text-align: center; font-family: Montserrat; font-size: 40px; color: #ffffff;">What Our Speech & Language Therapy Services Cover in Montgomery County</h2>""",
"w10_title": "TRUSTED THERAPISTS. PROVEN RESULTS.",
"w11_title": "Our Team Brings Expertise, Evidence, and Heart to Every Session",
"w12_text": """<p class="lead"><strong>Three experienced clinicians. One mission: helping your child communicate, connect, and thrive.</strong></p>
<p>Gillian Gladstone Teran, MS, CCC-SLP, is an IAOM Board Certified Orofacial Myologist with more than 15 years of clinical experience. A University of Maryland graduate, Gillian specializes in speech, feeding, swallowing, and orofacial myofunctional disorders, and she regularly presents her expertise to medical and dental professionals throughout the region.</p>
<p>Grace Tung, MS, CCC-SLP, brings experience across clinic, school, and rehabilitation settings, treating clients of all ages. Her areas of expertise span articulation, phonological disorders, receptive and expressive language, AAC, apraxia, dysphagia, and oral motor therapy.</p>
<p>Averi Cannon, MS, CCC-SLP, is a Certified Lactation Counselor and pediatric feeding specialist with graduate training from MGH Institute of Health Professions. She specializes in medically complex cases, bringing a family-centered approach to every child she serves.</p>
<p>Every client receives a personalized treatment plan built around SMART goals and evidence-based methods — because your child deserves therapy that delivers real, lasting results.</p>""",
},
} # end PAGES
# ── Helpers ─────────────────────────────────────────────────────────────────────
def fix_chicago(text):
"""Replace any remaining Chicago/IL references."""
text = re.sub(r'Chicago[,\s]+IL', 'Montgomery County, MD', text, flags=re.IGNORECASE)
text = re.sub(r'Chicago[,\s]+Illinois', 'Montgomery County, Maryland', text, flags=re.IGNORECASE)
text = re.sub(r'\bin Chicago\b', 'in Montgomery County, MD', text, flags=re.IGNORECASE)
return text
def update_widgets(widgets, content):
"""Apply content dict to target widgets by index."""
for i, w in enumerate(widgets):
pi = w.get('panels_info', {})
cls = pi.get('class', '')
g = pi.get('grid', -1)
c = pi.get('cell', -1)
# Widget 1 — h6 row 2 label
if i == 1 and 'heading' in cls.lower():
w['title'] = content['w1_title']
w.pop('text', None)
# Widget 2 — h2 row 2 title
elif i == 2 and 'heading' in cls.lower():
w['title'] = content['w2_title']
w.pop('text', None)
# Widget 3 — editor row 2 body
elif i == 3 and 'editor' in cls.lower():
w['text'] = content['w3_text']
# Widget 7 — banner editor
elif i == 7 and 'editor' in cls.lower():
w['text'] = content['w7_text']
# Widget 10 — h6 row 4 label
elif i == 10 and 'heading' in cls.lower():
w['title'] = content['w10_title']
w.pop('text', None)
# Widget 11 — h2 row 4 title
elif i == 11 and 'heading' in cls.lower():
w['title'] = content['w11_title']
w.pop('text', None)
# Widget 12 — editor row 4 body
elif i == 12 and 'editor' in cls.lower():
w['text'] = content['w12_text']
# Fix Chicago/IL in any remaining text/title fields
if 'text' in w:
w['text'] = fix_chicago(w['text'])
if 'title' in w:
w['title'] = fix_chicago(w['title'])
return widgets
# ── Main ────────────────────────────────────────────────────────────────────────
import os
for filename, content in PAGES.items():
path = os.path.join(TEMPLATES_DIR, filename)
with open(path) as fh:
data = json.load(fh)
widgets = data['panels_data']['widgets']
data['panels_data']['widgets'] = update_widgets(widgets, content)
with open(path, 'w') as fh:
json.dump(data, fh, indent=2, ensure_ascii=False)
print(f"Updated: {filename}")
print("\nAll 9 templates updated.")