diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index 3849beb4ba..dc4d6c87ed 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -12,12 +12,15 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_0_TITLE="About" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_1_FULLTEXT="" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_1_INTROTEXT="
Here are some basic tips for working on your site.
secondary primary info success warning danger
text-secondary text-primary text-info text-success text-warning text-danger
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex. (p)
Lorem ipsum dolor sit amet, consectetuer adipiscing elit (strong), sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex. (p)
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex. (p)
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex. (p)
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex. (p)
(ol)(li)
(ul)(li)
Lorem (display-1)
Lorem (display-2)
Lorem ipsum (display-3)
Lorem ipsum (display-4)
This is a sample blog posting.
If you log in to the site (the Author Login link is on the very bottom of this page) you will be able to edit it and all of the other existing articles. You will also be able to create a new article and make other changes to the site.
As you add and modify articles you will see how your site changes and also how you can customise it in various ways.
Go ahead, you can't break it.
" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_2_TITLE="Welcome to your blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_3_FIELD_0="Uurnip greens yarrow ricebean endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale." PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_3_FULLTEXT="On the full page you will see both the introductory content and the rest of the article. You can change the settings to hide the introduction if you want.
" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_3_INTROTEXT="Your home page is set to display the four most recent articles from the blog category in a column. Then there are links to the next two oldest articles. You can change those numbers by editing the content options settings in the blog tab in your site administrator. There is a link to your site administrator in the top menu.
If you want to have your blog post broken into two parts, an introduction and then a full length separate page, use the Read More button to insert a break.
" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_3_INTROTEXT="Your home page is set to display the four most recent articles from the blog category in a column. Then there are links to the next two oldest articles. You can change those numbers by editing the content options settings in the blog tab in your site administrator. There is a link to your site administrator in the top menu.
If you want to have your blog post broken into two parts, an introduction and then a full length separate page, use the Read More span to insert a break.
" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_3_TITLE="About your home page" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_4_FULLTEXT="" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_4_INTROTEXT="Your site has some commonly used modules already preconfigured.
" @@ -93,6 +96,7 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE="Template Settings" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Sample Layouts" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE="Category List" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_13_TITLE="Articles" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Typography" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_1_TITLE="About" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE="Login" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE="Create a Post" @@ -119,8 +123,8 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_4_TITLE="Latest Posts" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_5_TITLE="Older Posts" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_6_TITLE="Bottom Menu" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_7_TITLE="Search" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_8_CONTENT="You have chosen one of the most powerful CMS Systems in the world.
Cassiopeia is the multi-purpose frontend template for Joomla 4.
" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_8_TITLE="Image" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_8_CONTENT="You have chosen one of the most powerful CMS Systems in the world.
Cassiopeia is the multi-purpose frontend template for Joomla 4.
" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_9_TITLE="Popular Tags" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_TAG_0_TITLE="Millions" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_TAG_1_TITLE="Love" diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index afd0509d56..4acaf65480 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -564,6 +564,7 @@ public function onAjaxSampledataApplyStep1() 'access' => 3, ), + // Category 0 = Blog // Category 0 = Blog array( // Article 2 - Welcome to your blog @@ -673,6 +674,15 @@ public function onAjaxSampledataApplyStep1() 'catid' => $catIds[1], 'authorValue' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_9_FIELD_0'), ), + + array( + // Article 10 - Typography + 'catid' => $catIds[2], + 'images' => array( + 'image_intro' => 'images/banners/banner.jpg', + 'image_intro_caption' => 'Cassiopeia', + ) + ), ); $mvcFactory = $this->app->bootComponent('com_content')->getMVCFactory(); @@ -963,6 +973,32 @@ public function onAjaxSampledataApplyStep2() 'secure' => 0, ), ), + array( + // Typography + 'menutype' => $menuTypes[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE'), + 'link' => 'index.php?option=com_content&view=article&id=&id=' . (int) $articleIds[10], + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'params' => array( + 'show_title' => 0, + 'link_titles' => 0, + 'show_intro' => 1, + 'info_block_position' => '', + 'info_block_show_title' => 0, + 'show_category' => 0, + 'show_author' => 0, + 'show_create_date' => 0, + 'show_modify_date' => 0, + 'show_publish_date' => 0, + 'show_item_navigation' => 0, + 'show_hits' => 0, + 'show_tags' => 0, + 'menu_text' => 1, + 'menu_show' => 1, + 'page_title' => '', + 'secure' => 0, + ), + ), array( 'menutype' => $menuTypes[1], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE'), @@ -1282,7 +1318,11 @@ public function onAjaxSampledataApplyStep3() // Get previously entered Data from UserStates $menuTypes = $this->app->getUserState('sampledata.blog.menutypes'); - $catids = $this->app->getUserState('sampledata.blog.articles.catids'); + $catids = $this->app->getUserState('sampledata.blog.articles.catids'); + $articleIds = $this->app->getUserState('sampledata.blog.articles'); + + // Link to article "typography" in banner module + $headerLink = 'index.php?option=com_content&view=article&id=' . $articleIds[10]; $modules = array( array( @@ -1492,7 +1532,7 @@ public function onAjaxSampledataApplyStep3() array( // Header image 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_8_TITLE'), - 'content' => '' . Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_8_CONTENT') . '
', + 'content' => '' . Text::sprintf('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MODULES_MODULE_8_CONTENT', $headerLink) . '
', 'ordering' => 1, 'position' => 'banner', 'module' => 'mod_custom', diff --git a/templates/cassiopeia/scss/blocks/_banner.scss b/templates/cassiopeia/scss/blocks/_banner.scss index e6ca30d332..1614aad6d6 100644 --- a/templates/cassiopeia/scss/blocks/_banner.scss +++ b/templates/cassiopeia/scss/blocks/_banner.scss @@ -30,10 +30,13 @@ &::after { display: block; width: 30%; - height: 6px; + height: 4px; margin: 1rem auto 2rem; content: ""; - background: var(--cassiopeia-color-hover); + background: white; + } + .lead { + font-size: 150vh; } } }