YaWK
24.1
Yet another WebKit
|
Social Bar display icons with links to your social network accounts. More...
Public Member Functions | |
__construct ($db) | |
Load all widget settings from database and fill object. More... | |
drawSocialBar () | |
Draw social bar. More... | |
filterUrl ($url) | |
Filter and sanitize any socialBar URL. More... | |
init () | |
Init example widget and call a function for demo purpose. More... | |
setSocialBarElements () | |
Set an array with all social button elements. More... | |
![]() | |
getHeading ($heading, $subtext) | |
Get widget heading and subtext, return headline. More... | |
getWidgetSettingsArray ($db) | |
Get widget settings and return it as array. More... | |
printObject () | |
Print all object data. More... | |
Public Attributes | |
$socialBarAlign = 'horizontal' | |
$socialBarClass = '' | |
$socialBarElements = '' | |
$socialBarFacebookIcon = '' | |
$socialBarFacebookUrl = '' | |
$socialBarGooglePlusIcon = '' | |
$socialBarGooglePlusUrl = '' | |
$socialBarHeading = '' | |
$socialBarInstagramIcon = '' | |
$socialBarInstagramUrl = '' | |
$socialBarLinkColor = '' | |
$socialBarLinkedInIcon = '' | |
$socialBarLinkedInUrl = '' | |
$socialBarLinkTarget = '' | |
$socialBarLinkTitle = '' | |
$socialBarMarkup = '' | |
$socialBarPinterestIcon = '' | |
$socialBarPinterestUrl = '' | |
$socialBarSize = 'H2' | |
$socialBarSubtext = '' | |
$socialBarTumblrIcon = '' | |
$socialBarTumblrUrl = '' | |
$socialBarTwitterIcon = '' | |
$socialBarTwitterUrl = '' | |
$socialBarXingIcon = '' | |
$socialBarXingUrl = '' | |
$socialBarYouTubeIcon = '' | |
$socialBarYouTubeUrl = '' | |
$widget = '' | |
![]() | |
$data | |
$date_publish | |
$date_unpublish | |
$folder | |
$id | |
$marginBottom | |
$marginTop | |
$name | |
$pageID | |
$position | |
$published | |
$sort | |
$widgetTitle | |
$widgetType | |
Additional Inherited Members | |
![]() | |
static | getAllSettingsIntoArray ($db, $widgetID) |
Returns an array with all widget settings data. More... | |
static | getAllWidgetTypes ($db) |
Return all widget types as associative array. More... | |
static | getCurrentWidgetPath ($db) |
return current widget path More... | |
static | getFacebookLikeBox () |
return the facebook likebox widget More... | |
static | getLoginBox () |
return the user login box widget More... | |
static | loadWidgetsOfPage ($db, $page) |
Returns an array of all widgets that are linked with given page->id. More... | |
Social Bar display icons with links to your social network accounts.
Social Bar - display icons with links to your social network accounts
Embed Links to Twitter, Facebook, Instagram, Pinterest, YouTube and more. You can set any font awesome icon (or any other icon set that you have loaded in the assets section before). If a link is set, the corresponding icon will be drawn.
Definition at line 17 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::__construct | ( | $db | ) |
Load all widget settings from database and fill object.
object | $db | Database Object |
Load all widget settings on object init.
Definition at line 83 of file socialBar.php.
References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::drawSocialBar | ( | ) |
Draw social bar.
Set settings and draw social bar
Definition at line 172 of file socialBar.php.
References YAWK\widget\$data, and YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\filterUrl().
Referenced by YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\init().
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::filterUrl | ( | $url | ) |
Filter and sanitize any socialBar URL.
filter, sanitize and strip tags from URLs
Definition at line 152 of file socialBar.php.
References $url.
Referenced by YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\drawSocialBar().
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::init | ( | ) |
Init example widget and call a function for demo purpose.
Example Widget Init
Definition at line 97 of file socialBar.php.
References YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\drawSocialBar(), YAWK\widget\getHeading(), and YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\setSocialBarElements().
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::setSocialBarElements | ( | ) |
Set an array with all social button elements.
Helper function that set an array with all social elements. Need to be called before drawSocialBar();
Definition at line 109 of file socialBar.php.
References YAWK\widget\$data, and YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\$socialBarElements.
Referenced by YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\init().
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarAlign = 'horizontal' |
string | Social Bar Alignment (horizontal or vertical |
Definition at line 74 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarClass = '' |
string | Social Bar CSS Class |
Definition at line 76 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarElements = '' |
array | Social Bar Elements |
Definition at line 70 of file socialBar.php.
Referenced by YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\setSocialBarElements().
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarFacebookIcon = '' |
string | Facebook Icon |
Definition at line 44 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarFacebookUrl = '' |
string | Facebook URL |
Definition at line 26 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarGooglePlusIcon = '' |
string | Google Plus Icon |
Definition at line 60 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarGooglePlusUrl = '' |
string | Google Plus URL |
Definition at line 42 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarHeading = '' |
string | Title that will be shown above widget |
Definition at line 22 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarInstagramIcon = '' |
string | Instagram Icon |
Definition at line 48 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarInstagramUrl = '' |
string | Instagram URL |
Definition at line 30 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarLinkColor = '' |
string | Social Bar Link Color |
Definition at line 68 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarLinkedInIcon = '' |
string | LinkedIn Icon |
Definition at line 56 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarLinkedInUrl = '' |
string | LinkedIn URL |
Definition at line 38 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarLinkTarget = '' |
string | Social Bar Link Target |
Definition at line 64 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarLinkTitle = '' |
string | Social Bar Link Target |
Definition at line 66 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarMarkup = '' |
string | Social Bar Html Markup |
Definition at line 62 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarPinterestIcon = '' |
string | Pinterest Icon |
Definition at line 50 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarPinterestUrl = '' |
string | Pinterest URL |
Definition at line 32 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarSize = 'H2' |
string | Social Bar Size |
Definition at line 72 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarSubtext = '' |
string | Subtext will be displayed beside title |
Definition at line 24 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarTumblrIcon = '' |
string | Tumblr Icon |
Definition at line 54 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarTumblrUrl = '' |
string | Tumblr URL |
Definition at line 36 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarTwitterIcon = '' |
string | Twitter Icon |
Definition at line 52 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarTwitterUrl = '' |
string | Twitter URL |
Definition at line 34 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarXingIcon = '' |
string | Xing Icon |
Definition at line 58 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarXingUrl = '' |
string | Xing URL |
Definition at line 40 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarYouTubeIcon = '' |
string | YouTube Icon |
Definition at line 46 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$socialBarYouTubeUrl = '' |
string | YouTube URL |
Definition at line 28 of file socialBar.php.
YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar::$widget = '' |
object | global widget object data |
Definition at line 20 of file socialBar.php.