class-foogallery-export-view-helper.php
3 days ago
class-foogallery-import-export-extension.php
3 days ago
class-foogallery-import-export.php
3 days ago
class-foogallery-import-view-helper.php
3 days ago
functions.php
3 days ago
view-import-export.php
3 days ago
class-foogallery-import-export-extension.php
49 lines
| 1 | <?php |
| 2 | |
| 3 | if ( ! defined( 'ABSPATH' ) ) { |
| 4 | exit; |
| 5 | } |
| 6 | |
| 7 | /** |
| 8 | * FooGallery Import Export Class that registers the extension. |
| 9 | */ |
| 10 | |
| 11 | if ( ! class_exists('FooGallery_Import_Export_Extension') ) { |
| 12 | |
| 13 | require_once 'class-foogallery-import-export.php'; |
| 14 | |
| 15 | class FooGallery_Import_Export_Extension { |
| 16 | |
| 17 | /** |
| 18 | * FooGallery_Import_Export_Extension constructor. |
| 19 | */ |
| 20 | function __construct() { |
| 21 | add_filter( 'foogallery_available_extensions', array( $this, 'register_extension' ) ); |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Register the extension |
| 26 | * |
| 27 | * @param $extensions_list |
| 28 | * |
| 29 | * @return array |
| 30 | */ |
| 31 | function register_extension( $extensions_list ) { |
| 32 | $extensions_list[] = array( |
| 33 | 'slug' => 'foogallery-import-export', |
| 34 | 'class' => 'FooGallery_Import_Export', |
| 35 | 'categories' => array( 'Utilities' ), |
| 36 | 'title' => foogallery__( 'Import Export', 'foogallery' ), |
| 37 | 'description' => foogallery__( 'Export your galleries, and then import them into another WordPress install.', 'foogallery' ), |
| 38 | 'external_link_text' => foogallery__( 'Read documentation', 'foogallery' ), |
| 39 | 'external_link_url' => 'https://fooplugins.com/documentation/foogallery/getting-started-foogallery/import-export/', |
| 40 | 'dashicon' => 'dashicons-update', |
| 41 | 'tags' => array( 'utils', 'free', ), |
| 42 | 'source' => 'bundled' |
| 43 | ); |
| 44 | |
| 45 | return $extensions_list; |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 |