Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • project/yg_corporate_lite
  • issue/yg_corporate_lite-3385871
  • issue/yg_corporate_lite-3385880
  • issue/yg_corporate_lite-3386024
  • issue/yg_corporate_lite-3386026
  • issue/yg_corporate_lite-3386041
  • issue/yg_corporate_lite-3386047
  • issue/yg_corporate_lite-3419228
  • issue/yg_corporate_lite-3419371
  • issue/yg_corporate_lite-3419374
  • issue/yg_corporate_lite-3419377
11 results
Show changes
<div class="col-lg-3">
<div class="item animate__animated animate__fadeInRight">
<a href="{{fields.view_node.content}}" title="{{fields.title.content}}"><img src="{{fields.field_image.content}}" alt="{{fields.field_image_1.content}}"></a>
<h4><a href="{{fields.view_node.content}}" title="{{fields.title.content}}">{{fields.title.content}}</a></h4>
<p>{{fields.body.content}}</p>
<a href="{{fields.view_node.content}}" title="{{fields.nothing.content}}">{{fields.nothing.content}}</a>
</div>
</div>
\ No newline at end of file
<li>
<div class="item">
<h5><a href="{{fields.view_node.content}}" title="{{fields.title.content}}">{{fields.title.content}}</a></h5>
<p>{{fields.body.content}}</p>
</div>
</li>
\ No newline at end of file
{% for row in rows %}
{{row.content}}
{% endfor %}
\ No newline at end of file
<ul class="other-blogs animate__animated animate__fadeInRight">
{% for row in rows %}
{{row.content}}
{% endfor %}
</ul>
\ No newline at end of file
<form {{ attributes }}>
<div class="row">
<div class="col-lg-4">
{{ element.elements.name }}
</div>
<div class="col-lg-4">
{{ element.elements.email }}
</div>
<div class="col-lg-4">
{{ element.elements.subject }}
</div>
<div class="col-lg-12">
{{ element.elements.message }}
</div>
{{ element.elements.actions }}
{{ element.form_build_id }}
{{ element.form_token }}
{{ element.form_id }}
</div>
</form>
core_version_requirement: ^8 || ^9
name: YG Corporate Lite Theme
type: theme
base theme: classy
name: 'YG Corporate Lite'
description: 'corporate theme'
description: 'Basic structure for a YG Corporate Lite Theme.'
core_version_requirement: ^9 || ^10
base theme: bootstrap_barrio
libraries:
- yg_corporate_lite/bootstrap_cdn
- yg_corporate_lite/global-styling
regions:
navigation: 'Navigation'
primary_menu: 'primary_menu'
header: 'Top Bar'
highlighted: 'Highlighted'
help: 'Help'
slider: 'slider'
aboutus: 'aboutus'
abouticons: 'abouticons'
content: 'Content'
sidebar_first: 'Primary'
sidebar_second: 'Secondary'
portfolio: 'portfolio'
carousel: 'carousel'
blog: 'blog'
contact: 'contact'
map: 'map'
footer: 'footer'
top_header: 'Top header'
top_header_form: 'Top header form'
header: Header
header_form: 'Header form'
logo: 'Logo'
primary_menu: 'Primary menu'
secondary_menu: 'Secondary menu'
page_top: 'Page top'
page_bottom: 'Page bottom'
highlighted: Highlighted
featured_top: 'Featured top'
breadcrumb: Breadcrumb
content: Content
sidebar_first: 'Sidebar first'
sidebar_second: 'Sidebar second'
featured_bottom_first: 'Featured bottom first'
featured_bottom_second: 'Featured bottom second'
featured_bottom_third: 'Featured bottom third'
footer_first: 'Footer first'
footer_second: 'Footer second'
footer_third: 'Footer third'
footer_fourth: 'Footer fourth'
footer_fifth: 'Footer fifth'
libraries:
- yg_corporate_lite/global-styling
\ No newline at end of file
libraries-override:
bootstrap_barrio/global-styling:
css:
component:
css/components/table.css: false
css/components/webform.css: false
global-styling:
version: VERSION
js:
js/owl.carousel.min.js: {}
js/aos.js: {}
js/global.js: {}
css:
theme:
css/bootstrap.css: {}
component:
css/owl.carousel.min.css: {}
css/owl.theme.default.min.css: {}
css/animate.css: {}
css/aos.css: {}
css/style.css: {}
fonts/font-awesome/css/font-awesome.css: {}
css/colors.css: {}
bootstrap:
js:
js/bootstrap.js: {}
js/main.js: {}
js/scroll.js: {}
/libraries/popper.js/dist/umd/popper.min.js: { weight: -19 }
/libraries/bootstrap/dist/js/bootstrap.min.js: { weight: -20 }
css:
component:
/libraries/bootstrap/dist/css/bootstrap.min.css: {}
dependencies:
- core/jquery
- core/drupalSettings
- core/modernizr
- core/drupal
- core/popperjs
bootstrap_cdn:
js:
//cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js: {}
css:
component:
//cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css: {}
dependencies:
- core/popperjs
color.preview:
version: VERSION
css:
theme:
color/preview.css: {}
js:
color/preview.js: {}
dependencies:
- color/drupal.color
......@@ -2,71 +2,40 @@
/**
* @file
* Bootstrap sub-theme.
*
* Place your custom PHP code in this file.
* Functions to support theming in the SASS Starterkit subtheme.
*/
function yg_corporate_lite_preprocess_page(&$variables) {
$variables['theme_name'] = theme_get_setting('theme_name');
$variables['email'] = theme_get_setting('email');
$variables['phone'] = theme_get_setting('phone');
$variables['footer_content'] = theme_get_setting('footer_content');
$variables['about_us_block'] = views_embed_view('about_us_block', 'block_1');
use Drupal\Core\Form\FormStateInterface;
}
/**
* Implements hook_form_system_theme_settings_alter().
* Implements hook_form_system_theme_settings_alter() for settings form.
*
* Replace Barrio setting options with subtheme ones.
*
* Example on how to alter theme settings form
*/
function yg_corporate_lite_form_system_theme_settings_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) {
//kint(theme_get_setting('footer_content')['value']);
$form['yg_corporate_lite_settings']['footer'] = array(
'#type' => 'details',
'#title' => t('Theme Settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['yg_corporate_lite_settings']['footer']['theme_name'] = array(
'#type' => 'textfield',
'#title' => t('theme_name'),
'#default_value' => theme_get_setting('theme_name'),
);
$form['yg_corporate_lite_settings']['footer']['footer_content'] = array(
'#type' => 'text_format',
'#title' => t('Footer content'),
'#format' => 'full_html',
'#default_value' => theme_get_setting('footer_content'),
);
$form['yg_corporate_lite_settings']['footer']['email'] = array(
'#type' => 'textfield',
'#title' => t('Email ID'),
'#default_value' => theme_get_setting('email'),
);
$form['yg_corporate_lite_settings']['footer']['phone'] = array(
'#type' => 'textfield',
'#title' => t('Phone'),
'#default_value' => theme_get_setting('phone'),
);
$form['#submit'][] ='yg_corporate_lite_settings_form_submit';
function yg_corporate_lite_form_system_theme_settings_alter(&$form, FormStateInterface $form_state) {
$form['components']['navbar']['bootstrap_barrio_navbar_top_background']['#options'] = [
'bg-primary' => t('Primary'),
'bg-secondary' => t('Secondary'),
'bg-light' => t('Light'),
'bg-dark' => t('Dark'),
'bg-white' => t('White'),
'bg-transparent' => t('Transparent'),
];
$form['components']['navbar']['bootstrap_barrio_navbar_background']['#options'] = [
'bg-primary' => t('Primary'),
'bg-secondary' => t('Secondary'),
'bg-light' => t('Light'),
'bg-dark' => t('Dark'),
'bg-white' => t('White'),
'bg-transparent' => t('Transparent'),
];
}
function yg_corporate_lite_settings_form_submit(&$form, &$form_state) {
}
function yg_corporate_lite_preprocess_node(&$variable) {
if ($variable['node']->getType() === 'blogs') {
$variables['date'] = drupal_render($variables['elements']['created']);
}
/**
* Implements hook_library_info_alter().
*/
function yg_corporate_lite_library_info_alter(&$libraries, $ext) {
unset($libraries['form']);
}
\ No newline at end of file