✏️ 编辑:class-vc-page.php
路径:
/home/forge/kingkrunch.com/wp/wp-content/plugins/js_composer/include/classes/core/class-vc-page.php
大小:1.1 KB · 修改:2020-09-11 15:43:36 · 权限:0664 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } class Vc_Page implements Vc_Render { protected $slug; protected $title; protected $templatePath; /** * @return string * */ public function getSlug() { return $this->slug; } /** * @param mixed $slug * * @return $this; */ public function setSlug( $slug ) { $this->slug = (string) $slug; return $this; } /** * @return mixed */ public function getTitle() { return $this->title; } /** * @param string $title * * @return $this */ public function setTitle( $title ) { $this->title = (string) $title; return $this; } /** * @return mixed */ public function getTemplatePath() { return $this->templatePath; } /** * @param mixed $templatePath * * @return $this */ public function setTemplatePath( $templatePath ) { $this->templatePath = $templatePath; return $this; } public function render() { ob_start(); vc_include_template( $this->getTemplatePath(), array( 'page' => $this, ) ); echo apply_filters( 'vc_settings-page-render-' . $this->getSlug(), ob_get_clean(), $this ); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF