forked from LiveCarta/LiveCartaWP
Changed source root directory
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use Duplicator\Utils\ExtraPlugins\ExtraItem;
|
||||
|
||||
/**
|
||||
* Variables
|
||||
*
|
||||
* @var \Duplicator\Core\Views\TplMng $tplMng
|
||||
* @var array<string, mixed> $tplData
|
||||
* @var ExtraItem $plugin
|
||||
*/
|
||||
|
||||
$plugin = $tplData['plugin'];
|
||||
?>
|
||||
<div class="plugin-item">
|
||||
<img src="<?php echo esc_url($plugin->icon); ?>" alt="<?php echo esc_attr($plugin->name); ?> logo"/>
|
||||
<div class="details">
|
||||
<h5 class="addon-name">
|
||||
<?php echo esc_html($plugin->name); ?>
|
||||
</h5>
|
||||
<p class="addon-desc"><?php echo esc_html($plugin->desc); ?></p>
|
||||
<button class="button button-primary dup-extra-plugin-item" data-plugin="<?php echo esc_attr($plugin->getSlug());?>">
|
||||
<?php echo esc_html_e('Install', 'duplicator'); ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?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 __('Enjoying 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>
|
||||
Reference in New Issue
Block a user