includes(); self::$instance->setup_globals(); self::$instance->setup_actions(); } return self::$instance; } /** * A dummy constructor to prevent plugin from being loaded more than once. * * @since bbPress (r2464) * @see bbPress::instance() * @see bbpress(); */ function __construct() { /* Do nothing here */ } function setup_globals() { /** Paths *************************************************************/ $this->file = __FILE__; $this->basename = plugin_basename( $this->file ); $this->plugin_dir = plugin_dir_path( $this->file ); $this->templates_dir = trailingslashit( $this->plugin_dir . 'templates' ); $this->plugin_url = plugin_dir_url ( $this->file ); $this->options_default = array( 'query_args' => array( 'post_type' => LoopsNSlides_Posts_Slide::$slide_post_type, 'posts_per_page' => -1 ), 'carousel_args' => array( 'items' => 3, 'loop' => true, 'autoplay' => true, 'animateOut' => 'fadeOut' ), 'template' => 'loop-list.php', 'enable_gallery_carousels' => 'on', 'gallery_carousel_args' => array( 'items' => 1, 'loop' => true, 'autoplay' => true, 'animateOut' => 'fadeOut' ), 'gallery_template' => 'loop-gallery.php' ); $this->options = wp_parse_args(get_option( $this->meta_name_options), $this->options_default); } public function get_options($keys = null){ return loopsns_get_array_value($keys,$this->options); } public function get_defaults($keys = null){ return loopsns_get_array_value($keys,$this->options_default); } function includes(){ require_once($this->plugin_dir . 'loopsns-functions.php'); require_once($this->plugin_dir . 'loopsns-instance-class.php'); require_once($this->plugin_dir . 'loopsns-post-loop-class.php'); require_once($this->plugin_dir . 'loopsns-post-slide-class.php'); require_once($this->plugin_dir . 'loopsns-gallery-class.php'); require_once($this->plugin_dir . 'loopsns-settings.php'); } function setup_actions(){ add_action( 'plugins_loaded', array($this, 'upgrade') ); add_action( 'admin_init', array($this,'load_textdomain') ); add_action( 'wp_enqueue_scripts', array($this,'scripts_styles') ); add_action( 'admin_enqueue_scripts', array($this,'admin_scripts_styles') ); add_filter( 'plugin_action_links_' . $this->basename, array($this, 'plugin_bottom_links')); //bottom links new LoopsNSlides_Settings(); new LoopsNSlides_Posts_Loop(); //loop post type new LoopsNSlides_Posts_Slide(); //slide post type new LoopsNSlides_Gallery(); //galleries stuff } function plugin_bottom_links($links){ $links[] = sprintf('%s',self::$donate_link,__('Donate','loopsns'));//donate if (current_user_can('manage_options')) { $settings_page_url = add_query_arg( array( 'page'=>$this->menu_slug ), get_admin_url(null, 'admin.php') ); $links[] = sprintf('%s',esc_url($settings_page_url),__('Settings')); } return $links; } function load_textdomain() { load_plugin_textdomain( 'loopsns', false, $this->plugin_dir . '/languages' ); } function upgrade(){ global $wpdb; $current_version = get_oindexable_repository = $indexable_repository; } /** * Returns the total number of unindexed objects. * * @return int The total number of unindexed objects. */ public function get_total_unindexed() { $transient = \get_transient( static::UNINDEXED_COUNT_TRANSIENT ); if ( $transient !== false ) { return (int) $transient; } $indexables_to_create = $this->query(); $result = \count( $indexables_to_create ); \set_transient( static::UNINDEXED_COUNT_TRANSIENT, $result, \DAY_IN_SECONDS ); /** * Action: 'wpseo_indexables_unindexed_calculated' - sets an option to timestamp when there are no unindexed indexables left. * * @internal */ \do_action( 'wpseo_indexables_unindexed_calculated', static::UNINDEXED_COUNT_TRANSIENT, $result ); return $result; } /** * Returns a limited number of unindexed posts. * * @param int $limit Limit the maximum number of unindexed posts that are counted. * * @return int|false The limited number of unindexed posts. False if the query fails. */ public function get_limited_unindexed_count( $limit ) { return $this->get_total_unindexed(); } /** * Creates indexables for unindexed system pages, the date archive, and the homepage. * * @return Indexable[] The created indexables. */ public function index() { $indexables = []; $indexables_to_create = $this->query(); if ( isset( $indexables_to_create['404'] ) ) { $indexables[] = $this->indexable_repository->find_for_system_page( '404' ); } if ( isset( $indexables_to_create['search'] ) ) { $indexables[] = $this->indexable_repository->find_for_system_page( 'search-result' ); } if ( isset( $indexables_to_create['date_archive'] ) ) { $indexables[] = $this->indexable_repository->find_for_date_archive(); } if ( isset( $indexables_to_create['home_page'] ) ) { $indexables[] = $this->indexable_repository->find_for_home_page(); } \set_transient( static::UNINDEXED_COUNT_TRANSIENT, 0, \DAY_IN_SECONDS ); return $indexables; } /**
Fatal error: Uncaught Error: Class "Yoast\WP\SEO\Actions\Indexing\Indexable_General_Indexation_Action" not found in /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php:1703 Stack trace: #0 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(3790): Yoast\WP\SEO\Generated\Cached_Container->getIndexableGeneralIndexationActionService() #1 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(3758): Yoast\WP\SEO\Generated\Cached_Container->getIndexingHelperService() #2 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(2061): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHelperService() #3 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(5978): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHierarchyBuilderService() #4 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(2051): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHierarchyRepositoryService() #5 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(2006): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHierarchyBuilderService() #6 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(5991): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #7 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(3722): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #8 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(2089): Yoast\WP\SEO\Generated\Cached_Container->getImageHelperService() #9 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(1996): Yoast\WP\SEO\Generated\Cached_Container->getIndexableHomePageBuilderService() #10 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(5991): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #11 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(3722): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #12 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(2181): Yoast\WP\SEO\Generated\Cached_Container->getImageHelperService() #13 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(1991): Yoast\WP\SEO\Generated\Cached_Container->getIndexableTermBuilderService() #14 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(5991): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #15 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(2134): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #16 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(1986): Yoast\WP\SEO\Generated\Cached_Container->getIndexablePostBuilderService() #17 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(5991): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #18 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(3722): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #19 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(1969): Yoast\WP\SEO\Generated\Cached_Container->getImageHelperService() #20 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(1981): Yoast\WP\SEO\Generated\Cached_Container->getIndexableAuthorBuilderService() #21 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(5991): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #22 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(3891): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #23 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(1961): Yoast\WP\SEO\Generated\Cached_Container->getPostHelperService() #24 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(1981): Yoast\WP\SEO\Generated\Cached_Container->getIndexableAuthorBuilderService() #25 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php(5991): Yoast\WP\SEO\Generated\Cached_Container->getIndexableBuilderService() #26 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php(271): Yoast\WP\SEO\Generated\Cached_Container->getIndexableRepositoryService() #27 /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/surfaces/classes-surface.php(38): YoastSEO_Vendor\Symfony\Component\DependencyInjection\Container->get() #28 /home/honaret4/public_html/wp-content/plugins/wordpress-seo-premium/premium.php(105): Yoast\WP\SEO\Surfaces\Classes_Surface->get() #29 /home/honaret4/public_html/wp-content/plugins/wordpress-seo-premium/src/initializers/plugin.php(55): WPSEO_Premium->__construct() #30 /home/honaret4/public_html/wp-includes/class-wp-hook.php(324): Yoast\WP\SEO\Premium\Initializers\Plugin->load() #31 /home/honaret4/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #32 /home/honaret4/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #33 /home/honaret4/public_html/wp-settings.php(579): do_action() #34 /home/honaret4/public_html/wp-config.php(103): require_once('/home/honaret4/...') #35 /home/honaret4/public_html/wp-load.php(50): require_once('/home/honaret4/...') #36 /home/honaret4/public_html/wp-blog-header.php(13): require_once('/home/honaret4/...') #37 /home/honaret4/public_html/index.php(17): require('/home/honaret4/...') #38 {main} thrown in /home/honaret4/public_html/wp-content/plugins/wordpress-seo/src/generated/container.php on line 1703