File: /home/elrashedytravel/public_html/wp-content/plugins/current-year-shortcode/shortcodes/symbols.php
<?php
/**
* Includes shortocdes of symbols (copyright symbol is in copyright.php)
* Plugin: Current Year and Symbols Shortcode
* Since: 2.3.2
* Author: KGM Servizi
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* Retrieve registered trademark symbol (®)
*
* @param array $atts Shortcode attributes (not used)
* @return string The registered trademark symbol, escaped for safe output
*/
add_shortcode( 't', 'cys_registered_trademark' );
function cys_registered_trademark( $atts ){
return esc_html('®');
}
/**
* Retrieve trademark symbol (™)
*
* @param array $atts Shortcode attributes (not used)
* @return string The trademark symbol, escaped for safe output
*/
add_shortcode( 'tm', 'cys_trademark' );
function cys_trademark( $atts ){
return esc_html('™');
}
/**
* Retrieve service mark symbol (℠)
*
* @param array $atts Shortcode attributes (not used)
* @return string The service mark symbol, escaped for safe output
*/
add_shortcode( 'sm', 'cys_servicemark_trademark' );
function cys_servicemark_trademark( $atts ){
return esc_html('℠');
}