Move Brave ad into template and show it on both the file viewer and text upload
This commit is contained in:
@@ -73,22 +73,7 @@
|
|||||||
<img src="/res/img/info_small.png" alt="Help"/>
|
<img src="/res/img/info_small.png" alt="Help"/>
|
||||||
<span>Details</span>
|
<span>Details</span>
|
||||||
</button>
|
</button>
|
||||||
<br/><hr/>
|
{{template "advertisement" .}}
|
||||||
<div id="brave_ref" style="text-align: center; padding: 2px;">
|
|
||||||
{{if ne (isBrave .UserAgent) true}}
|
|
||||||
Use the Brave web browser for a faster and safer web!<br/>
|
|
||||||
<a href="https://brave.com/pix009" id="btnBrave" class="button toolbar_button button_full_width button_highlight">
|
|
||||||
<img src="/res/img/brave_lion.png" alt="Brave lion"/>
|
|
||||||
<span>Get Brave</span>
|
|
||||||
</a>
|
|
||||||
<br/>
|
|
||||||
or <a href="https://medium.com/pixeldrain/advertising-on-pixeldrain-a-more-honest-approach-d5e00e3f0c29">learn why pixeldrain supports Brave</a>
|
|
||||||
{{else}}
|
|
||||||
Thank you for using Brave! Please consider supporting pixeldrain with a tip
|
|
||||||
<img src="/res/img/bat_logo_color.png" style="height: 1em; width: 1em;" />
|
|
||||||
{{end}}
|
|
||||||
</div>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<!-- This frame will load the download URL when a download button is pressed -->
|
<!-- This frame will load the download URL when a download button is pressed -->
|
||||||
<iframe id="download_frame" style="display: none; width: 1px; height: 1px;"></iframe>
|
<iframe id="download_frame" style="display: none; width: 1px; height: 1px;"></iframe>
|
||||||
|
18
res/template/fragments/advertisement.html
Normal file
18
res/template/fragments/advertisement.html
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{{define "advertisement"}}
|
||||||
|
<br/><hr/>
|
||||||
|
<div id="brave_ref" style="text-align: center; padding: 2px;">
|
||||||
|
{{if ne (isBrave .UserAgent) true}}
|
||||||
|
Use the Brave web browser for a faster and safer web!<br/>
|
||||||
|
<a href="https://brave.com/pix009" id="btnBrave" class="button toolbar_button button_full_width button_highlight">
|
||||||
|
<img src="/res/img/brave_lion.png" alt="Brave lion"/>
|
||||||
|
<span>Get Brave</span>
|
||||||
|
</a>
|
||||||
|
<br/>
|
||||||
|
or <a href="https://medium.com/pixeldrain/advertising-on-pixeldrain-a-more-honest-approach-d5e00e3f0c29">learn why pixeldrain supports Brave</a>
|
||||||
|
{{else}}
|
||||||
|
Thank you for using Brave! Please consider supporting pixeldrain with a tip
|
||||||
|
<img src="/res/img/bat_logo_color.png" style="height: 1em; width: 1em;" />
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
<br/>
|
||||||
|
{{end}}
|
@@ -31,20 +31,14 @@
|
|||||||
<img src="/res/img/upload_small.png" alt="Start Upload"/>
|
<img src="/res/img/upload_small.png" alt="Start Upload"/>
|
||||||
<span>Upload</span>
|
<span>Upload</span>
|
||||||
</button>
|
</button>
|
||||||
<a href="/" class="button toolbar_button button_full_width">
|
<a href="/" class="button toolbar_button button_full_width">
|
||||||
<img src="/res/img/pixeldrain_small.png" alt="Visit the home page" style="width:22px; height: 22px;"/>
|
<img src="/res/img/pixeldrain_small.png" alt="Visit the home page" style="width:22px; height: 22px;"/>
|
||||||
<span>Home</span>
|
<span>Home</span>
|
||||||
</a>
|
</a>
|
||||||
</form>
|
{{template "advertisement" .}}
|
||||||
<iframe id='sponsors' data-aa='73974'
|
|
||||||
src='//ad.a-ads.com/73974?size=120x600&background_color=000000&text_color=eeeeee&title_color=eeeeee&link_color=9fcf6c&link_hover_color=d2ffa1&title_hover_color=d2ffa1'
|
|
||||||
scrolling='no' allowtransparency='true' seamless="seamless">
|
|
||||||
</iframe>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/res/script/compiled/textupload.js"></script>
|
<script src="/res/script/compiled/textupload.js"></script>
|
||||||
{{template "analytics"}}
|
{{template "analytics"}}
|
||||||
</body>
|
</body>
|
||||||
|
Reference in New Issue
Block a user