PHP code example of nthmedia / cp-site-icons

1. Go to this page and download the library: Download nthmedia/cp-site-icons library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nthmedia / cp-site-icons example snippets




return [
    'icons' => [
        'de' => '🇩🇪',
        'de-AT' => '🇦🇹',
        'en' => '🇬🇧',
        'es' => '🇪🇸',
        'fr' => '🇫🇷',
        'it' => '🇮🇹',
        'nl' => '🇳🇱',
        'nl-BE' => '🇧🇪',
    ],
];



return [
    'icons' => [
        'siteA' => [
            'background' => 'url(/favicon/favicon-32x32.png)',
            'background-size' => 'cover',
            'content' => '""',
        ],
    ],
];



return [
    // Show icon in the breadcrumb only
    'position' => ['breadcrumbIcon'],

    // Show icon on the page title only (default)
    'position' => ['pageTitle'],

    // Show icon in both locations
    'position' => ['breadcrumbIcon', 'pageTitle'],

    'icons' => [
        'en' => '🇬🇧',
        'nl' => '🇳🇱',
    ],
];