102 $this->
id = $this->prefix.$id;
104 $this->render_template_file = $file;
145 if( !empty( $this->render_template_file ) ) {
150 if( file_exists( $file ) ) {
156 if( file_exists( $path ) ) {
159 gravityview()->log->error(
'Metabox template file not found', array(
'data' => $this ) );
162 }
else if( !empty( $this->callback ) ) {
164 if( is_callable( $this->callback ) ) {
167 call_user_func( $this->callback,
$post, (array) $this );
170 gravityview()->log->error(
'Metabox callback was not callable', array(
'data' => $this ) );
174 gravityview()->log->error(
'Metabox file and callback were not found', array(
'data' => $this ) );
const GRAVITYVIEW_DIR
"GRAVITYVIEW_DIR" "./" The absolute path to the plugin directory, with trailing slash ...
gravityview()
The main GravityView wrapper function.