From 4e8c1c1917124d8d84243935d88649fa67b2858b Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Tue, 3 Aug 2021 16:36:21 -0400 Subject: [PATCH] some tidying of unused php files --- _UNUSED_comments.php.bak | 82 ----------------------------------- custom-shortcodes.php | 42 ------------------ functions.php | 10 ----- socials.php | 94 ---------------------------------------- 4 files changed, 228 deletions(-) delete mode 100644 _UNUSED_comments.php.bak delete mode 100644 custom-shortcodes.php delete mode 100644 socials.php diff --git a/_UNUSED_comments.php.bak b/_UNUSED_comments.php.bak deleted file mode 100644 index f6d1ec9..0000000 --- a/_UNUSED_comments.php.bak +++ /dev/null @@ -1,82 +0,0 @@ - - -
- - -

- ' . get_the_title() . '' - ); - ?> -

- - 1 && get_option( 'page_comments' ) ) : ?> - - - -
    - 'ol', - 'short_ping' => true, - ) ); ?> -
- - 1 && get_option( 'page_comments' ) ) : ?> - - - - - - -

- - - -
diff --git a/custom-shortcodes.php b/custom-shortcodes.php deleted file mode 100644 index 0e7b985..0000000 --- a/custom-shortcodes.php +++ /dev/null @@ -1,42 +0,0 @@ - '0' -// ), $atts)); - -// if ($prof == '1') { -// return get_social_icons_prof_str(); -// } else { -// return get_social_icons_str(); -// } -// } -// add_shortcode('social_icons', 'social_icons_function'); - -// /** -// * 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)); - -// 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'); - - -?> \ No newline at end of file diff --git a/functions.php b/functions.php index 8b221e7..a47c74b 100644 --- a/functions.php +++ b/functions.php @@ -9,21 +9,11 @@ define( 'WP_RDNYC_VERSION', wp_get_theme()->version ); define( 'WP_RDNYC_DIR', __DIR__ ); define( 'WP_RDNYC_URL', get_template_directory_uri() ); -/** - * Social icons definition & functions - */ -require_once( WP_RDNYC_DIR . '/socials.php' ); - /** * Custom functions */ require_once( WP_RDNYC_DIR . '/custom-functions.php' ); -/** - * Custom shortcodes for use in content - */ -require_once( WP_RDNYC_DIR . '/custom-shortcodes.php'); - /** * Autoloader for browersync */ diff --git a/socials.php b/socials.php deleted file mode 100644 index 6fe0447..0000000 --- a/socials.php +++ /dev/null @@ -1,94 +0,0 @@ - "mdi-typewriter", -// 'url' => '/blog', -// 'prof' => false, -// 'target' => "_self" -// ), -// array('icon' => "mdi-rss", 'url' => '/feed', 'prof' => false, 'target' => "_blank"), -// array( -// 'icon' => "mdi-linkedin", -// 'url' => "https://www.linkedin.com/in/adampiontek/", -// 'prof' => true, -// 'target' => "_blank" -// ), -// array('icon' => "mdi-github", 'url' => "https://github.com/apiontek", 'prof' => true, 'target' => "_blank"), -// array( -// 'icon' => "mdi-key-variant", -// 'url' => '/DF185CEE29A3D443_public_key.asc', -// 'prof' => true, -// 'target' => "_blank" -// ), -// array( -// 'icon' => "mdi-goodreads", -// 'url' => "https://www.goodreads.com/user/show/2450014-adam-piontek", -// 'prof' => false, -// 'target' => "_blank" -// ), -// array( -// 'icon' => "mdi-twitter", -// 'url' => "https://twitter.com/adampiontek", -// 'prof' => false, -// 'target' => "_blank" -// ), -// array('icon' => "mdi-facebook", 'url' => "https://facebook.com/damek", 'prof' => false, 'target' => "_blank"), -// array( -// 'icon' => "mdi-instagram", -// 'url' => "https://www.instagram.com/adampiontek/", -// 'prof' => false, -// 'target' => "_blank" -// ), -// array( -// 'icon' => "mdi-steam", -// 'url' => "https://steamcommunity.com/id/apiontek/", -// 'prof' => false, -// 'target' => "_blank" -// ), -// array( -// 'icon' => "mdi-discord", -// 'url' => "https://discordapp.com/users/328583977629646848", -// 'prof' => false, -// 'target' => "_blank" -// ) -// ); - -// function social_icon_is_prof($icon) { -// return $icon['prof']; -// } - -// function get_social_icons() { -// global $social_icons; -// return $social_icons; -// } - -// function get_social_icons_prof() { -// global $social_icons; -// return array_values(array_filter($social_icons, 'social_icon_is_prof')); -// } - -// function social_icons_str($icons_arr) { -// $out_str = '
'; -// foreach ($icons_arr as $i=>$social) { -// $pad = $i == 0 ? 'pe-1' : ($i == (count($icons_arr) - 1) ? 'ps-1' : 'px-1'); -// $out_str .= ''; -// $out_str .= svg_icon_use($social['icon'], "baseline") . ""; -// } -// return $out_str . '
'; -// } - -// function get_social_icons_str() { -// return social_icons_str(get_social_icons()); -// } - -// function get_social_icons_prof_str() { -// return social_icons_str(get_social_icons_prof()); -// } - -?> \ No newline at end of file