public_html/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php
/**
		 * Find html template for shortcode output.
		 */
Find html template for shortcode output.
Find html template for shortcode output .
protected function findShortcodeTemplate() {
			if ( ! empty( $this->settings['html_template'] ) && is_file( $this->settings( 'html_template' ) ) ) {
				return $this->setTemplate( $this->settings['html_template'] );
			}
			$user_template = vc_shortcodes_theme_templates_dir( $this->getFilename() . '.php' );
			if ( is_file( $user_template ) ) {
				return $this->setTemplate( $user_template );
			}
			$default_dir = vc_manager()->getDefaultShortcodesTemplatesDir() . '/';
			if ( is_file( $default_dir . $this->getFilename() . '.php' ) ) {
				return $this->setTemplate( $default_dir . $this->getFilename() . '.php' );
			}
			return '';
		}
protected function findShortcodeTemplate ( ) { if ( ! empty ( $ this -> settings [ 'html_template' ] ) && is_file ( $ this -> settings ( 'html_template' ) ) ) { return $ this -> setTemplate ( $ this -> settings [ 'html_template' ] ) ; } $ user_template = vc_shortcodes_theme_templates_dir ( $ this -> getFilename ( ) . '.php' ) ; if ( is_file ( $ user_template ) ) { return $ this -> setTemplate ( $ user_template ) ; } $ default_dir = vc_manager ( ) -> getDefaultShortcodesTemplatesDir ( ) . '/' ; if ( is_file ( $ default_dir . $ this -> getFilename ( ) . '.php' ) ) { return $ this -> setTemplate ( $ default_dir . $ this -> getFilename ( ) . '.php' ) ; } return '' ; }
Find html template for shortcode output.
Find html template for shortcode output .
// Check template path in shortcode's mapping settings // Check template in theme directory // Check default place