Files
dostavka_vodi/wp-content/plugins/!robin-image-optimizer/views/part-bulk-optimization-select-site.php
User A0264400 a766acdc90 first commit
2026-04-01 23:20:16 +03:00

30 lines
979 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
/**
* @var array $data
* @var WRIO_Page $page
*/
$blogs = WIO_Multisite::getBlogs( $data['scope'] );
$current_blog = WRIO_Plugin::app()->getPopulateOption( 'current_blog', 1 );
?>
<select style="width:200px;display:inline-block; height: 45px; margin-left:40px;" id="wbcr-rio-current-blog"
class="factory-dropdown factory-from-control-dropdown form-control"
data-context="<?php echo esc_attr( $data['scope'] ); ?>"
data-nonce="<?php echo wp_create_nonce( 'update_blog_id' ); ?>">
<?php foreach ( (array) $blogs as $blog ) : ?>
<?php
$blog_name = $blog->domain . $blog->path;
if ( defined( 'SUBDOMAIN_INSTALL' ) && SUBDOMAIN_INSTALL ) {
$blog_name = $blog->domain;
}
?>
<option <?php selected( $current_blog, $blog->blog_id ); ?>
value="<?php echo esc_attr( $blog->blog_id ); ?>"><?php echo esc_attr( $blog_name ); ?></option>
<?php endforeach; ?>
</select>