From 4e8c1c1917124d8d84243935d88649fa67b2858b Mon Sep 17 00:00:00 2001
From: Adam Piontek <adam@73k.us>
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 @@
-<?php
-/**
- * The template for displaying comments.
- *
- * This is the template that displays the area of the page that contains both the current comments
- * and the comment form.
- *
- * @link    https://codex.wordpress.org/Template_Hierarchy
- *
- * @package WPRDNYC
- */
-
-/*
- * If the current post is protected by a password and
- * the visitor has not yet entered the password we will
- * return early without loading the comments.
- */
-if ( post_password_required() ) {
-  return;
-}
-?>
-
-<div id="comments" class="comments-area">
-
-  <?php
-  if ( have_comments() ) : ?>
-    <h2 class="comments-title">
-      <?php
-      printf(
-        esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'wp-rdnyc' ) ),
-        number_format_i18n( get_comments_number() ),
-        '<span>' . get_the_title() . '</span>'
-      );
-      ?>
-    </h2>
-
-    <?php
-    if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
-      <nav id="comment-nav-above" class="navigation comment-navigation">
-        <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'wp-rdnyc' ); ?></h2>
-        <div class="nav-links">
-          <div class="nav-previous"><?php previous_comments_link( esc_html( 'Older Comments' ) ); ?></div>
-          <div class="nav-next"><?php next_comments_link( esc_html( 'Newer Comments' ) ); ?></div>
-        </div>
-      </nav>
-    <?php
-    endif; ?>
-
-    <ol class="comment-list">
-      <?php
-      wp_list_comments( array(
-        'style'      => 'ol',
-        'short_ping' => true,
-      ) ); ?>
-    </ol>
-
-    <?php
-    if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
-      <nav id="comment-nav-below" class="navigation comment-navigation">
-        <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'wp-rdnyc' ); ?></h2>
-        <div class="nav-links">
-          <div class="nav-previous"><?php previous_comments_link( esc_html( 'Older Comments' ) ); ?></div>
-          <div class="nav-next"><?php next_comments_link( esc_html( 'Newer Comments' ) ); ?></div>
-        </div>
-      </nav>
-    <?php
-    endif; ?>
-
-  <?php
-  endif; ?>
-
-  <?php
-  // If comments are closed and there are comments, let's leave a little note, shall we?
-  if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
-    ?>
-    <p class="no-comments"><?php esc_html( 'Comments are closed.' ); ?></p>
-    <?php
-  endif; ?>
-
-  <?php
-  comment_form(); ?>
-</div>
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 @@
-<?php
-
-// require_once( WP_RDNYC_DIR . '/socials.php' );
-
-// /**
-//  * Shortcode to insert line of social icons
-//  */
-// function social_icons_function( $atts = array() ) {
-//   // set up default parameter
-//   extract(shortcode_atts(array(
-//     'prof' => '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 @@
-<?php
-/**
- * Functions to help with social icons
- */
-
-// definition of social icons:
-// $social_icons = array(
-//   array(
-//     'icon' => "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 = '<div id="social-icons">';
-//   foreach ($icons_arr as $i=>$social) {
-//     $pad = $i == 0 ? 'pe-1' : ($i == (count($icons_arr) - 1) ? 'ps-1' : 'px-1');
-//     $out_str .= '<a href="' . $social['url'] . '" rel="noreferrer" target="' . $social['target'];
-//     $out_str .= '" class="fs-3 link-light text-decoration-none ' . $pad . '">';
-//     $out_str .= svg_icon_use($social['icon'], "baseline") . "</a>";
-//   }
-//   return $out_str . '</div>';
-// }
-
-// 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