2013-10-27 01:06:58 +02:00
<! DOCTYPE html >
< html class = " action-<?= $this->request ()->controller() ?> action-<?= $this->request ()->controller() ?>-<?= $this->request ()->action() ?> hide-advanced-editing " >
< head >
< meta http - equiv = " Content-type " content = " text/html;charset=UTF-8 " >
< title >< ? = $this -> html_title () ?> </title>
< meta name = " description " content = " <?= CONFIG()->app_name ?> " >
< link rel = " shortcut icon " href = " /favicon.ico " type = " image/x-icon " >
2017-01-12 20:36:33 +01:00
< link rel = " icon " href = " android-icon-192x192.png " sizes = " 192x192 " >
< meta name = " theme-color " content = " #b5534a " >
2013-10-27 01:06:58 +02:00
< link rel = " top " title = " <?= CONFIG()->app_name ?> " href = " / " >
< ? php # The javascript-hide class is used to hide elements (eg. blacklisted posts) from JavaScript. ?>
< script type = " text/javascript " >
var css = " .javascript-hide { display: none !important; } " ;
var style = document . createElement ( " style " ); style . type = " text/css " ;
if ( style . styleSheet ) // IE
style . styleSheet . cssText = css ;
else
style . appendChild ( document . createTextNode ( css ));
document . getElementsByTagName ( " head " )[ 0 ] . appendChild ( style );
</ script >
< ? = $this -> content ( 'html_header' ) ?>
2016-01-08 03:53:56 +01:00
< ? = $this -> autoDiscoveryLinkTag ( 'atom' , 'post#atom' , array ( 'tags' => $this -> h ( $this -> params () -> tags ))) ?>
2013-10-27 01:06:58 +02:00
< ? php foreach ( CONFIG () -> asset_stylesheets as $asset ) : ?>
< ? = $this -> stylesheetLinkTag ( $asset ) ?>
< ? php endforeach ?>
< ? php foreach ( CONFIG () -> asset_javascripts as $asset ) : ?>
< ? = $this -> javascriptIncludeTag ( $asset ) ?>
< ? php endforeach ?>
<!-- [ if lt IE 8 ] >
< script src = " /IE8.js " type = " text/javascript " ></ script >
<! [ endif ] -->
< ? php // iTODO: echo $this->tag('link', array('rel' => 'search', 'type' => 'Mime':'OPENSEARCH', 'href' => 'opensearch_path'('xml'), 'title' => 'CONFIG'()->app_name) ?>
< ? = CONFIG () -> custom_html_headers ?>
<!-- [ if lt IE 7 ] >
< style type = " text/css " >
body div #post-view > div#right-col > div > div#note-container > div.note-body {
overflow : visible ;
}
</ style >
< script src = " <?= $this->request ()->protocol() ?>ie7-js.googlecode.com/svn/trunk/lib/IE7.js " type = " text/javascript " ></ script >
<! [ endif ] -->
< ? php // echo csrf_meta_tag ?>
</ head >
< body >
2016-09-14 10:58:05 +02:00
< script >
2016-09-14 11:01:01 +02:00
( function () {
var cookieName = 'disclaimer_accepted' ;
2016-09-14 10:58:05 +02:00
2016-09-14 11:01:01 +02:00
if ( Cookie . get ( cookieName )) {
return ;
}
2016-09-14 10:58:05 +02:00
2016-09-14 11:01:01 +02:00
var $ = jQuery ;
2017-06-06 17:50:09 +02:00
var notice = 'WARNING! THIS SITE HAS MIXED CONTENT AND IS NOT SAFE FOR WORK OR PUBLIC!\nThis site contains mixed content and has images containing erotic, grotesque acts, or acts of violence. NO content portrays any real life events or illegal content. This database is well regulated by its moderators and all posts are pending until approval.\nSome content is NOT accessible to the public or any bot, you must register or login to view such content.' ;
2016-09-14 11:45:41 +02:00
notice = notice . replace ( / \n / g , " <br /> " );
2017-06-06 17:50:09 +02:00
var accept = 'YES, not a normie!' ;
var cancel = 'EXIT' ;
2016-09-14 10:58:05 +02:00
2016-09-14 11:01:01 +02:00
var container = $ ( '<div>' )
. css ({
2016-09-14 11:13:16 +02:00
backgroundColor : 'rgba(66, 0, 0, 0.96)' ,
2016-09-14 11:01:01 +02:00
width : '100%' ,
height : '100%' ,
position : 'absolute' ,
left : 0 ,
top : 0 ,
zIndex : 999 ,
});
2016-09-14 10:58:05 +02:00
2016-09-14 11:36:50 +02:00
container
2016-09-14 11:01:01 +02:00
. append (
$ ( '<div>' )
. css ({
display : 'flex' ,
width : '100%' ,
height : '100%' ,
justifyContent : 'center' ,
alignItems : 'center' ,
})
. append (
$ ( '<div>' )
. css ({
2016-09-14 11:36:50 +02:00
backgroundColor : '#a90000' ,
2016-09-14 11:01:01 +02:00
display : 'flex' ,
padding : 8 ,
minWidth : 350 ,
2016-09-14 11:36:50 +02:00
flexDirection : 'column' ,
2016-09-14 11:01:01 +02:00
})
. append (
2016-09-14 11:36:50 +02:00
$ ( '<div>' )
. css ({
margin : 8 ,
color : 'white' ,
})
2016-09-14 11:42:33 +02:00
. html ( notice )
2016-09-14 11:01:01 +02:00
)
. append (
$ ( '<div>' )
. css ({
margin : 8 ,
textAlign : 'right'
})
. append (
$ ( '<button>' )
. css ({
marginRight : 5
})
. html ( accept )
. click ( function () {
Cookie . put ( cookieName , true );
container . remove ();
})
)
. append (
$ ( '<button>' )
. html ( cancel )
. click ( function () {
2017-06-06 17:50:09 +02:00
window . location . href = 'https://acr.moe' ;
2016-09-14 11:01:01 +02:00
})
)
)
)
)
. prependTo (
$ ( 'body' )
)
2016-09-14 11:42:33 +02:00
2016-09-14 11:01:01 +02:00
})();
</ script >
2013-10-27 01:06:58 +02:00
< ? = $this -> partial ( 'layouts/news' ) ?>
< div id = " header " >
2016-12-01 17:17:29 +01:00
< div id = " title " >< h2 id = " site-title " >< ? = $this -> linkTo ( $this -> imageTag ( 'images/logo_small.png' , array ( 'alt' => CONFIG () -> app_name , 'size' => '146x30' , 'id' => 'logo' )), CONFIG () -> url_base ) ?> <div style="margin-right: 0.0em;">
2017-01-25 11:30:59 +01:00
< ? php if ( $this -> request () -> controller () == 'post' ) : ?>
< ? = $this -> formTag ( 'post#index' , array ( 'method' => 'get' , 'accept-charset' => 'UTF-8' ), function (){ ?>
< div style = " margin:0;padding:0;display:inline " ></ div >
< div >
< ? = $this -> textFieldTag ( " tags " , $this -> h ( $this -> params () -> tags ), array ( 'size' => '60' , 'autocomplete' => 'off' , 'placeholder' => 'Search Posts...' , 'style' => 'font-size: 14pt; padding: 0 0 1px 4px; margin: 4px 0 0 8px; border-style: dotted; background: #2b0000;' )) ?>
< ? = $this -> tag_completion_box ( '$("tags")' , [ '$("tags").up("form")' , '$("tags")' , null ], true ) ?>
< ? php if ( $this -> request () -> action () == 'index' ) : ?>
< div style = " display: inline-block; margin: 0 0 0 -8px; " id = " mode-box " class = " advanced-editing " >
< form onsubmit = " return false; " action = " " >
< div >
2017-01-25 13:31:00 +01:00
< select name = " mode " id = " mode " onchange = " PostModeMenu.change() " onkeyup = " PostModeMenu.change() " style = " font-size: 14pt; padding: 0 0 1px 4px; margin: 4px 0 0 0; border-style: dotted; background: #2b0000; border-color: darkred; border-width: 0 0 1px 1px; color: #7d3030; " >
2017-01-25 11:30:59 +01:00
< option value = " view " > View </ option >
< option value = " edit " > Edit </ option >
< option value = " rating-s " > Rate : S </ option >
< option value = " rating-q " > Rate : Q </ option >
< option value = " rating-e " > Rate : E </ option >
< ? php if ( current_user () -> is_privileged_or_higher ()) : ?>
2017-06-06 18:00:25 +02:00
< option value = " lock-rating " > L - Rating </ option >
< option value = " lock-note " > L - Notes </ option >
2017-01-25 11:30:59 +01:00
< ? php endif ?>
< ? php if ( current_user () -> is_mod_or_higher ()) : ?>
< option value = " approve " > Approve </ option >
< ? php endif ?>
< option value = " flag " > Flag </ option >
< option value = " apply-tag-script " > Script </ option >
< option value = " reparent-quick " > Reparent </ option >
< ? php if ( $this -> searching_pool ) : ?>
2017-06-06 18:00:25 +02:00
< option value = " remove-from-pool " > D . F . Pool </ option >
2017-01-25 11:30:59 +01:00
< ? php endif ?>
< ? php if ( CONFIG () -> delete_post_mode && current_user () -> is_admin ()) : ?>
2017-06-06 18:00:25 +02:00
< option value = " destroy " > Delete </ option >
2017-01-25 11:30:59 +01:00
< ? php endif ?>
</ select >
</ div >
</ form >
</ div >
< ? php endif ?>
</ div >
< ? php }) ?>
< ? php endif ?>
< ? php if ( $this -> request () -> controller () == 'tag' ) : ?>
< ? = $this -> formTag ( array ( 'action' => 'index' ), array ( 'method' => 'get' ), function (){ ?>
< table class = " form " >
2017-06-06 18:00:25 +02:00
< ? = $this -> textFieldTag ( " name " , $this -> h ( $this -> params () -> name ), array ( 'size' => '35' , 'autocomplete' => 'off' , 'placeholder' => 'Search Tags...' , 'style' => 'font-size: 14pt; padding: 0 0 1px 4px; margin: 4px 0 0 8px; border-style: dotted; background: #2b0000;' )) ?> <?= $this->selectTag('type', array(array_merge(array('Any' => 'any'), array_unique(CONFIG()->tag_types)), $this->params()->type), array('style' => 'font-size: 14pt; padding: 0 0 1px 4px; margin: 4px 0 0 0; border-style: dotted; background: #2b0000; border-color: darkred; border-width: 0 0 1px 1px; color: #7d3030;')) ?> <?= $this->selectTag('order', array(array('Name' => 'name', 'Count' => 'count', 'Date' => 'date'), $this->params()->order), array('style' => 'font-size: 14pt; padding: 0 0 1px 4px; margin: 4px 0 0 0; border-style: dotted; background: #2b0000; border-color: darkred; border-width: 0 0 1px 1px; color: #7d3030;')) ?>
2017-01-25 11:30:59 +01:00
</ table >
< ? php }) ?>
< ? php endif ?>
< ? php if ( $this -> request () -> controller () == 'artist' ) : ?>
< ? = $this -> formTag ([], [ 'method' => 'get' ], function (){ ?>
2017-06-06 18:00:25 +02:00
< ? = $this -> textFieldTag ( 'name' , $this -> params () -> name , array ( 'size' => '35' , 'autocomplete' => 'off' , 'placeholder' => 'Search Artists...' , 'style' => 'font-size: 14pt; padding: 0 0 1px 4px; margin: 4px 0 0 8px; border-style: dotted; background: #2b0000;' )) ?> <?= $this->selectTag('order', [['Name' => 'name', 'Date' => 'date'], ($this->params()->order ?: '')], ['style' => 'font-size: 14pt; padding: 0 0 1px 4px; margin: 4px 0 0 -8px; border-style: dotted; background: #2b0000; border-color: darkred; border-width: 0 0 1px 1px; color: #7d3030;']) ?>
2017-01-25 13:31:00 +01:00
< ? php }) ?>
< ? php endif ?>
< ? php if ( $this -> request () -> controller () == 'pool' ) : ?>
< ? = $this -> formTag ([], [ 'method' => 'get' ], function (){ ?>
< ? php if ( $this -> params () -> order ) : ?>
< ? = $this -> hiddenFieldTag ( " order " , $this -> params () -> order ) ?>
< ? php endif ?>
2017-06-06 18:00:25 +02:00
< ? = $this -> textFieldTag ( " query " , $this -> h ( $this -> params () -> query ), [ 'size' => '35' , 'autocomplete' => 'off' , 'placeholder' => 'Search Pools...' , 'style' => 'font-size: 14pt; padding: 0 0 1px 4px; margin: 4px 0 0 8px; border-style: dotted; background: #2b0000;' ]) ?>
2017-01-25 11:30:59 +01:00
< ? php }) ?>
< ? php endif ?>
2016-09-16 04:31:13 +02:00
</ div >
2016-09-25 07:03:21 +02:00
</ h2 ></ div >
2013-10-27 01:06:58 +02:00
< ? = $this -> partial ( 'layouts/menu' ) ?>
</ div >
< ? = $this -> partial ( 'layouts/login' ) ?>
2017-01-25 11:30:59 +01:00
< ? php if ( CONFIG () -> server_host == " sequenzia.moe " ) : ?>
< div style = " display: none; " > The global image database !</ div >
2013-10-27 01:06:58 +02:00
< ? php endif ?>
<!-- [ if lt IE 7 ] >
< div style = " display: none; " id = " old-browser " >< ? = $this -> t ( 'old_browser' ) ?>
< ? = $this -> t ( 'old_browser2' ) ?>
< a href = " http://www.mozilla.com/firefox/ " > Firefox </ a > ,
< a href = " http://www.opera.com/ " > Opera </ a > ,
< a href = " http://www.microsoft.com/windows/internet-explorer/download-ie.aspx " > Internet Explorer </ a >.
< div style = " text-align: right; " id = " old-browser-hide " >
< a href = " # " onclick = '$("old-browser").hide(); Cookie.put("hide-ie-nag", "1");' >< ? = $this -> t ( 'old_browser3' ) ?> </a>
</ div >
</ div >
<! [ endif ] -->
< ? = $this -> partial ( 'layouts/notice' ) ?>
< div class = " blocked " id = " block-reason " style = " display: none; " >
</ div >
< div id = " content " >
< ? = $this -> content () ?>
< ? php if ( $this -> contentFor ( 'subnavbar' )) : ?>
< div class = " footer " >
< ? = $this -> content ( 'above_footer' ) ?>
< ul class = " flat-list " id = " subnavbar " >
< ? = $this -> content ( 'subnavbar' ) ?>
</ ul >
</ div >
< ? php endif ?>
</ div >
< script type = " text/javascript " >
InitTextAreas ();
InitAdvancedEditing ();
Post . InitBrowserLinks ();
if ( TagCompletion )
TagCompletion . init ( < ? = json_encode ( Tag :: get_summary_version ()) ?> );
</ script >
<!-- [ if lt IE 7 ] >
< script type = " text/javascript " >
if ( Cookie . get ( " hide-ie-nag " ) != " 1 " )
$ ( " old-browser " ) . show ();
</ script >
<! [ endif ] -->
< ? = $this -> content ( 'post_cookie_javascripts' ) ?>
< ? php if ( CONFIG () -> ga_tracking_id ) echo $this -> partial ( 'layouts/ga' ) ?>
</ body >
</ html >