/* * * <p id="100">Hij zei: "Toon * <a class="note" onclick="ShowHideNote(event,0);">berouw</a> * [want] het koninkrijk van de hemel is nabij" * </p> * <p class='noteText'> t’shuvah omkeren, terugkeren; “omkeren van de zonde en terugkeren naar de Schepper”.</p> * <h5>3</h5> * * <div><h5>21</h5> * <p id="42"> * <a class="note" onclick="ShowHideNote(event,1);"> * Zij zal * </a> * geboorte geven aan een zoon en zij zal hem Jezus noemen, want hij zal * <a class="note" onclick="ShowHideNote(event,0);">zijn mensen * </a> * van hun zonden bevrijden." * </p> * <p class='noteText'> Aramees (15814) Leameh kan 'mens, natie, heidenen' betekenen. Vanwege meervoud 'hun zonden' gekozen voor mensen, grieks Laos.</p> * <p class='noteText'> In het Aramees zowel 'jij zult' als 'zij zal' betekenen. In overeenstemming met Lukas 1:31 * </p> * </div> * */ protected override void CreateChildControls() { if (_texts == null) { return; } base.CreateChildControls(); //SMELL: should be gotten from some other source which covers both languages //var fHEader = _texts.FirstOrDefault(f => !string.IsNullOrEmpty(f.Header)); //if (fHEader != null) //{ // VerseTitle vt = new VerseTitle(fHEader.Header); // Controls.Add(vt); //} foreach (var t in _texts) { //the actual verse in specific bookedition comes here var pnl = new PlainTextHolder() { Content = t.Content, TextId = t.TextId }; if (t.langid == 90) { pnl.CssClass = "syc"; pnl.Attributes["lang"] = "syc"; pnl.Direction = ContentDirection.RightToLeft; pnl.ShowSuggestion = false; } else { pnl.CssClass = "verse"; pnl.Direction = ContentDirection.LeftToRight; pnl.ShowSuggestion = ShowSuggestion; } Trace.TraceInformation("written RtlControls textholder textid={0} alina {1} lang={2}", t.TextId, t.Alineaid, t.langid); AddPlainTextHolder(pnl); if (!string.IsNullOrEmpty(t.Remarks)) { var pNotes = pnl.AddFootNote(t.Remarks); foreach (var p in pNotes) { pnl.Controls.Add(p); } } } }
public void AddPlainTextHolder(PlainTextHolder holder) { EnsureChildControls(); if (holder.Direction == ContentDirection.RightToLeft) { Controls.AddAt(0, holder); //before the seo tag TotalRtlControls++; } else { Controls.Add(holder);//ad the end of the list TotalLtrControls++; } }