| @@ -3,13 +3,14 @@ | |||||
| define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php'); | define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php'); | ||||
| ?> | ?> | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
| <html> | |||||
| <!DOCTYPE html> | |||||
| <html lang="en"> | |||||
| <head> | <head> | ||||
| <title><?=display_str($PageTitle)?></title> | <title><?=display_str($PageTitle)?></title> | ||||
| <meta charset="utf-8" /> | <meta charset="utf-8" /> | ||||
| <meta id="auth_holder" userid="<?=G::$LoggedUser['ID']?>" authkey="<?=G::$LoggedUser['AuthKey']?>" /> | |||||
| <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" /> | |||||
| <meta name="userid" content="<?=G::$LoggedUser['ID']?>" /> | |||||
| <meta name="authkey" content="<?=G::$LoggedUser['AuthKey']?>" /> | |||||
| <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico')?>" /> | |||||
| <link rel="search" type="application/opensearchdescription+xml" title="<?=SITE_NAME?>" href="<?=STATIC_SERVER?>opensearch.xml"> | <link rel="search" type="application/opensearchdescription+xml" title="<?=SITE_NAME?>" href="<?=STATIC_SERVER?>opensearch.xml"> | ||||
| <link rel="alternate" type="application/rss+xml" | <link rel="alternate" type="application/rss+xml" | ||||
| href="feeds.php?feed=feed_news&user=<?=G::$LoggedUser['ID']?>&auth=<?=G::$LoggedUser['RSS_Auth']?>&passkey=<?=G::$LoggedUser['torrent_pass']?>&authkey=<?=G::$LoggedUser['AuthKey']?>" | href="feeds.php?feed=feed_news&user=<?=G::$LoggedUser['ID']?>&auth=<?=G::$LoggedUser['RSS_Auth']?>&passkey=<?=G::$LoggedUser['torrent_pass']?>&authkey=<?=G::$LoggedUser['AuthKey']?>" | ||||
| @@ -196,7 +197,6 @@ if ($NotificationsManager->is_skipped(NotificationsManager::SUBSCRIPTIONS)) { | |||||
| </div> | </div> | ||||
| </li> | </li> | ||||
| </ul> | </ul> | ||||
| </ul> | |||||
| </div> | </div> | ||||
| <? | <? | ||||
| if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search | if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search | ||||
| @@ -2,11 +2,11 @@ | |||||
| global $LoggedUser; | global $LoggedUser; | ||||
| define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php'); | define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php'); | ||||
| ?> | ?> | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
| <!DOCTYPE html> | |||||
| <html> | <html> | ||||
| <head> | <head> | ||||
| <title><?=display_str($PageTitle)?></title> | <title><?=display_str($PageTitle)?></title> | ||||
| <meta http-equiv="X-UA-Compatible" content="chrome=1; IE=edge" /> | |||||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |||||
| <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" /> | <link rel="shortcut icon" href="favicon.ico?v=<?=md5_file('favicon.ico');?>" /> | ||||
| <link href="<?=STATIC_SERVER ?>styles/public/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/public/style.css')?>" rel="stylesheet" type="text/css" /> | <link href="<?=STATIC_SERVER ?>styles/public/style.css?v=<?=filemtime(SERVER_ROOT.'/static/styles/public/style.css')?>" rel="stylesheet" type="text/css" /> | ||||
| <? | <? | ||||
| @@ -23,7 +23,7 @@ define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php'); | |||||
| <? | <? | ||||
| } | } | ||||
| $img = array_diff(scandir(SERVER_ROOT.'/misc/bg', 1), array('.', '..')); ?> | $img = array_diff(scandir(SERVER_ROOT.'/misc/bg', 1), array('.', '..')); ?> | ||||
| <meta id="bg_data" bg="<?=$img[rand(0,count($img)-1)]?>"> | |||||
| <meta name="bg_data" content="<?=$img[rand(0,count($img)-1)]?>"> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <div id="head"><span> | <div id="head"><span> | ||||
| @@ -35,6 +35,6 @@ define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php'); | |||||
| <div id="content"> | <div id="content"> | ||||
| <table class="layout" id="maincontent"> | <table class="layout" id="maincontent"> | ||||
| <tr> | <tr> | ||||
| <td align="center" valign="middle"> | |||||
| <td class="centered"> | |||||
| <a href="index.php"><div id="logo"></div></a> | <a href="index.php"><div id="logo"></div></a> | ||||
| <? | <? | ||||
| @@ -52,16 +52,6 @@ | |||||
| if (!isset($InputTitle)) { | if (!isset($InputTitle)) { | ||||
| $InputTitle = 'Post comment'; | $InputTitle = 'Post comment'; | ||||
| } | } | ||||
| if (!isset($Action)) { | |||||
| $Action = ''; | |||||
| } | |||||
| // TODO: Remove inline styles | |||||
| // Old to do? | |||||
| // TODO: Preview, come up with a standard, make it look like post or just a | |||||
| // block of formatted BBcode, but decide and write some proper XHTML | |||||
| $ReplyText = new TEXTAREA_PREVIEW('body', 'quickpost', '', | $ReplyText = new TEXTAREA_PREVIEW('body', 'quickpost', '', | ||||
| $TextareaCols, $TextareaRows, false, false, true, array( | $TextareaCols, $TextareaRows, false, false, true, array( | ||||
| @@ -95,18 +85,18 @@ | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <? if (Users::has_avatars_enabled()) { ?> | <? if (Users::has_avatars_enabled()) { ?> | ||||
| <td class="avatar" valign="top"> | |||||
| <td class="avatar valign_top"> | |||||
| <?=Users::show_avatar(G::$LoggedUser['Avatar'], G::$LoggedUser['ID'], G::$LoggedUser['Username'], (!isset($HeavyInfo['DisableAvatars']) || $HeavyInfo['DisableAvatars']))?> | <?=Users::show_avatar(G::$LoggedUser['Avatar'], G::$LoggedUser['ID'], G::$LoggedUser['Username'], (!isset($HeavyInfo['DisableAvatars']) || $HeavyInfo['DisableAvatars']))?> | ||||
| </td> | </td> | ||||
| <? } ?> | <? } ?> | ||||
| <td class="body" valign="top"> | |||||
| <td class="body valign_top"> | |||||
| <div id="contentpreview" style="text-align: left;"> | <div id="contentpreview" style="text-align: left;"> | ||||
| <div id="preview_<?=$ReplyText->getID()?>"></div> | <div id="preview_<?=$ReplyText->getID()?>"></div> | ||||
| </div> | </div> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <form class="send_form center" name="reply" id="quickpostform" action="<?=$Action?>" method="post"<? if (!check_perms('users_mod')) { ?> onsubmit="quickpostform.submit_button.disabled = true;"<? } ?>> | |||||
| <form class="send_form center" name="reply" id="quickpostform" <?=isset($Action)?'action="'.$Action.'"':''?> method="post"<? if (!check_perms('users_mod')) { ?> onsubmit="quickpostform.submit_button.disabled = true;"<? } ?>> | |||||
| <input type="hidden" name="action" value="<?=$InputAction?>" /> | <input type="hidden" name="action" value="<?=$InputAction?>" /> | ||||
| <input type="hidden" name="auth" value="<?=G::$LoggedUser['AuthKey']?>" /> | <input type="hidden" name="auth" value="<?=G::$LoggedUser['AuthKey']?>" /> | ||||
| <input type="hidden" name="<?=$InputName?>" value="<?=$InputID?>" /> | <input type="hidden" name="<?=$InputName?>" value="<?=$InputID?>" /> | ||||
| @@ -22,6 +22,6 @@ | |||||
| <input type="button" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" /> | <input type="button" value="Preview" class="hidden button_preview_<?=$TextPrev->getID()?>" /> | ||||
| <input type="submit" value="Send message" /> | <input type="submit" value="Send message" /> | ||||
| <input type="button" value="Hide" toggle-target="#compose" /> | |||||
| <input type="button" value="Hide" data-toggle-target="#compose" /> | |||||
| </form> | </form> | ||||
| </div> | </div> | ||||
| @@ -111,7 +111,7 @@ div.collage_image { | |||||
| width: 20%; | width: 20%; | ||||
| } | } | ||||
| [toggle-target], [quote-jump] { | |||||
| [data-toggle-target], [quote-jump] { | |||||
| cursor: pointer; | cursor: pointer; | ||||
| } | } | ||||
| @@ -267,7 +267,7 @@ div#AddArtists a { | |||||
| width: 95% | width: 95% | ||||
| } | } | ||||
| td.label { | |||||
| td.label, .valign_top { | |||||
| vertical-align: top; | vertical-align: top; | ||||
| } | } | ||||
| @@ -723,6 +723,10 @@ tr.torrent .bookmark>a:after { | |||||
| max-width: 500px; | max-width: 500px; | ||||
| } | } | ||||
| .display_block { | |||||
| display: block; | |||||
| } | |||||
| .sidebar img { | .sidebar img { | ||||
| max-width: 100%; | max-width: 100%; | ||||
| width: initial; | width: initial; | ||||