YaWK
24.1
Yet another WebKit
|
Widgets are small, useful tools that you can include everywhere in your website. More...
Public Member Functions | |
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... | |
Static Public Member Functions | |
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... | |
Public Attributes | |
$data | |
$date_publish | |
$date_unpublish | |
$folder | |
$id | |
$marginBottom | |
$marginTop | |
$name | |
$pageID | |
$position | |
$published | |
$sort | |
$widgetTitle | |
$widgetType | |
Widgets are small, useful tools that you can include everywhere in your website.
Widgets are small, useful tools that you can include everywhere on your website.
YaWK comes with a lot of widgets for different purposes. As an example, you can add SocialMedia buttons, Facebook Boxes, Likebuttons or other things like a simple contant and many other small utilities for typical daily needs of nearly every web project. Check out the files in system/widgets to get a clue about how widget's file structure is organized. You miss a widget? Dont worry. It is easy to create your own - or copy and modify an existing one to make it fit your needs. If you want to get deeper into the widget system of YaWK, read the following docs.
Class covers both, backend & frontend functionality. See Methods Summary for Details!
Definition at line 21 of file widget.php.
|
static |
Returns an array with all widget settings data.
object | $db | Database Object |
TODO: IMPLEMENT GET WIDGET SETTINGS ARRRAY for issue #61
Definition at line 127 of file widget.php.
|
static |
Return all widget types as associative array.
object | $db | database |
Definition at line 1211 of file widget.php.
References $db, $res, and $widgetTypes.
|
static |
return current widget path
object | $db | database |
Definition at line 115 of file widget.php.
References $db, and YAWK\sys\getDirPrefix().
|
static |
return the facebook likebox widget
Definition at line 909 of file widget.php.
YAWK\widget::getHeading | ( | $heading, | |
$subtext | |||
) |
Get widget heading and subtext, return headline.
string | $heading | The Heading |
string | $subtext | The Subtext |
Definition at line 669 of file widget.php.
References $heading, and $subtext.
Referenced by YAWK\WIDGETS\BLOG\WIDGET\blogWidget\drawBlogWidget(), YAWK\WIDGETS\GALLERY\IMAGES\gallery\drawImageGallery(), YAWK\WIDGETS\LOGINBOX\LOGIN\loginbox\drawLoginBox(), YAWK\WIDGETS\GOOGLE\MAPS\googleMaps\embed(), YAWK\WIDGETS\INSTAGRAM\POSTING\instagram\embed(), YAWK\WIDGETS\SUBMENU\EMBED\submenu\init(), YAWK\WIDGETS\FACEBOOK\LIKEPAGE\fbLikePage\init(), YAWK\WIDGETS\FACEBOOK\POSTING\fbPosting\init(), YAWK\WIDGETS\FACEBOOK\VIDEO\fbVideo\init(), YAWK\WIDGETS\PINTEREST\FOLLOW\pinterestFollow\init(), YAWK\WIDGETS\PINTEREST\PIN\pinterestPin\init(), YAWK\WIDGETS\PINTEREST\PROFILE\pinterestProfile\init(), YAWK\WIDGETS\PLYR\PLAYER\plyr\init(), YAWK\WIDGETS\PREZI\EMBED\prezi\init(), YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\init(), YAWK\WIDGETS\SPOTIFY\EMBED\spotify\init(), YAWK\WIDGETS\TWITCH\EMBED\twitch\init(), YAWK\WIDGETS\TWITTER\GRID\twitterGrid\init(), YAWK\WIDGETS\TWITTER\TIMELINE\twitterTimeline\init(), YAWK\WIDGETS\TWITTER\TWEET\twitterTweet\init(), YAWK\WIDGETS\TWITTER\BUTTON\twitterTweetButton\init(), and YAWK\WIDGETS\EXAMPLE\DEMO\example\showHeading().
|
static |
return the user login box widget
Definition at line 901 of file widget.php.
YAWK\widget::getWidgetSettingsArray | ( | $db | ) |
Get widget settings and return it as array.
object | $db | database |
Definition at line 69 of file widget.php.
References $_GET, $db, and $res.
Referenced by YAWK\WIDGETS\BLOG\WIDGET\blogWidget\__construct(), YAWK\WIDGETS\BUBBLUS\MINDMAP\bubblus\__construct(), YAWK\WIDGETS\CHATURBATE\STREAM\chaturbate\__construct(), YAWK\WIDGETS\CLOCK\CURRENT\clock\__construct(), YAWK\WIDGETS\CONTENTANIMATOR\ANIMATE\contentAnimator\__construct(), YAWK\WIDGETS\CULTURALBROADCASTING\STREAM\culturalBroadcastingArchive\__construct(), YAWK\WIDGETS\CUSTOM_HTML\CODE\customHtml\__construct(), YAWK\WIDGETS\EMBED_PAGE\PAGE\embedPage\__construct(), YAWK\WIDGETS\EXAMPLE\DEMO\example\__construct(), YAWK\WIDGETS\FACEBOOK\EVENTS\fbEvents\__construct(), YAWK\WIDGETS\FACEBOOK\LIKEBUTTON\fbLikeButton\__construct(), YAWK\WIDGETS\FACEBOOK\LIKEPAGE\fbLikePage\__construct(), YAWK\WIDGETS\FACEBOOK\POSTING\fbPosting\__construct(), YAWK\WIDGETS\FACEBOOK\VIDEO\fbVideo\__construct(), YAWK\WIDGETS\FUCKADBLOCK\BLOCK\fuckadblock\__construct(), YAWK\WIDGETS\GALLERY\IMAGES\gallery\__construct(), YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics\__construct(), YAWK\WIDGETS\GOOGLE\MAPS\googleMaps\__construct(), YAWK\WIDGETS\INSTAGRAM\POSTING\instagram\__construct(), YAWK\WIDGETS\LOGINBOX\LOGIN\loginbox\__construct(), YAWK\WIDGETS\NEWSLETTER\SUBSCRIBE\newsletter\__construct(), YAWK\WIDGETS\PINTEREST\FOLLOW\pinterestFollow\__construct(), YAWK\WIDGETS\PINTEREST\PIN\pinterestPin\__construct(), YAWK\WIDGETS\PINTEREST\PROFILE\pinterestProfile\__construct(), YAWK\WIDGETS\PLYR\PLAYER\plyr\__construct(), YAWK\WIDGETS\PREZI\EMBED\prezi\__construct(), YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\__construct(), YAWK\WIDGETS\SOUNDCLOUD\PLAYER\soundcloud\__construct(), YAWK\WIDGETS\SPOTIFY\EMBED\spotify\__construct(), YAWK\WIDGETS\SUBMENU\EMBED\submenu\__construct(), YAWK\WIDGETS\TWITCH\EMBED\twitch\__construct(), YAWK\WIDGETS\TWITTER\GRID\twitterGrid\__construct(), YAWK\WIDGETS\TWITTER\TIMELINE\twitterTimeline\__construct(), YAWK\WIDGETS\TWITTER\TWEET\twitterTweet\__construct(), YAWK\WIDGETS\TWITTER\BUTTON\twitterTweetButton\__construct(), YAWK\WIDGETS\YOUTUBE\VIDEO\youtube\__construct(), and YAWK\WIDGETS\BOOKING\FORM\bookingWidget\__construct().
|
static |
Returns an array of all widgets that are linked with given page->id.
object | $db | database |
object | $page | the current page object |
Definition at line 1182 of file widget.php.
References $db, $page, and $result.
Referenced by YAWK\backend\drawWidgetsOnPageBox().
YAWK\widget::printObject | ( | ) |
Print all object data.
(for development and testing purpose)
Reimplemented in YAWK\WIDGETS\INSTAGRAM\POSTING\instagram, YAWK\WIDGETS\GOOGLE\MAPS\googleMaps, YAWK\WIDGETS\GOOGLE\ANALYTICS\googleAnalytics, YAWK\WIDGETS\GALLERY\IMAGES\gallery, YAWK\WIDGETS\EXAMPLE\DEMO\example, and YAWK\WIDGETS\BLOG\WIDGET\blogWidget.
Definition at line 57 of file widget.php.
YAWK\widget::$data |
array | widget settings data array placeholder |
Definition at line 50 of file widget.php.
Referenced by YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\drawSocialBar(), and YAWK\WIDGETS\SOCIALBAR\DISPLAY\socialBar\setSocialBarElements().
YAWK\widget::$date_publish |
string | date when widget publishing starts |
Definition at line 42 of file widget.php.
YAWK\widget::$date_unpublish |
string | date when widget publishing ends |
Definition at line 44 of file widget.php.
YAWK\widget::$folder |
string | foldername of this widget |
Definition at line 48 of file widget.php.
YAWK\widget::$id |
int | widget ID |
Definition at line 26 of file widget.php.
YAWK\widget::$marginBottom |
int | margin from bottom in px |
Definition at line 38 of file widget.php.
YAWK\widget::$marginTop |
int | margin from top in px |
Definition at line 36 of file widget.php.
YAWK\widget::$name |
string | widget name |
Definition at line 28 of file widget.php.
YAWK\widget::$pageID |
int | ID of the page where this widget should appear |
Definition at line 40 of file widget.php.
YAWK\widget::$position |
string | template position to appear |
Definition at line 32 of file widget.php.
YAWK\widget::$published |
int | 0|1 published or not |
Definition at line 24 of file widget.php.
YAWK\widget::$sort |
int | order sortation number |
Definition at line 30 of file widget.php.
YAWK\widget::$widgetTitle |
string | title to identify the widget |
Definition at line 46 of file widget.php.
YAWK\widget::$widgetType |
int | widget type number |
Definition at line 34 of file widget.php.