diff --git a/changelog.md b/changelog.md index 8ed9b17..dbda70d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,25 @@ # Modern Changelog +## 2.4.2 + +* **Update**: Adding `nofollow` rel attribute to footer links +* **Update**: Removing demo content XML and setting manual import for One Click Demo Import plugin to comply with WordPress.org theme requirements +* **Update**: Localization +* **Fix**: Not wrapping post excerpt in additional DIV when its empty +* **Fix**: Removing "Continue reading" link from blog page excerpt + +### Files changed: + + changelog.md + index.php + style.css + includes/frontend/class-post-summary.php + includes/plugins/one-click-demo-import/class-one-click-demo-import.php + includes/welcome/class-welcome.php + library/changelog.md + template-parts/footer/site-info.php + + ## 2.4.1 * **Add**: Adding WhatsApp and Google social icon diff --git a/includes/frontend/class-post-summary.php b/includes/frontend/class-post-summary.php index c883659..518be8e 100644 --- a/includes/frontend/class-post-summary.php +++ b/includes/frontend/class-post-summary.php @@ -6,7 +6,7 @@ * @copyright WebMan Design, Oliver Juhas * * @since 2.0.0 - * @version 2.4.0 + * @version 2.4.2 * * Contents: * @@ -126,12 +126,19 @@ public static function excerpt( $excerpt = '' ) { * Line breaks are required for proper functionality of `wpautop()` later on. * * @since 2.4.0 - * @version 2.4.0 + * @version 2.4.2 * * @param string $post_excerpt */ public static function wrap_excerpt( $post_excerpt = '' ) { + // Requirements check + + if ( empty( $post_excerpt ) ) { + return $post_excerpt; + } + + // Output return '
';
+ $text .= esc_html__( 'By importing this demo content you get the exact copy of the theme demo website.', 'modern' );
+ $text .= ' (' . esc_html__( 'Preview the theme demo website »', 'modern' ) . ')';
- /**
- * 20) Texts
- */
+ $text .= '
';
- /**
- * Info texts
- *
- * @since 2.0.0
- * @version 2.4.0
- *
- * @param string $text Default intro text.
- */
- public static function info( $text = '' ) {
+ $text .= esc_html__( 'For instructions on importing theme demo content please visit GitHub repository.', 'modern' );
+ $text .= ' (' . esc_html__( 'GitHub repository instructions »', 'modern' ) . ')';
+ $text .= '
'; $text .= esc_html__( 'Please read the information about the theme demo required plugins first.', 'modern' ); $text .= ' ' . esc_html__( 'If you do not install and activate demo required plugins, some of the content will not be imported.', 'modern' ); - $text .= ' '; + $text .= ' '; $text .= esc_html__( 'View the list of required plugins »', 'modern' ); $text .= ''; $text .= '
'; @@ -189,7 +169,7 @@ public static function info( $text = '' ) { /** - * 30) Setup + * 20) Setup */ /** diff --git a/includes/plugins/one-click-demo-import/demo-content-modern.xml b/includes/plugins/one-click-demo-import/demo-content-modern.xml deleted file mode 100644 index 786c00f..0000000 --- a/includes/plugins/one-click-demo-import/demo-content-modern.xml +++ /dev/null @@ -1,5505 +0,0 @@ - - - - - - - - - - - - - - - - - -Aenean maximus, urna gravida dapibus accumsan, ante mauris semper ante, et lacinia erat ipsum fringilla risus. Donec non scelerisque lectus. Suspendisse non consequat risus.
-Pellentesque mollis nulla quam, at ornare augue volutpat eu. Etiam elementum, leo quis mollis sagittis, ex erat sollicitudin libero, id iaculis tellus lacus bibendum tellus. - -—
-]]>Lorem ipsum dolor sit amet, consectetur adipiscing elit. -Vestibulum in mauris eleifend, egestas lectus et, vulputate orci.
-]]>Thank you!
]]>"It’s a bit like discovering that you can extract gold dust from the air,”-said Adam Siepel, a population geneticist at Cold Spring Harbor Laboratory. -"An absolutely amazing and exciting paper,” added David Reich, a genetics professor at Harvard who focuses on ancient DNA. - -https://vimeo.com/222517403 -
The only Denisovan bones and teeth that scientists have, for example, come from a single cave in Siberia.-Looking for these genetic signposts in sediment has become possible only in the last few years, with recent developments in technology, including rapid sequencing of DNA. Although DNA sticks to minerals and decayed plants in soil, scientists did not know whether it would ever be possible to fish out gene fragments that were tens of thousands of years old and buried deep among other genetic debris. -
Not only was there nothing catastrophic, there was hardly anything at all.
-The few clicking sounds were generated by dust the size of cigarette smoke particles about a micron, or one-25,000th of an inch, in diameter. To be clear: Cassini did not actually hear any sounds. It is, after all, flying through space where there is no air and thus no vibrating air molecules to convey sound waves. But space is full of radio waves, recorded by Dr. Kurth’s instrument, and those waves, just like the ones bouncing through the Earth’s atmosphere to broadcast the songs of Bruno Mars, Beyoncé and Taylor Swift, can be converted into audible sounds. -cite
HTML tag (inside a blockquote
tag) to set the quote source. This way you can use any inline HTML to set the quote source.
-Alternatively, you can set the quote source as a quote_source
custom field, but there is no HTML allowed here.
-Finally, if none of these are set, the post title is displayed as quote source.
-
-class="dropcap-text"
on the paragraph HTML tag where you want to display the dropcap.
-
-
-COPY filename
. It is what you read when you don't have to that determines what you will be when you can't help it. -Oscar Wilde- -
alignright
or alignleft
to your content. This can be done in Visual editor with additional style buttons that theme provides. See an example below:
-<blockquote class="alignright">Pull this text right.</blockquote>-
This pull quote is just hanging out on the right side of the post. Lorem ipsum dolor sit amet, consectetur.-A pull quote (also known as a lift-out quote) is a quotation or excerpt from an article that is typically placed in a larger or distinctive typeface on the same page, serving to entice readers into an article or to highlight a key topic. The term is principally used in journalism and publishing. - -Placement of a pull quote on a page may be defined in a publication’s or website’s style guide. Such a typographic device may or may not be aligned with a column on the page. Some designers, for example, choose not to align the quote. In that case, the quotation cuts into two or more columns, as in the example shown. -
And this pull quote is pulling text to the left, like a sir. Lorem ipsum dolor sit amet, consectetur.-Pull quotes need not be a verbatim copy of the text being quoted; depending on a publication’s house style pull quotes may be abbreviated for space and/or paraphrased for clarity, with or without indication. There are no hard-and-fast rules for the exact formatting of pull quotes. -
icon-bullet
class on unordered list item to change its bullet. (Do this in "Text" tab of the post editor.) Use a plugin to provide you with icons (classes).start
and reversed
Attributestart="8"
)
-reversed="reversed"
)<?php bloginfo('stylesheet_url'); ?>
, or within a <pre>
block.
-pre { - padding: 4%; - margin-bottom: 1.62em; - background: #eaecee; - overflow: auto; - tab-size: 2; -}- -
Table Header 1 | -Table Header 2 | -Table Header 3 | -
---|---|---|
Division 1 | -Division 2 | -Division 3 | -
Division 1 | -Division 2 | -Division 3 | -
Division 1 | -Division 2 | -Division 3 | -
mark
HTML tag. This can be done in the Text editor view. See an example below:
-<mark>This will be highlighted.</mark>- -
Dropcap text. Apply this format on a text paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat voltu.
- -Uppercase text. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse.
-Paragraph with Heading 2 style
-Ut wisi enim ad minim veniam, highlighted text (marker) here, quis nostrud exerci tation ullamcorper, small text here, suscipit lobortis nisl ut aliquip ex ea commodo consequat, superscript, subscript. -Paragraph with Heading 3 style
-Heading style texts can be used to force heading 1-3 display style on a different element, such as paragraph or any of HTML heading tags. Thus allows keeping the semantic markup, but styling it a bit differently. - -Display 1 paragraph
-Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat. -Display 2 paragraph
-Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat. -Display 3 paragraph
-Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat. -Display 4 paragraph
-Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat. - -Display 2 text with altered font weight
- -Easy create pullquotes and insert quote <cite> tag. -by Author-Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. - - -
12em
- you can override this with a custom CSS if you need to.
-In doing so, the creatures help transfer carbon that has been removed from the atmosphere.-And given their abundance in other parts of the world, these organisms likely play a crucial role in the global carbon cycle. When it comes to the flow of carbon in the ocean, "we don’t know nearly as much as we should,” said Kakani Katija, a principal engineer at the Monterey Bay Aquarium Research Institute and the study’s lead author. -
"It’s a bit like discovering that you can extract gold dust from the air,”-said Adam Siepel, a population geneticist at Cold Spring Harbor Laboratory. -"An absolutely amazing and exciting paper,” added David Reich, a genetics professor at Harvard who focuses on ancient DNA. -
The only Denisovan bones and teeth that scientists have, for example, come from a single cave in Siberia.-Looking for these genetic signposts in sediment has become possible only in the last few years, with recent developments in technology, including rapid sequencing of DNA. Although DNA sticks to minerals and decayed plants in soil, scientists did not know whether it would ever be possible to fish out gene fragments that were tens of thousands of years old and buried deep among other genetic debris. -