Your IP : 216.73.216.1
<?php
/**
* Starter Content
*
* @package pally
* @since 1.0.0
*/
namespace Pally;
/**
* Starter Content for fresh sites.
*
* @since 1.0.0
*/
class Starter_Content {
/**
* Constructor.
*
* @since 1.0.0
* @access public
*/
public function __construct() {
add_action( 'after_setup_theme', [ $this, 'action_starter_content_theme_support' ] );
}
/**
* Adds theme support for starter content
*/
public function action_starter_content_theme_support() {
add_theme_support(
'starter-content',
[
'nav_menus' => [
'menu-1' => [
'name' => __( 'Primary', 'pally' ),
'items' => [
'link_home',
'page_about'
],
],
],
'posts' => [
'post01' => [
'post_type' => 'post',
'post_title' => __( 'pally Theme-Options', 'pally' ),
'post_content' => join(
'',
[
'
<!-- wp:paragraph -->
<p>' . __( 'The pally Theme has several options to change its appearance. Here, you can find an overview of what is possible. You can change settings via Appearance - Customize.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Site Identity & Branding', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'Here, you can choose an optional logo, enter or change the Site Title and put in a Tagline.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'There are several options where to display the Site Title and the Tagline, how to position it within the Header Area and also where to display the Header Image. The Header Image has to be selected via Customize - Header Image.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'You can also choose a Site Icon for the browser tab.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Header menu Options', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'Some settings for the main navigation.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'You can decide to display the search field, and how the main navigation is behaving: scroll with the page or sticky position on top of the page.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'Also, you can choose between settings for the navigation menu on mobile devices:', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:list -->
<ul><li>' . __( 'No icon, only text', 'pally' ) . '</li><li>' . __( 'Hamburger menu icon (3 lines)', 'pally' ) . '</li><li>' . __( 'Plus icon', 'pally' ) . '</li></ul>
<!-- /wp:list -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Excerpt', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'Decide how long the automatic excerpt for blog posts on the blog page should be.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'If you prefer to display a custom excerpt, enter your text while editing the blog post on the right hand side where it says \'Excerpt\'.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Meta-Info Homepage', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'Meta-Info is the date, author, categories and tags for the blog posts. You can choose between different display settings and enter text that will be displayed together with the options.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Post options', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'Special options for posts, you can decide if author, date, categories and tags should be displayed with the post.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'You can also choose to display text for the post navigation.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'The post image/thumbnail can be hidden.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Page options', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'If a page is set as homepage, you can decide to hide the page title.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Author Biography options', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'You can enable an author biography, display the author\'s website and biography to be shown on blog posts. Fill out the biography field via User - Biographical Info. Here, you can also choose a profile picture and enter the website', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'Also, you can set the style of the author\'s profile picture: round/square or no image.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Footer options', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'There is a copyright text in the footer that can be hidden, or you can enter your own text.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'Here you can also find the option to activate the Go to top link.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Font pairing', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'There are several font pairs to choose from. The look and feel of the website will change by choosing a font pair. You can also choose a system font if you want to make sure that fonts are loading fast. There is no serif font because it is better for many users to read texts without serifs, which adds to the accessibility.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Font sizes', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'You can choose the size of the base font size, small, medium, large and xlarge, 12px to 24px. Other sizes, like for headlines, will change accordingly.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading -->
<h2>' . __( 'Related Posts', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'It is possible to display Related Posts below blog posts. These posts are connected via tags, which means that posts with the same tag will be related.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'If you want to display them, tick the box.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'You can also put in a headline and set how many Related Posts should be displayed.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
',
]
),
],
'about' => [
'post_type' => 'page',
'post_title' => __( 'About the pally theme', 'pally' ),
'post_content' => join(
'',
[
'
<!-- wp:paragraph -->
<p>' . __( 'pally is an accessibility-ready theme that helps you setting up an accessible blog. The name of this theme is a combination of the words all and a11y, the short form for accessibility. It is your pally for building a blog that is accessible for as many people as possible.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"level":2} -->
<h2>' . __( 'How to work with the theme', 'pally' ) . '</h2>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'In order to help with setting up the theme, we put some info together.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"32px"} -->
<div style="height:32px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"level":3} -->
<h3>' . __( 'Recommended settings', 'pally' ) . '</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'After installing the pally theme, setting the language you want and activating the starter content via the customizer, we recommend to go through the customizer thoroughly. We recommend the following settings:', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:list -->
<ul>
<li>' . __( 'Make sure the title and tagline are readable if you are displaying them in the header area. Change the opacity to ensure good legibility.', 'pally' ) . '</li>
<li>' . __( 'Build and insert a footer navigation using these recommended pages: Imprint, Data Protection, Accessibility Statement', 'pally' ) . '</li>
<li>' . __( 'Colours: use the default colours (they have been optimised for accessibility) or choose colours with good contrasts.', 'pally' ) . '/li>
<li>' . __( 'Choose to show go to top link', 'pally' ) . '</li>
<li>' . __( 'Use a rather large font size', 'pally' ) . '</li>
</ul>
<!-- /wp:list -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"level":3} -->
<h3>' . __( 'Recommended plugins', 'pally' ) . '</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'We recommend installing the following plugins:', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:list -->
<ul>
<li>
<a href="https://de.wordpress.org/plugins/wp-accessibility/">WP Accessibility</a><br>
<em>' . __( 'Please enter this id in the settings of the plugin where it says Toolbar location (optional): #a11yhelper', 'pally' ) . '</em></li>
<li><a href="https://github.com/10degrees/accessibility-statement-plugin">Accessibility Statement Generator</a>: ' . __( 'Helps to create an accessibility statement', 'pally' ) . '</li>
</ul>
<!-- /wp:list -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"level":3} -->
<h3>' . __( 'Be accessible, stay accessible', 'pally' ) . '</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'We listed some information about creating good accessible content on our accessibility statement page over at our example blog installation.', 'pally' ) . '<br>
<a href="https://www.barrierefreiesblog.de/erklaerung-zur-barrierefreiheit#ally-examples">' . __( 'Accessible blog by points - the digital agency', 'pally' ) . '</a></p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"level":3} -->
<h3>Widgets</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'We are using the new block based widgets editor. It is possible using the old widget view by installing the plugin Classic Widgets, but because blocks are also used in the post and page editor and WordPress is heading into the direction of full page editing, this is not recommended.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'If you want to insert a widget that has a headline, use a widget group. First, insert the widget Widget Group, then the block widget you want to use, and enter a headline for group.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>' . __( 'The old widgets (Legacy Widgets) are still working, but shouldn\'t be inserted into a widget group.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
<!-- wp:spacer {"height":"64px"} -->
<div style="height:64px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:heading {"level":3} -->
<h3>' . __( 'Footer Navigation', 'pally' ) . '</h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p>' . __( 'There is a predefined spot for a footer navigation in the widget area. Use it via Appearance - Widgets, and make sure to create a menu beforehand via Design - Menus.', 'pally' ) . '</p>
<!-- /wp:paragraph -->
',
]
),
],
],
]
);
}
}