X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/popup-builder/com/classes
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
popup-builder
/
com
/
classes
/
ðŸ“
..
📄
Actions.php
(63.7 KB)
📄
Ajax.php
(41.64 KB)
📄
ConditionBuilder.php
(5.5 KB)
📄
ConditionCreator.php
(23.13 KB)
📄
ConvertToNewVersion.php
(45.57 KB)
📄
Feedback.php
(6.29 KB)
📄
Filters.php
(30.11 KB)
📄
Installer.php
(7.35 KB)
📄
Javascript.php
(3.32 KB)
📄
MediaButton.php
(3.34 KB)
📄
Notification.php
(2 KB)
📄
NotificationCenter.php
(9.1 KB)
📄
PopupChecker.php
(16.54 KB)
📄
PopupGroupFilter.php
(3.72 KB)
📄
PopupInstaller.php
(52 B)
📄
PopupLoader.php
(5.02 KB)
📄
PopupType.php
(578 B)
📄
RegisterPostType.php
(12.88 KB)
📄
SGPBRequirementsChecker.php
(527 B)
📄
ScriptsLoader.php
(11.99 KB)
📄
Style.php
(2.86 KB)
📄
Updates.php
(6.54 KB)
ðŸ“
_detection
ðŸ“
components
ðŸ“
dataTable
ðŸ“
extension
ðŸ“
popups
Editing: Notification.php
<?php namespace sgpb; class Notification { public $id; public $type;// notification, warning etc. public $priority; public $message; public function setId($id) { $this->id = $id; } public function getId() { return $this->id; } public function setType($type) { $this->type = $type; } public function getType() { return $this->type; } public function setPriority($priority) { $this->priority = $priority; } public function getPriority() { return $this->priority; } public function setMessage($message) { $this->message = $message; } public function getMessage() { return $this->message; } public function render() { $id = $this->getId(); $type = $this->getType(); $color = ''; switch ($type) { case 1: $color = '#01B9FF !important'; break; case 2: $color = '#28a745 !important'; break; case 3: $color = '#dc3545 !important'; break; } $style = 'style="border-color: '.$color.';"'; $priority = $this->getPriority(); $message = $this->getMessage(); $btnHtml = $this->getCloseBtnById($id); $content = '<div class="sgpb-single-notification-wrapper"> <div class="sgpb-single-notification" '.$style.'> <span class="dashicons dashicons-no-alt sgpb-hide-notification-at-all" data-id="'.$id.'"></span> '.$message.' </div> <div class="sgpb-single-notification-close-btn"> '.$btnHtml.' </div> </div>'; return $content; } public function getCloseBtnById($id) { $dismissedNotification = SGPBNotificationCenter::getAllDismissedNotifications(); if (isset($dismissedNotification[$id])) { return '<button data-id="'.$id.'" class="button dismiss sgpb-activate-notification-js"><span class="dashicons dashicons-hidden"></span></button>'; } return '<button data-id="'.$id.'" class="button dismiss sgpb-dismiss-notification-js"><span class="dashicons dashicons-visibility"></span></button>'; } }
Upload File
Create Folder