YaWK
24.1
Yet another WebKit
|
Submenu widget - embed any menu on any page in any position. More...
Public Member Functions | |
__construct ($db) | |
Load all widget settings from database and fill object. More... | |
displaySubMenu ($db, $menuID) | |
display any subMenu (used by widgets to get any menu in any position) More... | |
drawMenu ($db) | |
drawSidebarEnd () | |
draw sidebar end More... | |
drawSidebarStart () | |
draw sidebar start More... | |
init ($db) | |
Init submenu widget and call a function for demo purpose. 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 | |
string int | $menuID = '' |
bool | $showMenuName = false |
string | $sidebar = 'false' |
string | $subMenuClass |
string | $submenuHeading = '' |
string | $subMenuItemClass |
string | $submenuSubtext = '' |
$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... | |
Submenu widget - embed any menu on any page in any position.
Empty submenu Widget - for development and demo purpose
If you want to embed any menu on any page in any position, this should be the widget of your choice! It can handle every menu that you have created before within YaWK's menu system.
Definition at line 19 of file submenu.php.
YAWK\WIDGETS\SUBMENU\EMBED\submenu::__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 43 of file submenu.php.
References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().
YAWK\WIDGETS\SUBMENU\EMBED\submenu::displaySubMenu | ( | $db, | |
$menuID | |||
) |
display any subMenu (used by widgets to get any menu in any position)
object | $db | database |
int | $menuID | the menuID to get data |
db | $db |
Definition at line 122 of file submenu.php.
References $db, YAWK\WIDGETS\SUBMENU\EMBED\submenu\$menuID, $menuName, $res, YAWK\WIDGETS\SUBMENU\EMBED\submenu\$subMenuClass, YAWK\WIDGETS\SUBMENU\EMBED\submenu\$subMenuItemClass, YAWK\WIDGETS\SUBMENU\EMBED\submenu\drawSidebarEnd(), and YAWK\WIDGETS\SUBMENU\EMBED\submenu\drawSidebarStart().
Referenced by YAWK\WIDGETS\SUBMENU\EMBED\submenu\drawMenu().
YAWK\WIDGETS\SUBMENU\EMBED\submenu::drawMenu | ( | $db | ) |
Definition at line 109 of file submenu.php.
References $db, and YAWK\WIDGETS\SUBMENU\EMBED\submenu\displaySubMenu().
Referenced by YAWK\WIDGETS\SUBMENU\EMBED\submenu\init().
YAWK\WIDGETS\SUBMENU\EMBED\submenu::drawSidebarEnd | ( | ) |
draw sidebar end
If $this->sidebar is set to true, this function will be called after menu entry and closes the wrapping menu sidebar div.
Definition at line 104 of file submenu.php.
Referenced by YAWK\WIDGETS\SUBMENU\EMBED\submenu\displaySubMenu().
YAWK\WIDGETS\SUBMENU\EMBED\submenu::drawSidebarStart | ( | ) |
draw sidebar start
If $this->sidebar is set to true, this function will be called before menu entry and wrap the menu in a sidebar div.
Definition at line 93 of file submenu.php.
Referenced by YAWK\WIDGETS\SUBMENU\EMBED\submenu\displaySubMenu().
YAWK\WIDGETS\SUBMENU\EMBED\submenu::init | ( | $db | ) |
Init submenu widget and call a function for demo purpose.
submenu Widget Init
Definition at line 80 of file submenu.php.
References $db, YAWK\WIDGETS\SUBMENU\EMBED\submenu\drawMenu(), and YAWK\widget\getHeading().
string int YAWK\WIDGETS\SUBMENU\EMBED\submenu::$menuID = '' |
Definition at line 28 of file submenu.php.
Referenced by YAWK\WIDGETS\SUBMENU\EMBED\submenu\displaySubMenu().
bool YAWK\WIDGETS\SUBMENU\EMBED\submenu::$showMenuName = false |
Definition at line 36 of file submenu.php.
string YAWK\WIDGETS\SUBMENU\EMBED\submenu::$sidebar = 'false' |
Definition at line 34 of file submenu.php.
string YAWK\WIDGETS\SUBMENU\EMBED\submenu::$subMenuClass |
Definition at line 30 of file submenu.php.
Referenced by YAWK\WIDGETS\SUBMENU\EMBED\submenu\displaySubMenu().
string YAWK\WIDGETS\SUBMENU\EMBED\submenu::$submenuHeading = '' |
Definition at line 24 of file submenu.php.
string YAWK\WIDGETS\SUBMENU\EMBED\submenu::$subMenuItemClass |
Definition at line 32 of file submenu.php.
Referenced by YAWK\WIDGETS\SUBMENU\EMBED\submenu\displaySubMenu().
string YAWK\WIDGETS\SUBMENU\EMBED\submenu::$submenuSubtext = '' |
Definition at line 26 of file submenu.php.
YAWK\WIDGETS\SUBMENU\EMBED\submenu::$widget = '' |
Definition at line 22 of file submenu.php.