Extend layout titles.

@param string $title Layout title.
@param array  $field Current field.
@param array  $layout Current layout title.
437527
public function extend_layout_titles( $title, $field, $layout ) : string {

		if ( ! empty( get_sub_field( 'heading' ) ) ) {
			$title .= ': ' . get_sub_field( 'heading' );
		}

		return apply_filters( 'hogan/extend_layout_title', $title );
	}
60509
public function setLayout($layout)
	{
		if (strpos($layout, ':') === false)
		{
			$this->_layout = $layout;
		}
		else
		{
			// Convert parameter to array based on :
			$temp = explode(':', $layout);
			$this->_layout = $temp[1];

			// Set layout template
			$this->_layoutTemplate = $temp[0];
		}

		return $this;
	}
481776
public static function frameImages($field, $title, $src, array $value = [])
    {
        return self::frame($field, $title, $src, $value, Frame::TYPE_IMAGE);
    }
900268
static function LayoutTemplate(Layout $layout)
    {
        $folder = Path::Combine(PHINE_PATH, 'App/Phine/LayoutTemplates');
        $file = Path::Combine($folder, $layout->GetName());
        return Path::AddExtension($file, 'phtml');
    }
264173
protected function setTitle($title)
    {
        $title = trim(preg_replace('/\s\s+/', ' ', str_replace("\n", " ", $title)));

        if ($title != '') {
            $this->title = $title;
        }
    }
1289828
private function AddTitleField()
    {
        $name = 'Title';
        $this->AddField(Input::Text($name, $this->page->GetTitle()));
    }
395616
public static function textarea($field, $title, $value = '')
    {
        return self::input($field, $title, $value, Input::TYPE_TEXTAREA);
    }
1205175
public function setTitle($title)
    {
        $this->title = $title;

        $this->getViewService()->share('title', $this->getTitle());
    }
1131115
public function renderSelf($layout = null, $title = null)
    {
        return $this->renderTag($this->renderContainer($layout, $title));
    }
945626
public function setLayout( Layout $layout = null )
    {
        if ( null === $layout )
        {
            $this->layoutId = null;
            $this->_layout  = null;
        }
        else
        {
            $this->layoutId = $layout->id;
            $this->_layout  = $layout;
        }

        return $this;
    }
1059845
public function layout($layout)
    {
        // Save the layout
        if ($layout == 'control group') {
            $layout = 'form';
        }

        // Backwards compat
        if (in_array($layout, ['full', 'sidebar', 'form'])) {
            $this->layout = $layout;
        }

        // Make the default width of form layout a span9.  Because typically the form
        // layout is only used on full width forms
        if ($layout == 'form') {
            $this->addClass('span9');
        }

        // Chain
        return $this;
    }
835543
public function setLayout($layout)
    {
        $extensions = ['.php', '.phtml', '.html', '.tpl'];

        if (isset($this->presets[ 'extensions' ])) {
            array_unshift($partialsExtensions, $this->presets[ 'extension' ]);
        } elseif (isset($this->presets[ 'extension' ])) {
            array_unshift($extensions, $this->presets[ 'extension' ]);
        }

        foreach ($extensions as $extension) {
            $extension = trim($extension, '.');

            if ($layout === 'theme') {
                $layoutFilePath = $this->getRealPath() . 'theme.' . $extension;
            } else {
                $layoutFilePath = $this->getRealPath() . 'layouts' . DIRECTORY_SEPARATOR . dash($layout) . DIRECTORY_SEPARATOR . 'layout.' . $extension;
            }

            if (is_file($layoutFilePath)) {
                $this->layout = new Theme\Layout($layoutFilePath);
                //$this->loadLayout();
                break;
            }
        }

        return $this;
    }
608185
public void setTitle(final String title) {
        if (title == null && this.title == null) {
            return;
        } else if (title == null) {
            removeChild(this.title);
            this.title = null;
        } else if (this.title == null) {
            this.title = new KeyValueNode<String>(CommonConstants.CS_TITLE_TITLE, title);
            appendChild(this.title, false);
        } else {
            this.title.setValue(title);
        }
    }
864593
public function setLayout($template) {
		$layout = $this->getTemplatePathname($template);
		if(!is_file($layout)) {
			throw new \RuntimeException("Layout file `$template` does not exist.");
		} else {
			$this->layout = $template;
		}
	}
1362695
public function renderContent($layout = null, $title = null)
    {
        if (!$this->isBaseTemplate()) {
            return parent::renderSelf($layout, $title);
        }
    }
969211
public function setLayout($layout, $layoutModule = null)
    {
        $this->layout = $layout;
        $this->layoutModule = $layoutModule;

        return $this;
    }
212728
public function renderContent($layout = null, $title = null)
    {
        if ($this->hasSourceComponent()) {
            return $this->SourceComponent()->renderContent($layout, $title);
        }
        
        return parent::renderContent($layout, $title);
    }