Skip to content

Commit

Permalink
Fixed bug with php 7.x and added french language support
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshstarlite committed Jun 18, 2017
1 parent 6982559 commit b785da0
Show file tree
Hide file tree
Showing 21 changed files with 14 additions and 58 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ StarLite Notification Bar

StarLite Notification Bar is joomla plugin that can be used to direct your site’s visitors and promote your website’s most important content like notification, promo, event or anything related on the header of a website. Setup is very easy, You can set text-color, background-color of the bar, You can show HTML content in the bar.

Master and J3.x branches support ONLY Joomla 3.x versions.
Now, the plugin only supports Joomla 3.x versions.

* Documentation: http://www.starliteweb.com/extensions/starlite-notification-bar/documentation/
* Demo: http://www.starliteweb.com/demo/demos/starlite-notification-bar-demo.html
Expand All @@ -25,5 +25,5 @@ Contribution
Copyright and Licence
=====================

* Copyright (c) 2012-2016 starliteweb.com all rights reserved.
* Copyright (c) 2012-2017 starliteweb.com all rights reserved.
* Licence: http://www.gnu.org/licenses/gpl-2.0.html
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions slnotificationbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class plgSystemSlNotificationBar extends JPlugin
{
var $pluginLivePath;

function plgSystemSlNotificationBar( $subject, $config)
function __construct( $subject, $config)
{
parent::__construct($subject, $config);

$this->pluginLivePath = JURI::root(true) . "/plugins/system/slnotificationbar/slnotificationbar";
$this->pluginLivePath = JURI::root(true) . "/plugins/system/slnotificationbar";

}

Expand All @@ -41,7 +41,7 @@ function onAfterDispatch(){

$doc = JFactory::getDocument();

$doc->addStyleSheet($this->pluginLivePath . "/css/bar.css");
$doc->addStyleSheet($this->pluginLivePath . "/assets/css/bar.css");

$display_position = $this->params->get('display_position', 'top');

Expand All @@ -53,7 +53,7 @@ function onAfterDispatch(){
.SLRibbon {
background:'.$this->params->get('backgroundcolor', '#DB5903').' ;
}.SLRibbon:hover {
background:'.$this->params->get('backgroundcolor', '#DB5903'). ' url('.$this->pluginLivePath.'/img/shine.png) ;
background:'.$this->params->get('backgroundcolor', '#DB5903'). ' url('.$this->pluginLivePath.'/assets/img/shine.png) ;
}';

if($display_position=='top'){
Expand Down Expand Up @@ -96,11 +96,11 @@ function onAfterDispatch(){
$replacement .= '<span class="SLhelloinner">';
$replacement .= '<p class="SLtext">'.$this->params->get('notificationmessage').'</p>';
$replacement .= '<p class="SLTrigger SLdownarrow">';
$replacement .= '<img src="' . $this->pluginLivePath . '/img/arrow-up.png" class="SLarrow" alt="Arrow Up"/>';
$replacement .= '<img src="' . $this->pluginLivePath . '/assets/img/arrow-up.png" class="SLarrow" alt="Arrow Up"/>';
$replacement .= '</p>';
$replacement .= '</span>';
$replacement .= '</div>';
$replacement .= '<span class="SLRibbon SLTrigger"><img src="' . $this->pluginLivePath . '/img/arrow-down.png" class="SLarrow" alt="Arrow Down"></span>';
$replacement .= '<span class="SLRibbon SLTrigger"><img src="' . $this->pluginLivePath . '/assets/img/arrow-down.png" class="SLarrow" alt="Arrow Down"></span>';

//replacement of white spaces in HTML
//bug of previous version
Expand Down
15 changes: 6 additions & 9 deletions slnotificationbar.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="1.6" type="plugin" group="system" method="upgrade">
<extension version="3.1" type="plugin" group="system" method="upgrade">
<name>System - StarLite Notification Bar</name>
<author>StarLite</author>
<creationDate>November 05, 2012</creationDate>
<copyright>Copyright (C) 2012 - 2017 www.starliteweb.com All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html</license>
<authorEmail>[email protected]</authorEmail>
<version>1.4</version>
<version>1.5</version>
<authorUrl>www.starliteweb.com</authorUrl>
<description>PLG_SLNB_XML_DESC</description>
<files>
<filename plugin="slnotificationbar">slnotificationbar.php</filename>
<filename>index.html</filename>
<folder>slnotificationbar</folder>
<folder>assets</folder>
<folder>language</folder>
</files>
<languages folder="language">
<language tag="en-GB">en-GB.plg_system_slnotificationbar.ini</language>
<language tag="en-GB">en-GB.plg_system_slnotificationbar.sys.ini</language>
</languages>
<updateservers>
<!-- Note: No spaces or linebreaks allowed between the server tags -->
<server type="extension" name="StarLite Notification Bar's updates">http://starliteweb.com/update.xml</server>
<server type="extension" name="StarLite Notification Bar's updates">http://www.starliteweb.com/update.xml</server>
</updateservers>
<config>
<fields name="params" addfieldpath="/plugins/system/slnotificationbar/slnotificationbar/elements/">
<fields name="params">
<fieldset name="basic">
<field name="display_position" type="list" default="top" label="PLG_SLNB_DISPLAY_LABEL"
description="PLG_SLNB_DISPLAY_DESC">
Expand Down
Binary file added slnotificationbar.zip
Binary file not shown.
37 changes: 0 additions & 37 deletions slnotificationbar/elements/header.php

This file was deleted.

4 changes: 0 additions & 4 deletions slnotificationbar/js/index.html

This file was deleted.

0 comments on commit b785da0

Please sign in to comment.