PATH:
home
/
letacommog
/
morandas1
/
wp-content
/
plugins
/
envato-elements
/
inc
<?php /** * Envato Elements: Beaver Builder * * BB template display/import. * * @package Envato/Envato_Elements * @since 0.0.2 */ namespace Envato_Elements; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Collection registration and management. * * @since 0.0.2 */ class Collection_Beaver_Builder extends Collection { public function __construct() { parent::__construct(); $this->category = 'beaver-builder'; } public function install_remote_template( $collection_id, $template_id ) { $local_collection = new CPT_Kits(); $local_collection_cache = $local_collection->get_pending_import( $collection_id, $template_id ); if ( $local_collection_cache && $local_collection_cache->post_parent ) { // we have a parent associated post, proceed with import. $import_result = $local_collection->perform_import( $local_collection_cache->ID, [ 'post_meta' => [ '_fl_meta_custom' => 'envato', ], ] ); $this->process_scheduled_page_inserts( $local_collection_cache->ID ); delete_post_meta( $local_collection_cache->ID, 'elements_import_lock' ); return $import_result; } return false; } public function edit_post_link( $post_id ) { return add_query_arg( 'fl_builder', '', get_permalink( $post_id ) ); } }
[+]
..
[-] class-notices.php
[edit]
[-] class-deep-photos.php
[edit]
[-] class-section.php
[edit]
[-] class-template.php
[edit]
[-] class-rest.php
[edit]
[-] class-statistics.php
[edit]
[-] class-collection-elementor-blocks.php
[edit]
[-] class-license.php
[edit]
[-] class-notifications.php
[edit]
[-] class-import.php
[edit]
[-] bootstrap.php
[edit]
[-] class-category.php
[edit]
[-] class-collection-photos.php
[edit]
[-] class-collection.php
[edit]
[-] class-elements-api.php
[edit]
[-] class-linker.php
[edit]
[-] class-required-plugin.php
[edit]
[-] class-collection-elementor.php
[edit]
[-] class-plugin.php
[edit]
[-] class-elementor.php
[edit]
[-] class-cpt.php
[edit]
[-] class-api.php
[edit]
[-] class-options.php
[edit]
[-] class-collection-beaver-builder.php
[edit]
[-] class-base.php
[edit]
[-] class-insert.php
[edit]
[-] class-cpt-kits.php
[edit]