Server IP : 192.158.238.246 / Your IP : 3.132.215.146 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/jenniferflocom/www/wp-content/themes/simple-glassy/inc/ |
Upload File : |
<?php /** * Miscellaneous functions * * @package SimpleGlassy */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } add_filter( 'widget_tag_cloud_args', 'simpleglassy_tag_cloud_font_sizes' ); function simpleglassy_tag_cloud_font_sizes( array $args ) { $args['smallest'] = '.875'; $args['largest'] = '.875'; $args['unit'] = 'rem'; $args['separator'] = ''; return $args; } add_filter( 'wp_generate_tag_cloud', 'simpleglassy_add_class_tag_cloud', 10, 1 ); function simpleglassy_add_class_tag_cloud( $string ) { return str_replace( 'class="tag-cloud-link', 'class="btn mr-1 mb-1 p-1 tag-cloud-link', $string ); } if ( ! function_exists( 'simpleglassy_edit_link' ) ) : /** * Returns an accessibility-friendly link to edit a post or page or attachment */ function simpleglassy_edit_link() { $link = edit_post_link( sprintf( /* translators: %s: Name of current page */ __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'simple-glassy' ), get_the_title() ), '<footer class="entry-footer mt-3 pt-3 border-top small"><i class="sgicon sgicon-pencil-square-o" aria-hidden="true"></i> ', '</footer>' ); return $link; } endif;