Cześć. Zwracam się do was o pomoc i z prośbą – czy ktoś mógłby mi pomóc w utworzeniu kodu do panelu bocznego w stylu: najnowsze posty, najaktywniejsi użytkownicy itd. Korzystam ze stylu Mobbern.
Będę wdzięczny za pomoc.
1 | <pre class="inline:true class:prettyprint prettyprinted decode:1 " ><span>&lt;!-- Sidebar</span><br /><span> ================================================== --&gt;</span><br /><span>&lt;aside</span> <span>id</span><span>=</span><span>"right-column"</span> <span>class</span><span>=</span><span>"sidebar"</span><span>&gt;</span><br /><br /><span> </span><span>&lt;!-- Widgets: --&gt;</span><br /><br /><span> </span><span>&lt;!-- IF MBRN_W_AD --&gt;</span><br /><span> </span><span>&lt;!-- Sidebar Block: Special/Ad Widget --&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"widget-ad sidebar-block panel panel-success"</span><span>&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"panel-heading"</span><span>&gt;</span><br /><span> </span><span>&lt;h4&gt;</span><span>{MBRN_W_AD_TITLE}</span><span>&lt;/h4&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"panel-body no-padding"</span><span>&gt;</span><br /><span> </span><span>&lt;a</span> <span>href</span><span>=</span><span>"{MBRN_W_AD_URL}"</span> <span>title</span><span>=</span><span>"{MBRN_W_AD_TITLE}"</span><span>&gt;</span><br /><span> </span><span>&lt;img</span> <span>class</span><span>=</span><span>"align-h-center"</span> <span>src</span><span>=</span><span>"{MBRN_W_AD_IMG}"</span> <span>alt</span><span>=</span><span>"{MBRN_W_AD_TITLE}"</span> <span>/&gt;</span><br /><span> </span><span>&lt;/a&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><span>&lt;!-- /.sidebar-block --&gt;</span><br /><span> </span><br /><span> </span><span>&lt;!-- ENDIF --&gt;</span><br /><br /><span> </span><span>&lt;!-- IF MBRN_W_NOTE --&gt;</span><br /><span> </span><span>&lt;!-- Sidebar Block: Notification Widget --&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"widget-note sidebar-block panel panel-secondary"</span><span>&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"panel-heading"</span><span>&gt;</span><br /><span> </span><span>&lt;h4&gt;&lt;a</span> <span>href</span><span>=</span><span>"{MBRN_W_NOTE_URL}"</span> <span>title</span><span>=</span><span>"{MBRN_W_NOTE_MSG}"</span><span>&gt;&lt;i</span> <span>class</span><span>=</span><span>"icon fa fa-info-circle"</span><span>&gt;&lt;/i&gt;</span><span>{MBRN_W_NOTE_MSG}</span><span>&lt;/a&gt;&lt;/h4&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><span>&lt;!-- /.sidebar-block --&gt;</span><br /><span> </span><span>&lt;!-- ENDIF --&gt;</span><br /><br /><span> </span><span>&lt;!-- IF MBRN_W_COL --&gt;</span><br /><span> </span><span>&lt;!-- Sidebar Block: Collapsible Widget --&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"widget-collapsible sidebar-block panel panel-default"</span><span>&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"panel-heading"</span><span>&gt;</span><br /><span> </span><span>&lt;h4&gt;</span><br /><span> </span><span>&lt;i</span> <span>class</span><span>=</span><span>"collapse-button icon fa fa-chevron-circle-up float-right"</span> <span>data-toggle</span><span>=</span><span>"collapse"</span> <span>data-target</span><span>=</span><span>"#ColWidget"</span> <span>title</span><span>=</span><span>"Toggle Panel"</span><span>&gt;&lt;/i&gt;</span><span>{MBRN_W_COL_TITLE}</span><span>&lt;/h4&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;div</span> <span>id</span><span>=</span><span>"ColWidget"</span> <span>class</span><span>=</span><span>"panel-body collapse in no-padding"</span><span>&gt;</span> <br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"panel-body"</span><span>&gt;</span><br /><span> {MBRN_W_COL_TXT}</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><span>&lt;!-- /.sidebar-block --&gt;</span><br /><span> </span><span>&lt;!-- ENDIF --&gt;</span><br /><br /><span> </span><span>&lt;!-- IF MBRN_W_TABS --&gt;</span><br /><span> </span><span>&lt;!-- Sidebar Block: Tabs Widget --&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"widget-tabs sidebar-block panel tabs-panel"</span><span>&gt;</span><br /><span> </span><span>&lt;!-- Nav tabs --&gt;</span><br /><span> </span><span>&lt;ul</span> <span>class</span><span>=</span><span>"nav nav-tabs"</span> <span>role</span><span>=</span><span>"tablist"</span><span>&gt;</span><br /><span> </span><span>&lt;li</span> <span>class</span><span>=</span><span>"active"</span><span>&gt;&lt;a</span> <span>href</span><span>=</span><span>"#tab-1"</span> <span>role</span><span>=</span><span>"tab"</span> <span>data-toggle</span><span>=</span><span>"tab"</span><span>&gt;&lt;i</span> <span>class</span><span>=</span><span>"fa fa-home"</span><span>&gt;&lt;/i&gt;</span><span> Home</span><span>&lt;/a&gt;&lt;/li&gt;</span><br /><span> </span><span>&lt;li&gt;&lt;a</span> <span>href</span><span>=</span><span>"#tab-2"</span> <span>role</span><span>=</span><span>"tab"</span> <span>data-toggle</span><span>=</span><span>"tab"</span><span>&gt;&lt;i</span> <span>class</span><span>=</span><span>"fa fa-user"</span><span>&gt;&lt;/i&gt;</span><span> Profile</span><span>&lt;/a&gt;&lt;/li&gt;</span><br /><span> </span><span>&lt;/ul&gt;</span><br /><br /><span> </span><span>&lt;!-- Tab panes --&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"tab-content"</span><span>&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"tab-pane fade in active"</span> <span>id</span><span>=</span><span>"tab-1"</span><span>&gt;</span><br /><span> </span><span>&lt;strong&gt;</span><span>Example of tabbed content</span><span>&lt;/strong&gt;</span><br /><span> </span><span>&lt;p&gt;</span><span>Click tabs to swap between content that is broken into logical sections.</span><span>&lt;br</span> <span>/&gt;</span><br /><span> </span><span>&lt;a</span> <span>href</span><span>=</span><span>"#"</span><span>&gt;</span><span>Link example</span><span>&lt;/a&gt;</span><br /><span> </span><span>&lt;/p&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"tab-pane fade"</span> <span>id</span><span>=</span><span>"tab-2"</span><span>&gt;</span><br /><span> </span><span>&lt;strong&gt;</span><span>Secondary tab</span><span>&lt;/strong&gt;</span><br /><span> </span><span>&lt;p&gt;</span><span>Bespoke american apparel, future art party Williamsburg kitsch rights polaroid.</span><span>&lt;br</span> <span>/&gt;&lt;br</span> <span>/&gt;</span><span>Hashtag synth gentrify, blog mustache hoodie church-key try hard fanny pack.</span><br /><span> </span><span>&lt;/p&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><span>&lt;!-- /.sidebar-block --&gt;</span><br /><span> </span><span>&lt;!-- ENDIF --&gt;</span><br /><br /><span> </span><span>&lt;!-- IF MBRN_W_TXT --&gt;</span><br /><span> </span><span>&lt;!-- Sidebar Block: Standard Text Widget --&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"widget-text sidebar-block panel panel-default"</span><span>&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"panel-heading"</span><span>&gt;</span><br /><span> </span><span>&lt;h4&gt;</span><span>{MBRN_W_TXT_TITLE}</span><span>&lt;/h4&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"panel-body"</span><span>&gt;</span><br /><span> </span><span>&lt;pre&gt;</span><span>{MBRN_W_TXT_TXT}</span><span>&lt;/pre&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><span>&lt;!-- /.sidebar-block --&gt;</span><br /><span> </span><span>&lt;!-- ENDIF --&gt;</span><br /><br /><br /><span> </span><span>&lt;!-- SITE WIDGETS: --&gt;</span><br /><span> </span><span>&lt;!-- IF not MBRN_CP --&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"panel panel-warning"</span><span>&gt;</span><br /><span> </span><span>&lt;div</span> <span>class</span><span>=</span><span>"panel-body"</span><span>&gt;</span><br /><span> Please </span><span>&lt;a</span> <span>href</span><span>=</span><span>"http://www.masivotech.com/docs/phpbb3/mobbern/"</span><span>&gt;</span><span>Consult the Documentation</span><span>&lt;/a&gt;</span> <span>&lt;span</span> <span>class</span><span>=</span><span>"hidden"</span><span>&gt;</span><span> or install the Theme Control Panel</span><span>&lt;/span&gt;</span><span> to add widgets to the sidebar.</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;/div&gt;</span><br /><span> </span><span>&lt;!-- ENDIF --&gt;</span><br /><span> </span><span>&lt;!-- /Widgets --&gt;</span><br /><br /><span>&lt;/aside&gt;</span><span>&lt;!-- /.sidebar --&gt;</span> |
1 odpowiedzi
To tak: ten panel ma być widoczny na forum, czy portalu? Poza tym, znalazłem coś takiego
https://www.phpbb.com/customise/db/extension/recent_topics_2/support/topic/142541?p=490196#p490196