PHP code example of mindkomm / theme-lib-links

1. Go to this page and download the library: Download mindkomm/theme-lib-links 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/ */

    

mindkomm / theme-lib-links example snippets


// Output: https://www.mind.ch/onepager#subsection
echo make_anchor_link( 'https://www.mind.ch/onepager/subsection' );

if ( is_external_url( 'https://example.org' ) ) {
    // Do something
}

 $domain = 'https://www.mind.ch/post/blablabla?param=wow'; 

<a  echo get_link_attributes( 'https://www.mind.ch/blog' );