HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/plugins/duplicator/template/parts/cross_promotion/list.php
<?php

use Duplicator\Utils\ExtraPlugins\ExtraItem;

/**
 * Variables
 *
 * @var \Duplicator\Core\Views\TplMng  $tplMng
 * @var array<string, mixed> $tplData
 */

defined('ABSPATH') || die();

if (!current_user_can('install_plugins')) {
    return;
}

/** @var ExtraItem[] $plugins */
$plugins = $tplData['plugins'];
/** @var int $limit */
$limit = $tplData['limit'];
?>
<div id="dup-cross-promotion">
    <p>
        <em><?php echo __('Enoying Duplicator? Check out a couple of our other free plugins...', 'duplicator'); ?></em>
    </p>
    <div class="list">
        <?php
        foreach ($plugins as $i => $plugin) {
            if ($i > $limit - 1) {
                break;
            }

            $tplMng->render(
                'parts/cross_promotion/item',
                array('plugin' => $plugin)
            );
        }
        ?>
    </div>
</div>