2021-07-25 07:16:35 -04:00
|
|
|
<?php
|
|
|
|
|
2021-07-25 09:29:15 -04:00
|
|
|
// require_once( WP_RDNYC_DIR . '/socials.php' );
|
2021-07-25 07:16:35 -04:00
|
|
|
|
2021-07-25 09:29:15 -04:00
|
|
|
// /**
|
|
|
|
// * Shortcode to insert line of social icons
|
|
|
|
// */
|
|
|
|
// function social_icons_function( $atts = array() ) {
|
|
|
|
// // set up default parameter
|
|
|
|
// extract(shortcode_atts(array(
|
|
|
|
// 'prof' => '0'
|
|
|
|
// ), $atts));
|
2021-07-25 07:16:35 -04:00
|
|
|
|
2021-07-25 09:29:15 -04:00
|
|
|
// if ($prof == '1') {
|
|
|
|
// return get_social_icons_prof_str();
|
|
|
|
// } else {
|
|
|
|
// return get_social_icons_str();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// add_shortcode('social_icons', 'social_icons_function');
|
2021-07-25 07:16:35 -04:00
|
|
|
|
2021-07-25 09:29:15 -04:00
|
|
|
// /**
|
|
|
|
// * Shortcode to insert single social icon by name
|
|
|
|
// * However, social icon MUST be imported in main.js !
|
|
|
|
// */
|
|
|
|
// function single_social_icon_function( $atts = array() ) {
|
|
|
|
// // set up default parameter
|
|
|
|
// extract(shortcode_atts(array(
|
|
|
|
// 'name' => '0',
|
|
|
|
// 'class' => 'baseline'
|
|
|
|
// ), $atts));
|
2021-07-25 07:16:35 -04:00
|
|
|
|
2021-07-25 09:29:15 -04:00
|
|
|
// if ($name == '0') {
|
|
|
|
// return 'social_icon shortcode requires "name" parameter, like "name=mdi-account"';
|
|
|
|
// } else {
|
|
|
|
// return svg_icon_use($name, $class);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// add_shortcode('social_icon', 'single_social_icon_function');
|
2021-07-25 07:16:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
?>
|