Changeset 2147


Ignore:
Timestamp:
09/03/18 18:39:20 (3 weeks ago)
Author:
csnyder
Message:

Open appeal in new tab

Location:
riseboro
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • riseboro/riseboro-model.json

    r2058 r2147  
    1313     
    1414    "l_appeal": { "type": "bool", "label": "Homepage Appeal", "instruction": "If checked, homepage appeal popup will appear. <br>(Use ?appeal=1 on URL to show appeal when this box is unchecked.)" }, 
    15     "a_appealhtml": { "type": "markup", "label": "Appeal Popup" }, 
     15    "a_appealhtml": { "type": "markup", "label": "Appeal Popup", "instruction": "To create a link that closes the appeal window and redirects to the appeal URL, use https://tls.chxo.com/rb/?appeal=clicked" }, 
    1616    "l_appealheight": { "type": "number", "label": "Appeal Height", "instruction": "Percentage of window height for appeal image. Leave blank for default height, which is 82. (82% of window height)" }, 
    1717    "l_appealurl": { "type": "url", "label": "Appeal URL", "instruction": "URL for appeal's action button." }, 
     18    "l_appealnewtab": { "type": "bool", "label": "New Tab?", "instruction": "If checked, appeal URL will be opened in a new tab." }, 
    1819    "l_appealaction": { "type": "text", "label": "Appeal Button", "instruction": "Label for appeal's action button." }, 
    1920    "l_appealcolor": { "type": "color", "label": "Appeal Button Color" }, 
  • riseboro/templates/site-view.html.php

    r1858 r2147  
    1717      </div> 
    1818      <div id="AppealAction" class="nomobile"> 
    19         <a href="<?=h($site->url)?>?appeal=clicked" class="action" style="background-color: <?=h($site->local->appealcolor)?>;"><?=h($site->local->appealaction)?></a> 
     19        <a href="<?=h($site->url)?>?appeal=clicked" class="action" style="background-color: <?=h($site->local->appealcolor)?>;" <?if(!empty($site->local->appealnewtab)){?>target="_blank" onclick="$('Appeal').style.display='none';"<?}?>><?=h($site->local->appealaction)?></a> 
    2020      </div> 
    2121      <div id="AppealContent" class="nolightbox"> 
     
    2323      </div> 
    2424      <div id="AppealMobile" class="nodesktop"> 
    25         <a href="<?=h($site->url)?>?appeal=clicked" class="action" style="background-color: <?=h($site->local->appealcolor)?>;"><?=h($site->local->appealaction)?></a> 
     25        <a href="<?=h($site->url)?>?appeal=clicked" class="action" style="background-color: <?=h($site->local->appealcolor)?>;" <?if(!empty($site->local->appealnewtab)){?>target="_blank" onclick="$('Appeal').style.display='none';"<?}?>><?=h($site->local->appealaction)?></a> 
    2626      </div> 
    2727    </div> 
Note: See TracChangeset for help on using the changeset viewer.