Første upload af Ansico WP Theme
This commit is contained in:
commit
f91fcc07f1
64 changed files with 1948 additions and 0 deletions
11
ansico-wp-theme/LICENSE.txt
Normal file
11
ansico-wp-theme/LICENSE.txt
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
Ansico WP Theme
|
||||||
|
Copyright 2026 Andreas Andersen (Ansico)
|
||||||
|
|
||||||
|
License: GNU General Public License v3 or later
|
||||||
|
https://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
|
||||||
|
This theme is distributed under the terms of the GNU General Public License,
|
||||||
|
version 3 or any later version published by the Free Software Foundation.
|
||||||
|
|
||||||
|
Bundled resource note:
|
||||||
|
- Source Sans 3 is distributed under the SIL Open Font License 1.1.
|
||||||
BIN
ansico-wp-theme/LICENSE.txt:Zone.Identifier
Normal file
BIN
ansico-wp-theme/LICENSE.txt:Zone.Identifier
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
367
ansico-wp-theme/functions.php
Normal file
367
ansico-wp-theme/functions.php
Normal file
|
|
@ -0,0 +1,367 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Ansico WP Theme functions.
|
||||||
|
*
|
||||||
|
* @package Ansico_WP_Theme
|
||||||
|
*/
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_wp_theme_setup' ) ) {
|
||||||
|
function ansico_wp_theme_setup() {
|
||||||
|
add_editor_style( 'style.css' );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_action( 'after_setup_theme', 'ansico_wp_theme_setup' );
|
||||||
|
|
||||||
|
function ansico_wp_theme_enqueue_assets() {
|
||||||
|
wp_enqueue_style(
|
||||||
|
'ansico-wp-theme-style',
|
||||||
|
get_stylesheet_uri(),
|
||||||
|
array(),
|
||||||
|
wp_get_theme()->get( 'Version' )
|
||||||
|
);
|
||||||
|
}
|
||||||
|
add_action( 'wp_enqueue_scripts', 'ansico_wp_theme_enqueue_assets' );
|
||||||
|
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_author_intro_shortcode' ) ) {
|
||||||
|
function ansico_author_intro_shortcode() {
|
||||||
|
if ( ! is_author() ) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$author = get_queried_object();
|
||||||
|
if ( ! $author || empty( $author->ID ) ) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$author_id = (int) $author->ID;
|
||||||
|
$name = get_the_author_meta( 'display_name', $author_id );
|
||||||
|
$description = get_the_author_meta( 'description', $author_id );
|
||||||
|
$user_url = get_the_author_meta( 'user_url', $author_id );
|
||||||
|
$avatar = function_exists( 'ansico_get_author_avatar_html' ) ? ansico_get_author_avatar_html( $author_id, 120, esc_attr( $name ) ) : get_avatar( $author_id, 120, '', esc_attr( $name ), array( 'class' => 'ansico-author-intro__avatar-image' ) );
|
||||||
|
|
||||||
|
$output = '<div class="ansico-author-intro">';
|
||||||
|
$output .= '<div class="ansico-author-intro__avatar">' . $avatar . '</div>';
|
||||||
|
$output .= '<div class="ansico-author-intro__content">';
|
||||||
|
$output .= '<h1 class="ansico-author-intro__name">' . esc_html( $name ) . '</h1>';
|
||||||
|
|
||||||
|
if ( ! empty( $description ) ) {
|
||||||
|
$output .= '<div class="ansico-author-intro__bio">' . wpautop( wp_kses_post( $description ) ) . '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! empty( $user_url ) ) {
|
||||||
|
$output .= '<p class="ansico-author-intro__website"><a href="' . esc_url( $user_url ) . '" rel="me noopener noreferrer">' . esc_html( $user_url ) . '</a></p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$output .= '</div></div>';
|
||||||
|
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_shortcode( 'ansico_author_intro', 'ansico_author_intro_shortcode' );
|
||||||
|
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_get_social_networks_v2' ) ) {
|
||||||
|
function ansico_get_social_networks_v2() {
|
||||||
|
return array(
|
||||||
|
'facebook' => array( 'label' => 'Facebook', 'icon' => 'f' ),
|
||||||
|
'linkedin' => array( 'label' => 'LinkedIn', 'icon' => 'in' ),
|
||||||
|
'instagram' => array( 'label' => 'Instagram', 'icon' => '◎' ),
|
||||||
|
'bluesky' => array( 'label' => 'Bluesky', 'icon' => '☁' ),
|
||||||
|
'twitter' => array( 'label' => 'Twitter/X', 'icon' => '𝕏' ),
|
||||||
|
'mastodon' => array( 'label' => 'Mastodon', 'icon' => 'm' ),
|
||||||
|
'friendica' => array( 'label' => 'Friendica', 'icon' => 'F' ),
|
||||||
|
'reddit' => array( 'label' => 'Reddit', 'icon' => 'r' ),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_format_profile_url_for_display_v2' ) ) {
|
||||||
|
function ansico_format_profile_url_for_display_v2( $url ) {
|
||||||
|
$url = trim( (string) $url );
|
||||||
|
$url = preg_replace( '#^https?://#i', '', $url );
|
||||||
|
return untrailingslashit( $url );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_get_author_social_links_v2' ) ) {
|
||||||
|
function ansico_get_author_social_links_v2( $author_id ) {
|
||||||
|
$networks = ansico_get_social_networks_v2();
|
||||||
|
$output = '';
|
||||||
|
|
||||||
|
foreach ( $networks as $key => $network ) {
|
||||||
|
$url = get_user_meta( $author_id, 'ansico_' . $key, true );
|
||||||
|
$show = get_user_meta( $author_id, 'ansico_show_' . $key, true );
|
||||||
|
|
||||||
|
if ( empty( $url ) || '1' !== (string) $show ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$output .= '<a class="ansico-author-intro__social" href="' . esc_url( $url ) . '" rel="me noopener noreferrer" target="_blank" title="' . esc_attr( $network['label'] ) . '" aria-label="' . esc_attr( $network['label'] ) . '">';
|
||||||
|
$output .= '<span aria-hidden="true">' . esc_html( $network['icon'] ) . '</span>';
|
||||||
|
$output .= '<span class="ansico-author-intro__social-label">' . esc_html( $network['label'] ) . '</span>';
|
||||||
|
$output .= '</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( empty( $output ) ) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
return '<div class="ansico-author-intro__socials">' . $output . '</div>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_author_intro_shortcode_v2' ) ) {
|
||||||
|
function ansico_author_intro_shortcode_v2() {
|
||||||
|
if ( ! is_author() ) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$author = get_queried_object();
|
||||||
|
if ( ! $author || empty( $author->ID ) ) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$author_id = (int) $author->ID;
|
||||||
|
$name = get_the_author_meta( 'display_name', $author_id );
|
||||||
|
$description = get_the_author_meta( 'description', $author_id );
|
||||||
|
$user_url = get_the_author_meta( 'user_url', $author_id );
|
||||||
|
$avatar = function_exists( 'ansico_get_author_avatar_html' ) ? ansico_get_author_avatar_html( $author_id, 120, esc_attr( $name ) ) : get_avatar( $author_id, 120, '', esc_attr( $name ), array( 'class' => 'ansico-author-intro__avatar-image' ) );
|
||||||
|
$socials = ansico_get_author_social_links_v2( $author_id );
|
||||||
|
|
||||||
|
$output = '<div class="ansico-author-intro">';
|
||||||
|
$output .= '<div class="ansico-author-intro__avatar">' . $avatar . '</div>';
|
||||||
|
$output .= '<div class="ansico-author-intro__content">';
|
||||||
|
$output .= '<h1 class="ansico-author-intro__name">' . esc_html( $name ) . '</h1>';
|
||||||
|
|
||||||
|
if ( ! empty( $description ) ) {
|
||||||
|
$output .= '<div class="ansico-author-intro__bio">' . wpautop( wp_kses_post( $description ) ) . '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! empty( $user_url ) ) {
|
||||||
|
$output .= '<p class="ansico-author-intro__website"><a href="' . esc_url( $user_url ) . '" rel="me noopener noreferrer">' . esc_html( ansico_format_profile_url_for_display_v2( $user_url ) ) . '</a></p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$output .= $socials;
|
||||||
|
$output .= '</div></div>';
|
||||||
|
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
add_shortcode( 'ansico_author_intro_v2', 'ansico_author_intro_shortcode_v2' );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_get_author_avatar_html' ) ) {
|
||||||
|
function ansico_get_author_avatar_html( $author_id, $size = 120, $alt = '' ) {
|
||||||
|
$custom_avatar_id = (int) get_user_meta( $author_id, 'ansico_custom_avatar_id', true );
|
||||||
|
|
||||||
|
if ( $custom_avatar_id ) {
|
||||||
|
$image = wp_get_attachment_image(
|
||||||
|
$custom_avatar_id,
|
||||||
|
array( $size, $size ),
|
||||||
|
false,
|
||||||
|
array(
|
||||||
|
'class' => 'ansico-author-intro__avatar-image',
|
||||||
|
'alt' => $alt,
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
if ( $image ) {
|
||||||
|
return $image;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return get_avatar(
|
||||||
|
$author_id,
|
||||||
|
$size,
|
||||||
|
'',
|
||||||
|
$alt,
|
||||||
|
array(
|
||||||
|
'class' => 'ansico-author-intro__avatar-image',
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_enqueue_profile_media' ) ) {
|
||||||
|
function ansico_enqueue_profile_media( $hook_suffix ) {
|
||||||
|
if ( 'profile.php' !== $hook_suffix && 'user-edit.php' !== $hook_suffix ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
wp_enqueue_media();
|
||||||
|
|
||||||
|
$handle = 'ansico-profile-media';
|
||||||
|
wp_register_script( $handle, '', array( 'jquery' ), null, true );
|
||||||
|
wp_enqueue_script( $handle );
|
||||||
|
|
||||||
|
$script = "
|
||||||
|
jQuery(function($){
|
||||||
|
var frame;
|
||||||
|
$(document).on('click', '.ansico-upload-avatar-button', function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
var button = $(this);
|
||||||
|
var container = button.closest('.ansico-custom-avatar-field');
|
||||||
|
|
||||||
|
if (frame) {
|
||||||
|
frame.open();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
frame = wp.media({
|
||||||
|
title: '" . esc_js( __( 'Select profile image', 'ansico' ) ) . "',
|
||||||
|
button: { text: '" . esc_js( __( 'Use this image', 'ansico' ) ) . "' },
|
||||||
|
multiple: false
|
||||||
|
});
|
||||||
|
|
||||||
|
frame.on('select', function(){
|
||||||
|
var attachment = frame.state().get('selection').first().toJSON();
|
||||||
|
container.find('.ansico-custom-avatar-id').val(attachment.id);
|
||||||
|
container.find('.ansico-custom-avatar-preview').html('<img src=\"' + attachment.url + '\" alt=\"\" style=\"width:96px;height:96px;border-radius:999px;object-fit:cover;display:block;\" />');
|
||||||
|
});
|
||||||
|
|
||||||
|
frame.open();
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on('click', '.ansico-remove-avatar-button', function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
var container = $(this).closest('.ansico-custom-avatar-field');
|
||||||
|
container.find('.ansico-custom-avatar-id').val('');
|
||||||
|
container.find('.ansico-custom-avatar-preview').empty();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
";
|
||||||
|
wp_add_inline_script( $handle, $script );
|
||||||
|
}
|
||||||
|
add_action( 'admin_enqueue_scripts', 'ansico_enqueue_profile_media' );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_render_profile_extensions' ) ) {
|
||||||
|
function ansico_render_profile_extensions( $user ) {
|
||||||
|
$networks = function_exists( 'ansico_get_social_networks_v2' ) ? ansico_get_social_networks_v2() : array();
|
||||||
|
$custom_avatar_id = (int) get_user_meta( $user->ID, 'ansico_custom_avatar_id', true );
|
||||||
|
$preview_image = $custom_avatar_id ? wp_get_attachment_image( $custom_avatar_id, array( 96, 96 ), false, array( 'style' => 'width:96px;height:96px;border-radius:999px;object-fit:cover;display:block;' ) ) : '';
|
||||||
|
?>
|
||||||
|
<table class="form-table" role="presentation">
|
||||||
|
<tbody>
|
||||||
|
<tr class="ansico-custom-avatar-field">
|
||||||
|
<th><?php esc_html_e( 'Custom profile image', 'ansico' ); ?></th>
|
||||||
|
<td>
|
||||||
|
<p class="description"><?php esc_html_e( 'Upload your own profile image if you do not want to use Gravatar.', 'ansico' ); ?></p>
|
||||||
|
<div class="ansico-custom-avatar-preview" style="margin:10px 0;"><?php echo $preview_image; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
|
||||||
|
<input type="hidden" class="ansico-custom-avatar-id" name="ansico_custom_avatar_id" value="<?php echo esc_attr( $custom_avatar_id ); ?>" />
|
||||||
|
<button type="button" class="button ansico-upload-avatar-button"><?php esc_html_e( 'Upload image', 'ansico' ); ?></button>
|
||||||
|
<button type="button" class="button ansico-remove-avatar-button"><?php esc_html_e( 'Remove image', 'ansico' ); ?></button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th colspan="2" style="padding-top:18px;"><?php esc_html_e( 'Social profiles', 'ansico' ); ?></th>
|
||||||
|
</tr>
|
||||||
|
<?php foreach ( $networks as $key => $network ) : ?>
|
||||||
|
<tr>
|
||||||
|
<th><label for="<?php echo esc_attr( 'ansico_' . $key ); ?>"><?php echo esc_html( $network['label'] ); ?></label></th>
|
||||||
|
<td>
|
||||||
|
<input type="url" name="<?php echo esc_attr( 'ansico_' . $key ); ?>" id="<?php echo esc_attr( 'ansico_' . $key ); ?>" value="<?php echo esc_attr( get_user_meta( $user->ID, 'ansico_' . $key, true ) ); ?>" class="regular-text" />
|
||||||
|
<br />
|
||||||
|
<label for="<?php echo esc_attr( 'ansico_show_' . $key ); ?>">
|
||||||
|
<input type="checkbox" name="<?php echo esc_attr( 'ansico_show_' . $key ); ?>" id="<?php echo esc_attr( 'ansico_show_' . $key ); ?>" value="1" <?php checked( get_user_meta( $user->ID, 'ansico_show_' . $key, true ), '1' ); ?> />
|
||||||
|
<?php esc_html_e( 'Show on profile', 'ansico' ); ?>
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
add_action( 'show_user_profile', 'ansico_render_profile_extensions', 99 );
|
||||||
|
add_action( 'edit_user_profile', 'ansico_render_profile_extensions', 99 );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_save_profile_extensions' ) ) {
|
||||||
|
function ansico_save_profile_extensions( $user_id ) {
|
||||||
|
if ( ! current_user_can( 'edit_user', $user_id ) ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( isset( $_POST['ansico_custom_avatar_id'] ) ) {
|
||||||
|
update_user_meta( $user_id, 'ansico_custom_avatar_id', absint( $_POST['ansico_custom_avatar_id'] ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
$networks = function_exists( 'ansico_get_social_networks_v2' ) ? ansico_get_social_networks_v2() : array();
|
||||||
|
|
||||||
|
foreach ( $networks as $key => $network ) {
|
||||||
|
$url_key = 'ansico_' . $key;
|
||||||
|
$show_key = 'ansico_show_' . $key;
|
||||||
|
|
||||||
|
if ( isset( $_POST[ $url_key ] ) ) {
|
||||||
|
update_user_meta( $user_id, $url_key, esc_url_raw( wp_unslash( $_POST[ $url_key ] ) ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
update_user_meta( $user_id, $show_key, isset( $_POST[ $show_key ] ) ? '1' : '0' );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_action( 'personal_options_update', 'ansico_save_profile_extensions', 99 );
|
||||||
|
add_action( 'edit_user_profile_update', 'ansico_save_profile_extensions', 99 );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_filter_author_avatar_shortcode_v2' ) ) {
|
||||||
|
function ansico_filter_author_avatar_shortcode_v2( $output ) {
|
||||||
|
if ( ! is_author() ) {
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
|
||||||
|
$author = get_queried_object();
|
||||||
|
if ( ! $author || empty( $author->ID ) ) {
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
|
||||||
|
$name = get_the_author_meta( 'display_name', (int) $author->ID );
|
||||||
|
$avatar = ansico_get_author_avatar_html( (int) $author->ID, 120, $name );
|
||||||
|
|
||||||
|
$output = preg_replace(
|
||||||
|
'#<div class="ansico-author-intro__avatar">.*?</div>#s',
|
||||||
|
'<div class="ansico-author-intro__avatar">' . $avatar . '</div>',
|
||||||
|
$output,
|
||||||
|
1
|
||||||
|
);
|
||||||
|
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
add_filter( 'do_shortcode_tag', function( $output, $tag, $attr ) {
|
||||||
|
if ( 'ansico_author_intro_v2' === $tag && function_exists( 'ansico_filter_author_avatar_shortcode_v2' ) ) {
|
||||||
|
return ansico_filter_author_avatar_shortcode_v2( $output );
|
||||||
|
}
|
||||||
|
return $output;
|
||||||
|
}, 10, 3 );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if ( ! function_exists( 'ansico_hide_legacy_contact_methods' ) ) {
|
||||||
|
function ansico_hide_legacy_contact_methods( $methods ) {
|
||||||
|
$legacy_keys = array(
|
||||||
|
'facebook',
|
||||||
|
'linkedin',
|
||||||
|
'instagram',
|
||||||
|
'bluesky',
|
||||||
|
'twitter',
|
||||||
|
'mastodon',
|
||||||
|
'friendica',
|
||||||
|
'reddit',
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach ( $legacy_keys as $key ) {
|
||||||
|
if ( isset( $methods[ $key ] ) ) {
|
||||||
|
unset( $methods[ $key ] );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $methods;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_filter( 'user_contactmethods', 'ansico_hide_legacy_contact_methods', 9999 );
|
||||||
|
|
||||||
BIN
ansico-wp-theme/functions.php:Zone.Identifier
Normal file
BIN
ansico-wp-theme/functions.php:Zone.Identifier
Normal file
Binary file not shown.
5
ansico-wp-theme/parts/footer.html
Normal file
5
ansico-wp-theme/parts/footer.html
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<!-- wp:group {"className":"ansico-footer","style":{"spacing":{"padding":{"top":"20px","bottom":"20px"}}},"backgroundColor":"primary","layout":{"type":"flex","justifyContent":"center"}} -->
|
||||||
|
<div class="wp-block-group ansico-footer has-primary-background-color has-background" style="padding-top:20px;padding-bottom:20px"><!-- wp:paragraph {"align":"center"} -->
|
||||||
|
<p class="has-text-align-center">© 2026 Ansico</p>
|
||||||
|
<!-- /wp:paragraph --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
BIN
ansico-wp-theme/parts/footer.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/parts/footer.html:Zone.Identifier
Normal file
Binary file not shown.
11
ansico-wp-theme/parts/header.html
Normal file
11
ansico-wp-theme/parts/header.html
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!-- wp:group {"className":"ansico-header-shell","backgroundColor":"base","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group ansico-header-shell has-base-background-color has-background"><!-- wp:group {"className":"ansico-title-wrap","align":"wide","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group ansico-title-wrap alignwide"><!-- wp:site-title {"level":1,"textAlign":"center","style":{"typography":{"fontSize":"3.6rem","fontWeight":"700"}}} /--></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:group {"className":"ansico-main-nav-wrap","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group ansico-main-nav-wrap"><!-- wp:navigation {"className":"ansico-main-nav","layout":{"type":"flex","justifyContent":"center","flexWrap":"wrap"},"style":{"spacing":{"blockGap":"0.9rem"}}} -->
|
||||||
|
<!-- wp:navigation-link {"label":"Home","type":"custom","url":"/","kind":"custom","isTopLevelLink":true,"title":"Home"} /-->
|
||||||
|
<!-- /wp:navigation --></div>
|
||||||
|
<!-- /wp:group --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
BIN
ansico-wp-theme/parts/header.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/parts/header.html:Zone.Identifier
Normal file
Binary file not shown.
17
ansico-wp-theme/parts/sidebar.html
Normal file
17
ansico-wp-theme/parts/sidebar.html
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"}},"border":{"width":"1px"}},"borderColor":"border","backgroundColor":"subtle","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group has-border-color has-border-border-color has-subtle-background-color has-background" style="border-width:1px;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"><!-- wp:heading {"level":3,"fontSize":"medium"} -->
|
||||||
|
<h3 class="wp-block-heading has-medium-font-size">Søg</h3>
|
||||||
|
<!-- /wp:heading -->
|
||||||
|
|
||||||
|
<!-- wp:search {"label":"Søg","showLabel":false,"buttonText":"Søg","buttonPosition":"button-inside","buttonUseIcon":false} /-->
|
||||||
|
|
||||||
|
<!-- wp:spacer {"height":"1.25rem"} -->
|
||||||
|
<div style="height:1.25rem" aria-hidden="true" class="wp-block-spacer"></div>
|
||||||
|
<!-- /wp:spacer -->
|
||||||
|
|
||||||
|
<!-- wp:heading {"level":3,"fontSize":"medium"} -->
|
||||||
|
<h3 class="wp-block-heading has-medium-font-size">Seneste indlæg</h3>
|
||||||
|
<!-- /wp:heading -->
|
||||||
|
|
||||||
|
<!-- wp:latest-posts {"postsToShow":5,"displayPostDate":true} /--></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
BIN
ansico-wp-theme/parts/sidebar.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/parts/sidebar.html:Zone.Identifier
Normal file
Binary file not shown.
64
ansico-wp-theme/readme.txt
Normal file
64
ansico-wp-theme/readme.txt
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
=== Ansico WP Theme ===
|
||||||
|
Contributors: aphandersen
|
||||||
|
Requires at least: 6.5
|
||||||
|
Tested up to: 6.8
|
||||||
|
Requires PHP: 7.4
|
||||||
|
Version: 1.0.0
|
||||||
|
License: GPLv3 or later
|
||||||
|
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
Tags: blog, two-columns, right-sidebar, featured-images, custom-menu, full-site-editing, editor-style, block-styles
|
||||||
|
|
||||||
|
A clean block theme for editorial and professional WordPress sites, with a centered site title, structured navigation, archive-style post listings, author pages, and sidebar layout.
|
||||||
|
|
||||||
|
== Description ==
|
||||||
|
|
||||||
|
Ansico WP Theme is a block theme built for content-focused WordPress sites.
|
||||||
|
|
||||||
|
Features include:
|
||||||
|
* Centered site title and structured main navigation
|
||||||
|
* Front page and archive views with featured image support
|
||||||
|
* Single post layout with author metadata, categories, and tags
|
||||||
|
* Author pages with avatar, bio, website, and social profile links
|
||||||
|
* Sidebar layout for pages, archives, and author views
|
||||||
|
* Included Source Sans 3 webfonts bundled locally in the theme
|
||||||
|
* Screenshot included for Appearance > Themes
|
||||||
|
|
||||||
|
== Installation ==
|
||||||
|
|
||||||
|
1. Upload the theme ZIP in **Appearance > Themes > Add New > Upload Theme**.
|
||||||
|
2. Activate the theme.
|
||||||
|
3. Optionally customize templates and styles in the Site Editor.
|
||||||
|
|
||||||
|
== Frequently Asked Questions ==
|
||||||
|
|
||||||
|
= Does the theme load remote assets? =
|
||||||
|
|
||||||
|
No. Fonts and assets are bundled locally in the theme.
|
||||||
|
|
||||||
|
= Is this a block theme? =
|
||||||
|
|
||||||
|
Yes. This is a block theme using HTML templates and theme.json.
|
||||||
|
|
||||||
|
== Changelog ==
|
||||||
|
|
||||||
|
= 0.0.0.62 =
|
||||||
|
* Prepared package for WordPress Theme Directory submission
|
||||||
|
* Updated theme license metadata to GPLv3 or later
|
||||||
|
* Improved readme.txt for directory-style packaging
|
||||||
|
|
||||||
|
== Resources ==
|
||||||
|
|
||||||
|
Bundled font:
|
||||||
|
* Source Sans 3, distributed under the SIL Open Font License 1.1
|
||||||
|
* https://openfontlicense.org
|
||||||
|
|
||||||
|
Screenshot:
|
||||||
|
* Included as screenshot.png
|
||||||
|
* Based on the theme itself
|
||||||
|
|
||||||
|
== Copyright ==
|
||||||
|
|
||||||
|
Ansico WP Theme
|
||||||
|
Copyright 2026 Andreas Andersen (Ansico)
|
||||||
|
|
||||||
|
This theme is licensed under the GNU General Public License v3 or later.
|
||||||
BIN
ansico-wp-theme/readme.txt:Zone.Identifier
Normal file
BIN
ansico-wp-theme/readme.txt:Zone.Identifier
Normal file
Binary file not shown.
BIN
ansico-wp-theme/screenshot.png
Normal file
BIN
ansico-wp-theme/screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 167 KiB |
BIN
ansico-wp-theme/screenshot.png:Zone.Identifier
Normal file
BIN
ansico-wp-theme/screenshot.png:Zone.Identifier
Normal file
Binary file not shown.
1140
ansico-wp-theme/style.css
Normal file
1140
ansico-wp-theme/style.css
Normal file
File diff suppressed because it is too large
Load diff
BIN
ansico-wp-theme/style.css:Zone.Identifier
Normal file
BIN
ansico-wp-theme/style.css:Zone.Identifier
Normal file
Binary file not shown.
35
ansico-wp-theme/templates/archive.html
Normal file
35
ansico-wp-theme/templates/archive.html
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
<!-- wp:template-part {"slug":"header","theme":"ansico-wp-theme","tagName":"header"} /-->
|
||||||
|
|
||||||
|
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|40","bottom":"var:preset|spacing|60","left":"var:preset|spacing|40"}}}} -->
|
||||||
|
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--40)"><!-- wp:columns {"verticalAlignment":"top","align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
|
||||||
|
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:70%"><!-- wp:query-title {"type":"archive","showPrefix":true} /-->
|
||||||
|
|
||||||
|
<!-- wp:term-description /-->
|
||||||
|
|
||||||
|
<!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","inherit":true},"layout":{"type":"default"}} -->
|
||||||
|
<div class="wp-block-query"><!-- wp:post-template -->
|
||||||
|
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||||
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"},"margin":{"bottom":"var:preset|spacing|50"}},"border":{"width":"1px"}},"borderColor":"border","backgroundColor":"base","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group has-border-color has-border-border-color has-base-background-color has-background" style="border-width:1px;margin-bottom:var(--wp--preset--spacing--50);padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"><!-- wp:post-title {"isLink":true} /-->
|
||||||
|
|
||||||
|
<!-- wp:post-excerpt /-->
|
||||||
|
</div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
<!-- /wp:post-template -->
|
||||||
|
|
||||||
|
<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
||||||
|
<!-- wp:query-pagination-previous /-->
|
||||||
|
<!-- wp:query-pagination-numbers /-->
|
||||||
|
<!-- wp:query-pagination-next /-->
|
||||||
|
<!-- /wp:query-pagination --></div>
|
||||||
|
<!-- /wp:query --></div>
|
||||||
|
<!-- /wp:column -->
|
||||||
|
|
||||||
|
<!-- wp:column {"verticalAlignment":"top","width":"30%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:30%"><!-- wp:template-part {"slug":"sidebar","theme":"ansico-wp-theme"} /--></div>
|
||||||
|
<!-- /wp:column --></div>
|
||||||
|
<!-- /wp:columns --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:template-part {"slug":"footer","theme":"ansico-wp-theme","tagName":"footer"} /-->
|
||||||
BIN
ansico-wp-theme/templates/archive.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/templates/archive.html:Zone.Identifier
Normal file
Binary file not shown.
39
ansico-wp-theme/templates/author.html
Normal file
39
ansico-wp-theme/templates/author.html
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
<!-- wp:template-part {"slug":"header","theme":"ansico-wp-theme","tagName":"header"} /-->
|
||||||
|
|
||||||
|
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|40","bottom":"var:preset|spacing|60","left":"var:preset|spacing|40"}}}} -->
|
||||||
|
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--40)"><!-- wp:columns {"verticalAlignment":"top","align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
|
||||||
|
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:70%"><!-- wp:shortcode -->
|
||||||
|
[ansico_author_intro_v2]
|
||||||
|
<!-- /wp:shortcode -->
|
||||||
|
|
||||||
|
<!-- wp:heading {"level":2} -->
|
||||||
|
<h2>Articles</h2>
|
||||||
|
<!-- /wp:heading -->
|
||||||
|
|
||||||
|
<!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","inherit":true},"layout":{"type":"default"}} -->
|
||||||
|
<div class="wp-block-query"><!-- wp:post-template -->
|
||||||
|
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||||
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"},"margin":{"bottom":"var:preset|spacing|50"}},"border":{"width":"1px"}},"borderColor":"border","backgroundColor":"base","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group has-border-color has-border-border-color has-base-background-color has-background" style="border-width:1px;margin-bottom:var(--wp--preset--spacing--50);padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"><!-- wp:post-title {"isLink":true} /-->
|
||||||
|
|
||||||
|
<!-- wp:post-excerpt /-->
|
||||||
|
</div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
<!-- /wp:post-template -->
|
||||||
|
|
||||||
|
<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
||||||
|
<!-- wp:query-pagination-previous /-->
|
||||||
|
<!-- wp:query-pagination-numbers /-->
|
||||||
|
<!-- wp:query-pagination-next /-->
|
||||||
|
<!-- /wp:query-pagination --></div>
|
||||||
|
<!-- /wp:query --></div>
|
||||||
|
<!-- /wp:column -->
|
||||||
|
|
||||||
|
<!-- wp:column {"verticalAlignment":"top","width":"30%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:30%"><!-- wp:template-part {"slug":"sidebar","theme":"ansico-wp-theme"} /--></div>
|
||||||
|
<!-- /wp:column --></div>
|
||||||
|
<!-- /wp:columns --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:template-part {"slug":"footer","theme":"ansico-wp-theme","tagName":"footer"} /-->
|
||||||
BIN
ansico-wp-theme/templates/author.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/templates/author.html:Zone.Identifier
Normal file
Binary file not shown.
30
ansico-wp-theme/templates/front-page.html
Normal file
30
ansico-wp-theme/templates/front-page.html
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
<!-- wp:template-part {"slug":"header","theme":"ansico-wp-theme","tagName":"header"} /-->
|
||||||
|
|
||||||
|
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|40","bottom":"var:preset|spacing|60","left":"var:preset|spacing|40"}}}} -->
|
||||||
|
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--40)"><!-- wp:columns {"verticalAlignment":"top","align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
|
||||||
|
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:70%"><!-- wp:query {"queryId":1,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","inherit":false},"displayLayout":{"type":"list"},"layout":{"type":"default"}} -->
|
||||||
|
<div class="wp-block-query"><!-- wp:post-template -->
|
||||||
|
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||||
|
<!-- wp:group {"className":"ansico-post-list-text","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group ansico-post-list-text"><!-- wp:post-title {"isLink":true} /-->
|
||||||
|
<!-- wp:post-date /-->
|
||||||
|
<!-- wp:post-excerpt {"moreText":"","excerptLength":35} /--></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
<!-- /wp:post-template -->
|
||||||
|
|
||||||
|
<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
||||||
|
<!-- wp:query-pagination-previous /-->
|
||||||
|
<!-- wp:query-pagination-numbers /-->
|
||||||
|
<!-- wp:query-pagination-next /-->
|
||||||
|
<!-- /wp:query-pagination --></div>
|
||||||
|
<!-- /wp:query --></div>
|
||||||
|
<!-- /wp:column -->
|
||||||
|
|
||||||
|
<!-- wp:column {"verticalAlignment":"top","width":"30%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:30%"><!-- wp:template-part {"slug":"sidebar","theme":"ansico-wp-theme"} /--></div>
|
||||||
|
<!-- /wp:column --></div>
|
||||||
|
<!-- /wp:columns --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:template-part {"slug":"footer","theme":"ansico-wp-theme","tagName":"footer"} /-->
|
||||||
BIN
ansico-wp-theme/templates/front-page.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/templates/front-page.html:Zone.Identifier
Normal file
Binary file not shown.
28
ansico-wp-theme/templates/home.html
Normal file
28
ansico-wp-theme/templates/home.html
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
<!-- wp:template-part {"slug":"header","theme":"ansico-wp-theme","tagName":"header"} /-->
|
||||||
|
|
||||||
|
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|40","bottom":"var:preset|spacing|60","left":"var:preset|spacing|40"}}}} -->
|
||||||
|
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--40)"><!-- wp:columns {"verticalAlignment":"top","align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
|
||||||
|
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:70%"><!-- wp:query {"queryId":1,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","inherit":false},"displayLayout":{"type":"list"},"layout":{"type":"default"}} -->
|
||||||
|
<div class="wp-block-query"><!-- wp:post-template -->
|
||||||
|
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||||
|
<!-- wp:post-title {"isLink":true} /-->
|
||||||
|
<!-- wp:post-date /-->
|
||||||
|
<!-- wp:post-excerpt {"moreText":"","excerptLength":35} /-->
|
||||||
|
<!-- /wp:post-template -->
|
||||||
|
|
||||||
|
<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
||||||
|
<!-- wp:query-pagination-previous /-->
|
||||||
|
<!-- wp:query-pagination-numbers /-->
|
||||||
|
<!-- wp:query-pagination-next /-->
|
||||||
|
<!-- /wp:query-pagination --></div>
|
||||||
|
<!-- /wp:query --></div>
|
||||||
|
<!-- /wp:column -->
|
||||||
|
|
||||||
|
<!-- wp:column {"verticalAlignment":"top","width":"30%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:30%"><!-- wp:template-part {"slug":"sidebar","theme":"ansico-wp-theme"} /--></div>
|
||||||
|
<!-- /wp:column --></div>
|
||||||
|
<!-- /wp:columns --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:template-part {"slug":"footer","theme":"ansico-wp-theme","tagName":"footer"} /-->
|
||||||
BIN
ansico-wp-theme/templates/home.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/templates/home.html:Zone.Identifier
Normal file
Binary file not shown.
31
ansico-wp-theme/templates/index.html
Normal file
31
ansico-wp-theme/templates/index.html
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
<!-- wp:template-part {"slug":"header","theme":"ansico-wp-theme","tagName":"header"} /-->
|
||||||
|
|
||||||
|
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|40","bottom":"var:preset|spacing|60","left":"var:preset|spacing|40"}}}} -->
|
||||||
|
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--40)"><!-- wp:columns {"verticalAlignment":"top","align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
|
||||||
|
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:70%"><!-- wp:query-title {"type":"archive","showPrefix":false} /-->
|
||||||
|
|
||||||
|
<!-- wp:post-template -->
|
||||||
|
<!-- wp:post-featured-image {"isLink":true} /-->
|
||||||
|
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"},"margin":{"bottom":"var:preset|spacing|50"}},"border":{"width":"1px"}},"borderColor":"border","backgroundColor":"base","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group has-border-color has-border-border-color has-base-background-color has-background" style="border-width:1px;margin-bottom:var(--wp--preset--spacing--50);padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"><!-- wp:post-title {"isLink":true} /-->
|
||||||
|
|
||||||
|
<!-- wp:post-excerpt /-->
|
||||||
|
</div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
<!-- /wp:post-template -->
|
||||||
|
|
||||||
|
<!-- wp:query-pagination {"layout":{"type":"flex","justifyContent":"space-between"}} -->
|
||||||
|
<!-- wp:query-pagination-previous /-->
|
||||||
|
<!-- wp:query-pagination-numbers /-->
|
||||||
|
<!-- wp:query-pagination-next /-->
|
||||||
|
<!-- /wp:query-pagination --></div>
|
||||||
|
<!-- /wp:column -->
|
||||||
|
|
||||||
|
<!-- wp:column {"verticalAlignment":"top","width":"30%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:30%"><!-- wp:template-part {"slug":"sidebar","theme":"ansico-wp-theme"} /--></div>
|
||||||
|
<!-- /wp:column --></div>
|
||||||
|
<!-- /wp:columns --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:template-part {"slug":"footer","theme":"ansico-wp-theme","tagName":"footer"} /-->
|
||||||
BIN
ansico-wp-theme/templates/index.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/templates/index.html:Zone.Identifier
Normal file
Binary file not shown.
19
ansico-wp-theme/templates/page.html
Normal file
19
ansico-wp-theme/templates/page.html
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<!-- wp:template-part {"slug":"header","theme":"ansico-wp-theme","tagName":"header"} /-->
|
||||||
|
|
||||||
|
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|40","bottom":"var:preset|spacing|60","left":"var:preset|spacing|40"}}}} -->
|
||||||
|
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--40)"><!-- wp:columns {"verticalAlignment":"top","align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
|
||||||
|
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:70%"><!-- wp:group {"style":{"spacing":{"padding":{"top":"0","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"}},"border":{"width":"1px"}},"borderColor":"border","backgroundColor":"base","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group has-border-color has-border-border-color has-base-background-color has-background" style="border-width:1px;padding-top:0;padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"><!-- wp:post-title /-->
|
||||||
|
|
||||||
|
<!-- wp:post-content {"layout":{"type":"constrained"}} /--></div>
|
||||||
|
<!-- /wp:group --></div>
|
||||||
|
<!-- /wp:column -->
|
||||||
|
|
||||||
|
<!-- wp:column {"verticalAlignment":"top","width":"30%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:30%"><!-- wp:template-part {"slug":"sidebar","theme":"ansico-wp-theme"} /--></div>
|
||||||
|
<!-- /wp:column --></div>
|
||||||
|
<!-- /wp:columns --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:template-part {"slug":"footer","theme":"ansico-wp-theme","tagName":"footer"} /-->
|
||||||
BIN
ansico-wp-theme/templates/page.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/templates/page.html:Zone.Identifier
Normal file
Binary file not shown.
42
ansico-wp-theme/templates/single.html
Normal file
42
ansico-wp-theme/templates/single.html
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
<!-- wp:template-part {"slug":"header","theme":"ansico-wp-theme","tagName":"header"} /-->
|
||||||
|
|
||||||
|
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|40","bottom":"var:preset|spacing|60","left":"var:preset|spacing|40"}}}} -->
|
||||||
|
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--40)"><!-- wp:columns {"verticalAlignment":"top","align":"wide","style":{"spacing":{"blockGap":{"left":"var:preset|spacing|50"}}}} -->
|
||||||
|
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:70%"><!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"}},"border":{"width":"1px"}},"borderColor":"border","backgroundColor":"base","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group has-border-color has-border-border-color has-base-background-color has-background" style="border-width:1px;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"><!-- wp:post-title {"level":1} /-->
|
||||||
|
<!-- wp:group {"className":"ansico-post-meta","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"left","verticalAlignment":"center"}} -->
|
||||||
|
<div class="wp-block-group ansico-post-meta"><!-- wp:post-date /-->
|
||||||
|
<!-- wp:paragraph -->
|
||||||
|
<p>•</p>
|
||||||
|
<!-- /wp:paragraph -->
|
||||||
|
<!-- wp:post-author {"showAvatar":false,"showBio":false,"byline":"By ","isLink":true} /--></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:post-featured-image {"style":{"spacing":{"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}}} /-->
|
||||||
|
|
||||||
|
<!-- wp:post-content {"layout":{"type":"constrained"}} /-->
|
||||||
|
<!-- wp:group {"className":"ansico-post-taxonomy","layout":{"type":"constrained"}} -->
|
||||||
|
<div class="wp-block-group ansico-post-taxonomy"><!-- wp:group {"className":"ansico-post-taxonomy-row","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left","verticalAlignment":"top"}} -->
|
||||||
|
<div class="wp-block-group ansico-post-taxonomy-row">
|
||||||
|
<!-- wp:post-terms {"term":"category","prefix":"<strong>Categories:</strong> "} /--></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:group {"className":"ansico-post-taxonomy-row","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left","verticalAlignment":"top"}} -->
|
||||||
|
<div class="wp-block-group ansico-post-taxonomy-row">
|
||||||
|
<!-- wp:post-terms {"term":"post_tag","prefix":"<strong>Tags:</strong> "} /--></div>
|
||||||
|
<!-- /wp:group --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
</div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:comments /--></div>
|
||||||
|
<!-- /wp:column -->
|
||||||
|
|
||||||
|
<!-- wp:column {"verticalAlignment":"top","width":"30%"} -->
|
||||||
|
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:30%"><!-- wp:template-part {"slug":"sidebar","theme":"ansico-wp-theme"} /--></div>
|
||||||
|
<!-- /wp:column --></div>
|
||||||
|
<!-- /wp:columns --></div>
|
||||||
|
<!-- /wp:group -->
|
||||||
|
|
||||||
|
<!-- wp:template-part {"slug":"footer","theme":"ansico-wp-theme","tagName":"footer"} /-->
|
||||||
BIN
ansico-wp-theme/templates/single.html:Zone.Identifier
Normal file
BIN
ansico-wp-theme/templates/single.html:Zone.Identifier
Normal file
Binary file not shown.
109
ansico-wp-theme/theme.json
Normal file
109
ansico-wp-theme/theme.json
Normal file
|
|
@ -0,0 +1,109 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://schemas.wp.org/trunk/theme.json",
|
||||||
|
"version": 3,
|
||||||
|
"settings": {
|
||||||
|
"appearanceTools": true,
|
||||||
|
"layout": {
|
||||||
|
"contentSize": "760px",
|
||||||
|
"wideSize": "1200px"
|
||||||
|
},
|
||||||
|
"color": {
|
||||||
|
"defaultPalette": false,
|
||||||
|
"defaultGradients": false,
|
||||||
|
"palette": [
|
||||||
|
{ "slug": "primary", "name": "LinkedIn Blue", "color": "#0a66c2" },
|
||||||
|
{ "slug": "primary-dark", "name": "Primary Dark", "color": "#084b8a" },
|
||||||
|
{ "slug": "base", "name": "Base", "color": "#ffffff" },
|
||||||
|
{ "slug": "contrast", "name": "Contrast", "color": "#000000" },
|
||||||
|
{ "slug": "border", "name": "Border", "color": "#cfd6df" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"spacing": {
|
||||||
|
"units": ["px", "em", "rem", "%", "vh", "vw"],
|
||||||
|
"blockGap": true,
|
||||||
|
"spacingSizes": [
|
||||||
|
{ "slug": "20", "size": "0.5rem", "name": "XS" },
|
||||||
|
{ "slug": "30", "size": "0.875rem", "name": "S" },
|
||||||
|
{ "slug": "40", "size": "1.25rem", "name": "M" },
|
||||||
|
{ "slug": "50", "size": "2rem", "name": "L" },
|
||||||
|
{ "slug": "60", "size": "3rem", "name": "XL" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"typography": {
|
||||||
|
"defaultFontSizes": false,
|
||||||
|
"fontFamilies": [
|
||||||
|
{
|
||||||
|
"fontFamily": "'Source Sans 3', sans-serif",
|
||||||
|
"name": "Source Sans 3",
|
||||||
|
"slug": "source-sans-3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fontSizes": [
|
||||||
|
{ "slug": "small", "size": "1rem", "name": "Small" },
|
||||||
|
{ "slug": "medium", "size": "1.125rem", "name": "Medium" },
|
||||||
|
{ "slug": "large", "size": "1.5rem", "name": "Large" },
|
||||||
|
{ "slug": "x-large", "size": "2.25rem", "name": "XL" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"styles": {
|
||||||
|
"color": {
|
||||||
|
"background": "#ffffff",
|
||||||
|
"text": "#000000"
|
||||||
|
},
|
||||||
|
"typography": {
|
||||||
|
"fontFamily": "var(--wp--preset--font-family--source-sans-3)",
|
||||||
|
"fontSize": "1.125rem",
|
||||||
|
"lineHeight": "1.65"
|
||||||
|
},
|
||||||
|
"elements": {
|
||||||
|
"heading": {
|
||||||
|
"color": { "text": "#0a66c2" },
|
||||||
|
"typography": {
|
||||||
|
"fontWeight": "700",
|
||||||
|
"lineHeight": "1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"link": {
|
||||||
|
"color": { "text": "#0a66c2" }
|
||||||
|
},
|
||||||
|
"button": {
|
||||||
|
"color": {
|
||||||
|
"background": "#0a66c2",
|
||||||
|
"text": "#ffffff"
|
||||||
|
},
|
||||||
|
"border": { "radius": "0px" },
|
||||||
|
"spacing": {
|
||||||
|
"padding": {
|
||||||
|
"top": "0.75rem",
|
||||||
|
"bottom": "0.75rem",
|
||||||
|
"left": "1rem",
|
||||||
|
"right": "1rem"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"typography": { "fontWeight": "600" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"blocks": {
|
||||||
|
"core/group": {
|
||||||
|
"border": { "radius": "0px" }
|
||||||
|
},
|
||||||
|
"core/navigation": {
|
||||||
|
"typography": { "fontWeight": "600" }
|
||||||
|
},
|
||||||
|
"core/search": {
|
||||||
|
"border": { "radius": "0px" }
|
||||||
|
},
|
||||||
|
"core/post-title": {
|
||||||
|
"typography": {
|
||||||
|
"fontSize": "clamp(2rem, 4vw, 2.75rem)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"templateParts": [
|
||||||
|
{ "name": "header", "title": "Header", "area": "header" },
|
||||||
|
{ "name": "footer", "title": "Footer", "area": "footer" },
|
||||||
|
{ "name": "sidebar", "title": "Sidebar", "area": "uncategorized" }
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
ansico-wp-theme/theme.json:Zone.Identifier
Normal file
BIN
ansico-wp-theme/theme.json:Zone.Identifier
Normal file
Binary file not shown.
Loading…
Reference in a new issue