Add Apache-2.0 LICENSE, NOTICE, and SPDX headers
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Plugin Name: BD BookShelfHelper
|
||||
* Plugin URI: https://authorbdmurphy.com
|
||||
@@ -29,4 +32,4 @@ function BD_BookShelfHelper() {
|
||||
add_action('plugins_loaded', 'BD_BookShelfHelper');
|
||||
|
||||
register_activation_hook(__FILE__, array('BD_BookShelfHelper_Install', 'activate'));
|
||||
register_deactivation_hook(__FILE__, array('BD_BookShelfHelper_Install', 'deactivate'));
|
||||
register_deactivation_hook(__FILE__, array('BD_BookShelfHelper_Install', 'deactivate'));
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Admin Class
|
||||
*/
|
||||
@@ -477,4 +480,4 @@ class BD_BookShelfHelper_Admin {
|
||||
|
||||
wp_die();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Main Plugin Class
|
||||
*/
|
||||
@@ -393,4 +396,4 @@ class BD_BookShelfHelper {
|
||||
public static function get_awards() {
|
||||
return get_option('bdm_awards', array());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Installation and Database Setup
|
||||
*/
|
||||
@@ -164,4 +167,4 @@ class BD_BookShelfHelper_Install {
|
||||
wp_schedule_event(time(), 'six_hours', 'bd_bookshelf_amazon_scrape');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* 404 Page Template
|
||||
*/
|
||||
@@ -18,4 +21,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: All Books
|
||||
*/
|
||||
@@ -80,4 +83,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Series Listing
|
||||
*/
|
||||
@@ -43,4 +46,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Blog
|
||||
*/
|
||||
@@ -66,4 +69,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Navigation JavaScript
|
||||
*/
|
||||
@@ -94,4 +97,4 @@
|
||||
}
|
||||
}, { passive: true });
|
||||
|
||||
})();
|
||||
})();
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Social Share JavaScript
|
||||
*/
|
||||
@@ -106,4 +109,4 @@
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
||||
})();
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
<div class="footer-container">
|
||||
<div class="footer-zone footer-social">
|
||||
<h4 class="footer-heading"><?php esc_html_e('Connect', 'bd-murphy'); ?></h4>
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
<?php bdm_display_social_icons(); ?>
|
||||
</div>
|
||||
|
||||
@@ -52,4 +55,4 @@
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Home
|
||||
*/
|
||||
@@ -37,4 +40,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* BD Murphy Bookshelf Theme Functions
|
||||
*
|
||||
@@ -155,4 +158,4 @@ add_action('publish_post', 'bdm_publish_hook');
|
||||
|
||||
add_action('wp_head', function() {
|
||||
echo '<link rel="alternate" type="application/rss+xml" title="' . get_bloginfo('name') . ' RSS Feed" href="' . esc_url(get_bloginfo('rss2_url')) . '">' . "\n";
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
<head>
|
||||
<meta charset="<?php bloginfo('charset'); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
@@ -35,4 +38,4 @@
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main id="main" class="site-main">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Customizer Settings
|
||||
*
|
||||
@@ -144,4 +147,4 @@ function bdm_customize_register($wp_customize) {
|
||||
'type' => 'checkbox',
|
||||
));
|
||||
}
|
||||
add_action('customize_register', 'bdm_customize_register');
|
||||
add_action('customize_register', 'bdm_customize_register');
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Navigation Menu Hooks
|
||||
*
|
||||
@@ -48,4 +51,4 @@ function bdm_nav_menu_css_class($classes, $item, $args, $depth) {
|
||||
$classes[] = 'series-menu-item';
|
||||
}
|
||||
return $classes;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Tags
|
||||
*
|
||||
@@ -134,4 +137,4 @@ function bdm_get_short_url($post_id = null) {
|
||||
return home_url('/' . $slug);
|
||||
}
|
||||
return get_permalink($post_id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Theme Options Admin Page
|
||||
*
|
||||
@@ -137,4 +140,4 @@ function bdm_media_field_callback($args) {
|
||||
$value = bdm_get_theme_option($key);
|
||||
echo '<input type="text" id="bdm_' . esc_attr($key) . '" name="bdm_theme_options[' . esc_attr($key) . ']" value="' . esc_attr($value) . '" class="small-text">';
|
||||
echo '<p class="description">' . esc_html($args['label']) . '</p>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Widgets
|
||||
*
|
||||
@@ -96,4 +99,4 @@ class BDM_Book_Shelf_Widget extends WP_Widget {
|
||||
function bdm_register_widgets() {
|
||||
register_widget('BDM_Book_Shelf_Widget');
|
||||
}
|
||||
add_action('widgets_init', 'bdm_register_widgets');
|
||||
add_action('widgets_init', 'bdm_register_widgets');
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
@@ -56,4 +59,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: About
|
||||
*/
|
||||
@@ -58,4 +61,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Contact
|
||||
*/
|
||||
@@ -83,4 +86,4 @@ jQuery(document).ready(function($) {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Full Width
|
||||
*/
|
||||
@@ -18,4 +21,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: No Sidebar
|
||||
*/
|
||||
@@ -18,4 +21,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Reviews
|
||||
*/
|
||||
@@ -59,4 +62,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Sign Up
|
||||
*/
|
||||
@@ -44,4 +47,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Unsubscribe
|
||||
*/
|
||||
@@ -35,4 +38,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Search Results Template
|
||||
*/
|
||||
@@ -39,4 +42,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Individual Book
|
||||
*/
|
||||
@@ -126,4 +129,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Template Name: Individual Series
|
||||
*/
|
||||
@@ -65,4 +68,4 @@ get_header();
|
||||
</div>
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
get_footer();
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Social Share Buttons Template Part
|
||||
*/
|
||||
@@ -50,4 +53,4 @@ $show_whatsapp = get_theme_mod('share_whatsapp', true);
|
||||
<button class="share-btn share-copy" data-url="<?php echo esc_url($share_url); ?>">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Plugin Name: BD SimpleEmail
|
||||
* Plugin URI: https://authorbdmurphy.com
|
||||
@@ -30,4 +33,4 @@ function BD_SimpleEmail() {
|
||||
add_action('plugins_loaded', 'BD_SimpleEmail');
|
||||
|
||||
register_activation_hook(__FILE__, array('BD_SimpleEmail_Install', 'activate'));
|
||||
register_deactivation_hook(__FILE__, array('BD_SimpleEmail_Install', 'deactivate'));
|
||||
register_deactivation_hook(__FILE__, array('BD_SimpleEmail_Install', 'deactivate'));
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Email Admin Class
|
||||
*/
|
||||
@@ -308,4 +311,4 @@ class BD_SimpleEmail_Admin {
|
||||
|
||||
return $post_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Email Installation and Database
|
||||
*/
|
||||
@@ -48,4 +51,4 @@ class BD_SimpleEmail_Install {
|
||||
dbDelta($table);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Email Sender Class
|
||||
*/
|
||||
@@ -159,4 +162,4 @@ class BD_Email_Sender {
|
||||
|
||||
return openssl_decrypt($ciphertext, 'AES-256-CBC', $key, 0, $iv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// Copyright 2026 Umbra Tools (umbratools.com)
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/**
|
||||
* Main SimpleEmail Plugin Class
|
||||
*/
|
||||
@@ -275,4 +278,4 @@ class BD_SimpleEmail {
|
||||
<?php
|
||||
return ob_get_clean();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user