YaWK  24.1
Yet another WebKit
YAWK\WIDGETS\PREZI\EMBED\prezi Class Reference

Prezi Widget - embed any prezi presentation on your page. More...

+ Inheritance diagram for YAWK\WIDGETS\PREZI\EMBED\prezi:

Public Member Functions

 __construct ($db)
 Load all widget settings from database and fill object. More...
 
 embedPrezi ()
 embed prezi More...
 
 init ()
 Init and embed prezi widget. More...
 
 markup ()
 
- Public Member Functions inherited from YAWK\widget
 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

 $preziHeading = ''
 
 $preziHtml = ''
 
 $preziSubtext = ''
 
 $widget = ''
 
- Public Attributes inherited from YAWK\widget
 $data
 
 $date_publish
 
 $date_unpublish
 
 $folder
 
 $id
 
 $marginBottom
 
 $marginTop
 
 $name
 
 $pageID
 
 $position
 
 $published
 
 $sort
 
 $widgetTitle
 
 $widgetType
 

Additional Inherited Members

- Static Public Member Functions inherited from YAWK\widget
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...
 

Detailed Description

Prezi Widget - embed any prezi presentation on your page.

Prezi Widget - embed a prezi presentation on your page.

Prezi is a modern presentation tool. With this widget, you can embed any prezi on your page.

Author
Daniel Retzl danie.nosp@m.lret.nosp@m.zl@gm.nosp@m.ail..nosp@m.com
Version
1.0.0

Definition at line 15 of file prezi.php.

Constructor & Destructor Documentation

◆ __construct()

YAWK\WIDGETS\PREZI\EMBED\prezi::__construct (   $db)

Load all widget settings from database and fill object.

Parameters
object$dbDatabase Object

Load all widget settings on object init.

Definition at line 31 of file prezi.php.

33  {
34  // load this widget settings from db
35  $this->widget = new \YAWK\widget();
36  $settings = $this->widget->getWidgetSettingsArray($db);
37  foreach ($settings as $property => $value) {
38  $this->$property = $value;
39  }
if(isset($_POST['save'])) $settings
$value

References $db, $settings, $value, and YAWK\widget\getWidgetSettingsArray().

Member Function Documentation

◆ embedPrezi()

YAWK\WIDGETS\PREZI\EMBED\prezi::embedPrezi ( )

embed prezi

Html Markup to embed the prezi presentation

Definition at line 56 of file prezi.php.

58  { // check if html markup is set and valid
59  if (isset($this->preziHtml)
60  && (!empty($this->preziHtml))
61  && (is_string($this->preziHtml)))
62  { // output html markup
63  echo $this->preziHtml;
64  }

References YAWK\WIDGETS\PREZI\EMBED\prezi\$preziHtml.

Referenced by YAWK\WIDGETS\PREZI\EMBED\prezi\init().

◆ init()

YAWK\WIDGETS\PREZI\EMBED\prezi::init ( )

Init and embed prezi widget.

Example Widget Init

Definition at line 45 of file prezi.php.

47  { // display heading
48  echo $this->getHeading($this->preziHeading, $this->preziSubtext);
49  // output prezi html code
50  $this->embedPrezi();
getHeading($heading, $subtext)
Get widget heading and subtext, return headline.
Definition: widget.php:669

References YAWK\WIDGETS\PREZI\EMBED\prezi\embedPrezi(), and YAWK\widget\getHeading().

◆ markup()

YAWK\WIDGETS\PREZI\EMBED\prezi::markup ( )

Definition at line 66 of file prezi.php.

68  {
69  /*
70  echo '<iframe
71  id="iframe_container"
72  frameborder="0"
73  webkitallowfullscreen=""
74  mozallowfullscreen=""
75  allowfullscreen=""
76  allow="autoplay; fullscreen"
77  width="550"
78  height="400"
79  src="https://prezi.com/embed/dcjy1eieemjl/?bgcolor=ffffff&lock_to_path=0&autoplay=0&autohide_ctrls=0&landing_data=bHVZZmNaNDBIWnNjdEVENDRhZDFNZGNIUE43MHdLNWpsdFJLb2ZHanI0a2R3cmd5QVhqMWtLTUV3TGZnN0pNcGRnPT0&landing_sign=Z8VjbmSXPfIR-zdmkFLgkDRZEu-EjHRhVugJALWgv6M">
80  </iframe>';
81  */

Member Data Documentation

◆ $preziHeading

YAWK\WIDGETS\PREZI\EMBED\prezi::$preziHeading = ''
Parameters
stringTitle that will be shown above widget

Definition at line 22 of file prezi.php.

◆ $preziHtml

YAWK\WIDGETS\PREZI\EMBED\prezi::$preziHtml = ''
Parameters
stringPrezi HTML Markup

Definition at line 20 of file prezi.php.

Referenced by YAWK\WIDGETS\PREZI\EMBED\prezi\embedPrezi().

◆ $preziSubtext

YAWK\WIDGETS\PREZI\EMBED\prezi::$preziSubtext = ''
Parameters
stringSubtext will be displayed beside title

Definition at line 24 of file prezi.php.

◆ $widget

YAWK\WIDGETS\PREZI\EMBED\prezi::$widget = ''
Parameters
objectglobal widget object data

Definition at line 18 of file prezi.php.


The documentation for this class was generated from the following file: