Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web28/html/wp-content/themes/Avada/includes/ |
Current File : //var/www/web28/html/wp-content/themes/Avada/includes/class-avada-multiple-featured-images.php |
<?php /** * Handles multiple featured images. * * @author ThemeFusion * @copyright (c) Copyright by ThemeFusion * @link https://avada.com * @package Avada * @subpackage Core */ // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } /** * Handles multiple featured images. */ class Avada_Multiple_Featured_Images { /** * Constructor. * * @access public */ public function __construct() { if ( is_admin() ) { add_action( 'after_setup_theme', [ $this, 'generate' ] ); } } /** * Generates the multiple images. * * @access public */ public function generate() { $post_types = apply_filters( 'avada_multiple_featured_images_post_types', [ 'post', 'page', 'avada_portfolio', ] ); $i = 2; while ( $i <= Avada()->settings->get( 'posts_slideshow_number' ) ) { foreach ( $post_types as $post_type ) { new Fusion_Featured_Image( [ 'id' => 'featured-image-' . $i, 'post_type' => $post_type, /* translators: Number. */ 'name' => sprintf( __( 'Featured image %s', 'Avada' ), $i ), /* translators: Number. */ 'label_set' => sprintf( __( 'Set featured image %s', 'Avada' ), $i ), /* translators: Number. */ 'label_remove' => sprintf( __( 'Remove featured image %s', 'Avada' ), $i ), ] ); } $i++; } } } /* Omit closing PHP tag to avoid "Headers already sent" issues. */
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare