Skip to content

Commit 61cc576

Browse files
Nicolas MeyertönsNicolas Meyertöns
authored andcommitted
Pastebin goes responsive
I removed some floating, changed some style-settings an placed the "last entries" box to the bottom
1 parent 54337bf commit 61cc576

315 files changed

Lines changed: 86639 additions & 30 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

event/header_events.php

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<?php
2+
/**
3+
*
4+
* @package phpBB.de pastebin
5+
* @copyright (c) 2015 phpBB.de, gn#36
6+
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
7+
*
8+
*/
9+
10+
namespace phpbbde\pastebin\event;
11+
12+
/**
13+
* @ignore
14+
*/
15+
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
16+
17+
/**
18+
* Event listener
19+
*/
20+
class header_events implements EventSubscriberInterface
21+
{
22+
static public function getSubscribedEvents()
23+
{
24+
return array(
25+
'core.page_header_after' => 'page_header_after',
26+
);
27+
}
28+
29+
/**
30+
* Constructor
31+
*
32+
* @param \phpbb\auth\auth $auth Auth object
33+
* @param \phpbb\template\template $template Template object
34+
* @param \phpbb\controller\helper $helper Helper
35+
* @param string $phpbb_root_path phpBB root path (community/)
36+
* @param string $php_ext php file extension (php)
37+
* @param string $root_path php file extension (...phpbb.de/)
38+
*/
39+
public function __construct(\phpbb\auth\auth $auth, \phpbb\template\template $template, \phpbb\controller\helper $helper, \phpbb\user $user, $phpbb_root_path, $php_ext)
40+
{
41+
$this->auth = $auth;
42+
$this->template = $template;
43+
$this->phpbb_root_path = $phpbb_root_path;
44+
$this->helper = $helper;
45+
$this->php_ext = $php_ext;
46+
$this->user = $user;
47+
}
48+
49+
public function page_header_after($event)
50+
{
51+
$this->user->add_lang_ext('phpbbde/pastebin', 'global');
52+
53+
$this->template->assign_vars(array(
54+
// Main Menu
55+
'U_PASTEBIN' => $this->helper->route('phpbbde_pastebin_main_controller'),
56+
));
57+
}
58+
}

styles/prosilver/template/pastebin_body.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,6 @@ <h3>{L_MODERATE_SNIPPET}</h3>
5353
<span class="corners-bottom"><span></span></span>
5454
</div>
5555
<!-- ENDIF -->
56-
57-
<!-- IF S_AUTH_VIEW -->
58-
<div class="mini-panel navbar">
59-
<span class="corners-top"><span></span></span>
60-
61-
<h3>{L_LATEST_SNIPPETS}</h3>
62-
63-
<!-- IF .latest_snippets -->
64-
<ul>
65-
<!-- BEGIN latest_snippets -->
66-
<li><a href="{latest_snippets.URL}" title="{latest_snippets.TITLE}<!-- IF latest_snippets.DESC -->: {latest_snippets.DESC}<!-- ENDIF -->">{latest_snippets.TITLE_SHORT}</a> ({latest_snippets.AUTHOR_FULL})</li>
67-
<!-- END latest_snippets -->
68-
</ul>
69-
<!-- ELSE -->
70-
<ul>
71-
<li>{L_NO_SNIPPETS}</li>
72-
</ul>
73-
<!-- ENDIF -->
74-
75-
<span class="corners-bottom"><span></span></span>
76-
</div>
77-
<!-- ENDIF -->
7856
</div>
7957

8058

@@ -88,5 +66,27 @@ <h3>{L_LATEST_SNIPPETS}</h3>
8866
</div>
8967

9068

69+
<!-- IF S_AUTH_VIEW -->
70+
<div class="mini-panel navbar">
71+
<span class="corners-top"><span></span></span>
72+
73+
<h3>{L_LATEST_SNIPPETS}</h3>
74+
75+
<!-- IF .latest_snippets -->
76+
<ul>
77+
<!-- BEGIN latest_snippets -->
78+
<li><a href="{latest_snippets.URL}" title="{latest_snippets.TITLE}<!-- IF latest_snippets.DESC -->: {latest_snippets.DESC}<!-- ENDIF -->">{latest_snippets.TITLE_SHORT}</a> ({latest_snippets.AUTHOR_FULL})</li>
79+
<!-- END latest_snippets -->
80+
</ul>
81+
<!-- ELSE -->
82+
<ul>
83+
<li>{L_NO_SNIPPETS}</li>
84+
</ul>
85+
<!-- ENDIF -->
86+
87+
<span class="corners-bottom"><span></span></span>
88+
</div>
89+
<!-- ENDIF -->
90+
9191

9292
<!-- INCLUDE overall_footer.html -->

styles/prosilver/template/pastebin_post.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<p>
22
{L_PASTEBIN_EXPLAIN}
33
</p>
4-
<br />
54

65
<!-- IF S_AUTH_POST -->
76
<p>
87
{L_PASTEBIN_POST_EXPLAIN}
98
</p>
10-
<br />
119

1210
<form id="pastebinform" method="post" action="{S_FORM_ACTION}"{S_FORM_ENCTYPE}>
1311
<div class="panel" id="postingbox">

styles/prosilver/theme/pastebin.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,27 @@
2525
.mini-panel {
2626
display: block;
2727
padding: 1em ;
28-
margin: 1em;
29-
30-
28+
margin-top: 1em;
29+
margin-bottom: 1em;
3130
}
31+
3232
#content {
33-
width: 70%;
33+
width: 100%;
3434
}
35+
3536
#extras {
36-
float: right;
37-
width: 30%;
37+
width: 100%;
3838
}
3939

4040
.mini-panel h3 {
4141
margin-top: 0px;
4242
}
43+
4344
.mini-panel ul {
4445
padding-left: 1em;
46+
}
47+
48+
#copy_paste.inputbox{
49+
width: 99%;
50+
max-width: 99%;
4551
}

vendor/autoload.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
// autoload.php @generated by Composer
4+
5+
require_once __DIR__ . '/composer' . '/autoload_real.php';
6+
7+
return ComposerAutoloaderInitb4accdfd3ff0839b95f978dc0d8f1970::getLoader();

0 commit comments

Comments
 (0)