SproutCMS

This is the code documentation for the SproutCMS project

class WidgetArea

Stores information about an individual widget area, including the names of all widgets
that are allowed to be in this area.

Source code (27 results)

/config/sprout.php   Highlighted file source

Line 8: use Sprout\Helpers\WidgetArea;
Line 103: $config['widget_areas'][1] = $area = new WidgetArea('embedded', 1);
Line 106: $area->setOrientation(WidgetArea::ORIENTATION_WIDE);
Line 113: $config['widget_areas'][2] = $area = new WidgetArea('sidebar', 2);
Line 116: $area->setOrientation(WidgetArea::ORIENTATION_TALL);
Line 123: $config['widget_areas'][4] = $area = new WidgetArea('email', 4);
Line 126: $area->setOrientation(WidgetArea::ORIENTATION_EMAIL);

/config/sprout.php   Highlighted file source

Line 8: use Sprout\Helpers\WidgetArea;
Line 103: $config['widget_areas'][1] = $area = new WidgetArea('embedded', 1);
Line 106: $area->setOrientation(WidgetArea::ORIENTATION_WIDE);
Line 113: $config['widget_areas'][2] = $area = new WidgetArea('sidebar', 2);
Line 116: $area->setOrientation(WidgetArea::ORIENTATION_TALL);
Line 123: $config['widget_areas'][4] = $area = new WidgetArea('email', 4);
Line 126: $area->setOrientation(WidgetArea::ORIENTATION_EMAIL);

/sprout/Controllers/Admin/PageAdminController.php   Highlighted file source

Line 70: use Sprout\Helpers\WidgetArea;
Line 1298: $area = WidgetArea::findAreaByName($area_name);

/sprout/Controllers/Admin/PageAdminController.php   Highlighted file source

Line 70: use Sprout\Helpers\WidgetArea;
Line 1298: $area = WidgetArea::findAreaByName($area_name);

/sprout/Helpers/Admin.php   Highlighted file source

Line 116: * @param WidgetArea $area The area that is being edited
Line 125: public static function widgetList($field_name, WidgetArea $area, $curr_widgets, $enable_all = true)

/sprout/Helpers/ContentReplace.php   Highlighted file source

Line 102: $area_id = WidgetArea::findAreaByName($area_name)->getIndex();
Line 220: WidgetArea::ORIENTATION_WIDE,
Line 276: WidgetArea::ORIENTATION_EMAIL,

/sprout/Helpers/ContentReplace.php   Highlighted file source

Line 102: $area_id = WidgetArea::findAreaByName($area_name)->getIndex();
Line 220: WidgetArea::ORIENTATION_WIDE,
Line 276: WidgetArea::ORIENTATION_EMAIL,

/sprout/Helpers/ImportCMS.php   Highlighted file source

Line 12: use Sprout\Helpers\WidgetArea;
Line 130: $area = WidgetArea::findAreaByName('embedded');

/sprout/Helpers/Page.php   Highlighted file source

Line 238: $widget_text = $inst->render(WidgetArea::ORIENTATION_WIDE);

/sprout/Helpers/Register.php   Highlighted file source

Line 408: $area = WidgetArea::findAreaByName($area_name);

/sprout/Helpers/Register.php   Highlighted file source

Line 408: $area = WidgetArea::findAreaByName($area_name);

/sprout/Helpers/Widgets.php   Highlighted file source

Line 41: $area = WidgetArea::findAreaByName($area_id);
Line 58: $area = WidgetArea::findAreaByName($area_id);
Line 90: * @param int $orientation See ORIENTATION_* constants in {@see WidgetArea}
Line 109: if ($orientation != WidgetArea::ORIENTATION_EMAIL and AdminAuth::isLoggedIn()) {
Line 116: $class .= ' orientation-' . WidgetArea::$orientation_classes[$orientation];
Line 191: $area = WidgetArea::findAreaByName($area_name);
Line 232: $area = WidgetArea::findAreaByName($area_name);

/sprout/sprout_load.php   Highlighted file source

Line 17: use Sprout\Helpers\WidgetArea;
Line 155: $area = WidgetArea::findAreaByName('email');

/sprout/sprout_load.php   Highlighted file source

Line 17: use Sprout\Helpers\WidgetArea;
Line 155: $area = WidgetArea::findAreaByName('email');

/sprout/views/admin/page_edit.php   Highlighted file source

Line 30: use Sprout\Helpers\WidgetArea;
Line 363: if ($area->getOrientation() == WidgetArea::ORIENTATION_EMAIL) continue;

/sprout/views/admin/page_edit.php   Highlighted file source

Line 30: use Sprout\Helpers\WidgetArea;
Line 363: if ($area->getOrientation() == WidgetArea::ORIENTATION_EMAIL) continue;

/sprout/Widgets/FileListWidget.php   Highlighted file source

Line 20: use Sprout\Helpers\WidgetArea;
Line 53: if ($orientation == WidgetArea::ORIENTATION_TALL) {
Line 55: } else if ($orientation == WidgetArea::ORIENTATION_WIDE) {

/sprout/Widgets/FileListWidget.php   Highlighted file source

Line 20: use Sprout\Helpers\WidgetArea;
Line 53: if ($orientation == WidgetArea::ORIENTATION_TALL) {
Line 55: } else if ($orientation == WidgetArea::ORIENTATION_WIDE) {

/sprout/Widgets/HelloWorldWidget.php   Highlighted file source

Line 18: use Sprout\Helpers\WidgetArea;
Line 39: if ($orientation == WidgetArea::ORIENTATION_TALL) {
Line 42: } else if ($orientation == WidgetArea::ORIENTATION_WIDE) {

/sprout/Widgets/HelloWorldWidget.php   Highlighted file source

Line 18: use Sprout\Helpers\WidgetArea;
Line 39: if ($orientation == WidgetArea::ORIENTATION_TALL) {
Line 42: } else if ($orientation == WidgetArea::ORIENTATION_WIDE) {

/sprout/Widgets/ImageGalleryWidget.php   Highlighted file source

Line 21: use Sprout\Helpers\WidgetArea;
Line 163: if ($orientation == WidgetArea::ORIENTATION_TALL) {
Line 333: $widget = Widgets::render(WidgetArea::ORIENTATION_EMAIL, 'Sprout\Widgets\ImageGalleryWidget', [

/sprout/Widgets/ImageGalleryWidget.php   Highlighted file source

Line 21: use Sprout\Helpers\WidgetArea;
Line 163: if ($orientation == WidgetArea::ORIENTATION_TALL) {
Line 333: $widget = Widgets::render(WidgetArea::ORIENTATION_EMAIL, 'Sprout\Widgets\ImageGalleryWidget', [

/sprout/Widgets/RichTextWidget.php   Highlighted file source

Line 34: * @param int $orientation The orientation of the widget; see e.g. {@see WidgetArea::ORIENTATION_WIDE}

/sprout/Widgets/RichTextWidget.php   Highlighted file source

Line 34: * @param int $orientation The orientation of the widget; see e.g. {@see WidgetArea::ORIENTATION_WIDE}

/sprout/Widgets/Widget.php   Highlighted file source

Line 150: * Will be one of the constants defined in the {@see WidgetArea} class.

/sprout/Widgets/Widget.php   Highlighted file source

Line 150: * Will be one of the constants defined in the {@see WidgetArea} class.

A total of 69 lines in 27 files were found