🔵 other: Initial WP conversion from Eleventy
Sync TODOs with Issues / sync_todos (push) Successful in 7s
Sync TODOs with Issues / sync_todos (push) Successful in 7s
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"style": [
|
||||
"file:./boilerplate.css"
|
||||
],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "block-default",
|
||||
"keywords": [
|
||||
"boilerplate"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "acf/button",
|
||||
"title": "Button (VDI)",
|
||||
"description": "A button.",
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "button",
|
||||
"keywords": [
|
||||
"button"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"title": "Buttons (VDI)",
|
||||
"description": "A button or group of buttons.",
|
||||
"allowedBlocks": [ "acf/button" ],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "button",
|
||||
"keywords": [
|
||||
"buttons"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"style": [
|
||||
"file:./contact-info.css"
|
||||
],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "feedback",
|
||||
"keywords": [
|
||||
"contact info",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"style": [
|
||||
"file:./grid-cell.css"
|
||||
],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "grid-view",
|
||||
"keywords": [
|
||||
"grid"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"file:./grid.css"
|
||||
],
|
||||
"allowedBlocks": [ "acf/grid-cell" ],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "grid-view",
|
||||
"keywords": [
|
||||
"grid"
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace BasicWP;
|
||||
|
||||
$allowedBlocks = array( 'acf/grid-cell' );
|
||||
$default_blocks = array(
|
||||
array( 'acf/gric-cell' ),
|
||||
array( 'acf/grid-cell' ),
|
||||
);
|
||||
|
||||
// Initialize variables
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"style": [
|
||||
"file:./homepage-hero.css"
|
||||
],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "block-default",
|
||||
"keywords": [
|
||||
"homepage-hero",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"style": [
|
||||
"file:./media-text-innerblocks.css"
|
||||
],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "screenoptions",
|
||||
"keywords": [
|
||||
"media",
|
||||
|
||||
@@ -39,7 +39,7 @@ if ( $vidBlock && strpos( $vidBlock, '<iframe' ) !== false ) {
|
||||
?>
|
||||
|
||||
<div <?php echo wp_kses_post( $wrapper ); ?> style="<?php echo esc_attr( $style ); ?>">
|
||||
<div class="<?php echo esc_attr( $mediaClass ); ?> <?php echo $vidBlock ? 'aspect-video' : ''; ?>">
|
||||
<div class="<?php echo esc_attr( $clsMedia ); ?> <?php echo $vidBlock ? 'aspect-video' : ''; ?>">
|
||||
<?php if ( $vidBlock ) : ?>
|
||||
<?php echo wp_kses( $vidBlock, escEmbeds() ); ?>
|
||||
<?php else : ?>
|
||||
@@ -47,7 +47,7 @@ if ( $vidBlock && strpos( $vidBlock, '<iframe' ) !== false ) {
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="content-wrapper text-balance <?php echo esc_attr( $contentClass ); ?>">
|
||||
<div class="content-wrapper text-balance <?php echo esc_attr( $clsContent ); ?>">
|
||||
<InnerBlocks />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"style": [
|
||||
"file:./media-text.css"
|
||||
],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "screenoptions",
|
||||
"keywords": [
|
||||
"media",
|
||||
|
||||
@@ -78,14 +78,14 @@ if ( $vidBlock && strpos( $vidBlock, '<iframe' ) !== false ) {
|
||||
$ctaWidth = $cta['width'] ?? '';
|
||||
|
||||
// Handle admin preview
|
||||
if ( is_admin() && $ctaURL ) {
|
||||
$ctaURL = '#';
|
||||
if ( is_admin() && $ctaUrl ) {
|
||||
$ctaUrl = '#';
|
||||
}
|
||||
?>
|
||||
<x-button
|
||||
btnclasses="button text-center"
|
||||
element="a"
|
||||
url="<?php echo esc_url( $ctaURL ); ?>"
|
||||
url="<?php echo esc_url( $ctaUrl ); ?>"
|
||||
target="<?php echo esc_attr( $ctaTarget ); ?>"
|
||||
title="<?php echo esc_attr( $ctaTitle ); ?>"
|
||||
color="<?php echo esc_attr( $ctaColor ); ?>"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"style": [
|
||||
"file:./page-children.css"
|
||||
],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "block-default",
|
||||
"keywords": [
|
||||
"page-children"
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
"style": [
|
||||
"file:./section.css"
|
||||
],
|
||||
"category": "vdi-blocks",
|
||||
"category": "go-ask-auntie-blocks",
|
||||
"icon": "align-wide",
|
||||
"keywords": [
|
||||
"setion",
|
||||
"section",
|
||||
"content"
|
||||
],
|
||||
"acf": {
|
||||
|
||||
@@ -1,39 +1,19 @@
|
||||
<?php
|
||||
/**
|
||||
* Social Media Links Partial
|
||||
* Social Media Links Partial - Auntie style
|
||||
*
|
||||
* @package BasicWP
|
||||
* @package GoAskAuntie
|
||||
*/
|
||||
|
||||
namespace BasicWP;
|
||||
|
||||
$classes = $args['classes'] ?? '';
|
||||
$circle = $args['circle'] ?? '';
|
||||
|
||||
// Define social media sites and their URLs
|
||||
$sites = array(
|
||||
'facebook' => getFieldValue( 'social_media.facebook' ) ? getFieldValue( 'social_media.facebook' ) : '',
|
||||
'twitter' => getFieldValue( 'social_media.twitter' ) ? getFieldValue( 'social_media.twitter' ) : '',
|
||||
'pinterest' => getFieldValue( 'social_media.pinterest' ) ? getFieldValue( 'social_media.pinterest' ) : '',
|
||||
'instagram' => getFieldValue( 'social_media.instagram' ) ? getFieldValue( 'social_media.instagram' ) : '',
|
||||
'youtube' => getFieldValue( 'social_media.youtube' ) ? getFieldValue( 'social_media.youtube' ) : '',
|
||||
'linkedin' => getFieldValue( 'social_media.linkedin' ) ? getFieldValue( 'social_media.linkedin' ) : '',
|
||||
);
|
||||
|
||||
// Add circle class if the circle option is enabled
|
||||
if ( $circle ) {
|
||||
$classes .= ' circular-icon';
|
||||
}
|
||||
|
||||
// Loop through the social media sites and output links
|
||||
foreach ( $sites as $name => $url ) {
|
||||
if ( $url ) {
|
||||
?>
|
||||
<a href="<?php echo esc_url( $url ); ?>" class="<?php echo esc_attr( $classes ); ?>">
|
||||
<?php get_template_part( 'views/icons/' . $name ); ?>
|
||||
<span class="sr-only bg-white text-black">Visit our <?php echo esc_html( $name ); ?> page</span>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
$social_twitter = getFieldValue( 'social_media.twitter' ) ?: 'https://twitter.com/goaskauntieca';
|
||||
$social_facebook = getFieldValue( 'social_media.facebook' ) ?: 'https://www.facebook.com/Goaskauntieca';
|
||||
$social_instagram = getFieldValue( 'social_media.instagram' ) ?: 'https://www.instagram.com/goaskauntieca/';
|
||||
?>
|
||||
|
||||
<div class="mx-auto flex justify-center place-items-center flex-wrap h-full flex-row md:mx-0 w-auto">
|
||||
<a href="<?php echo esc_url( $social_twitter ); ?>"><span class="fa-stack fa-lg mx-1 font-extralight text-purple mt-2"><i class="fa fa-circle fa-stack-2x"></i><i class="fab fa-twitter text-white fa-stack-1x"></i></span></a>
|
||||
<a href="<?php echo esc_url( $social_facebook ); ?>"><span class="fa-stack fa-lg mx-1 font-extralight text-purple mt-2"><i class="fa fa-circle fa-stack-2x"></i><i class="fab fa-facebook-f text-white fa-stack-1x"></i></span></a>
|
||||
<a href="<?php echo esc_url( $social_instagram ); ?>"><span class="fa-stack fa-lg mx-1 font-extralight text-purple mt-2"><i class="fa fa-circle fa-stack-2x"></i><i class="fab fa-instagram text-white fa-stack-1x"></i></span></a>
|
||||
</div>
|
||||
Reference in New Issue
Block a user