some tidying of unused php files
This commit is contained in:
parent
083b71d478
commit
4e8c1c1917
4 changed files with 0 additions and 228 deletions
|
@ -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 “%2$s”', '%1$s thoughts on “%2$s”', 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>
|
|
@ -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');
|
||||
|
||||
|
||||
?>
|
|
@ -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
|
||||
*/
|
||||
|
|
94
socials.php
94
socials.php
|
@ -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());
|
||||
// }
|
||||
|
||||
?>
|
Loading…
Reference in a new issue