Jump to content

musicbox for sidebar


sweethoney

Recommended Posts

Posted

this is a better sidebar for your forums this will add a radio to your sidebar or any other custom codes like iheart radio just create an account and make a station and as you can see works perfect

sidebar.png.282d259e4f8f45def8d84b1c92ed1b71.png

just replace all the codes  in the sidebar temp

\IPS\Output::i()->sidebar['enabled'] && ( ( isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== '' ) || ( isset( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) && count( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) ) || ( \IPS\Dispatcher::i()->application instanceof \IPS\Application AND \IPS\Dispatcher::i()->application->canManageWidgets() ) )}}
    <div id='ipsLayout_sidebar' class='ipsLayout_sidebar{$position} {{if !( isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== '' ) && ( !isset( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) || !count( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) ) && \IPS\Dispatcher::i()->application->canManageWidgets()}}ipsLayout_sidebarUnused{{endif}}' data-controller='core.front.widgets.sidebar'>
      
    <div class="ipsWidget ipsWidget_vertical ipsBox">
    <h3 class="ipsType_reset ipsWidget_title">Musik Box</h3>
    <div class="ipsWidget_inner">
      <script>(function(d, s){if(!window.rel){s = d.createElement("script");s.type = "text/javascript";s.async = true;s.id = "radio-de-embedded";s.src = "//www.radio.de/inc/microsite/js/full.js";d.getElementsByTagName("head")[0].appendChild(s);window.rel = true;}}(document));</script><div class="ng-app-embedded"><div ui-view class="microsite embedded-radio-player" data-playerwidth="298px" data-playertype="web_embedded" data-playstation="techno4ever" data-autoplay="false" data-apikey="df04ff67dd3339a6fc19c9b8be164d5b5245ae93"></div></div><noscript><a href="//techno4ever.radio.de" target="_blank">TECHNO4EVER.FM auf radio.de</a></noscript>
    </div>
    </div>
    <br>
      
      {{if isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== ''}}
            <aside id="elContextualTools" class='ipsClearfix' {{if isset( \IPS\Output::i()->sidebar['sticky'] )}}data-ipsSticky{{endif}}>
                {expression="\IPS\Output::i()->sidebar['contextual']" raw="true"}
            </aside>
        {{endif}}
        {{if isset(\IPS\Output::i()->sidebar['widgets']['sidebar']) and count( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) and ( \IPS\core\Advertisement::loadByLocation( 'ad_sidebar' ) ) }}
            {advertisement="ad_sidebar"}
            <br><br>
        {{endif}}
        {template="widgetContainer" group="global" app="core" params="'sidebar', 'vertical'"}
    </div>
{{endif}}

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...