diff --git a/assets/icons/x.svg b/assets/icons/x.svg
new file mode 100644
index 0000000..795441e
--- /dev/null
+++ b/assets/icons/x.svg
@@ -0,0 +1,15 @@
+
+
diff --git a/projects-portfolio.php b/projects-portfolio.php
index 9276c6c..fd4c667 100644
--- a/projects-portfolio.php
+++ b/projects-portfolio.php
@@ -271,12 +271,6 @@ function projects_portfolio_enqueue_project_styles() {
wp_enqueue_style( 'projects-wp-styles' );
}
}
-
- if ( is_singular( 'projects' ) ) {
- // assets/js/buttons.js was used to render GitHub-style follow buttons.
- // The Follow button now uses a plain styled link (works for any provider),
- // so the script is no longer enqueued.
- }
}
add_action( 'wp_enqueue_scripts', 'projects_portfolio_enqueue_project_styles' );
@@ -350,11 +344,11 @@ function projects_portfolio_social_sharing_buttons( $project_id ) {
$html = '
';
- $svg_icon = function( string $name, string $file ) use ( &$html ) {
+ $svg_icon = function ( string $name, string $file ) use ( &$html ) {
// Render each social icon as an
![]()
referencing a real .svg file
// shipped under assets/icons/. This bypasses any kses data: URI stripping
// and ensures the icon loads as a normal image via standard img rules.
- $src = plugins_url( 'assets/icons/' . $file, __FILE__ );
+ $src = plugins_url( 'assets/icons/' . $file, __FILE__ );
$html .= '
 . ')
';
};
diff --git a/templates/single-projects.php b/templates/single-projects.php
index 6b36cf0..1a0f5e7 100644
--- a/templates/single-projects.php
+++ b/templates/single-projects.php
@@ -116,24 +116,30 @@ if ( $last_updated ) {
+ if ( isset( $repo_data['stargazers_count'] ) && $settings['templates']['stargazers_count'] ) :
+ ?>
|
|
-
+
|
|
-
+
|
|
-
@@ -142,7 +148,7 @@ if ( $last_updated ) {
-
+
@@ -161,7 +167,7 @@ if ( $last_updated ) {
' );
+ echo do_blocks( '' ); // phpcs:ignore
} else {
get_footer();
}