Skip to content

Commit

Permalink
Merge pull request #245 from OpenDevelopmentMekong/impl-244
Browse files Browse the repository at this point in the history
[IMP] Enable Footnote and Summary Sidebar
  • Loading branch information
EricSoroos authored May 8, 2024
2 parents 25cf8ed + a1ce5ba commit 58be1df
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
9 changes: 8 additions & 1 deletion post-types/templates/page-profile-with-sidebar-and-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@
<!-- Main content in WYSIWYG -->
<div class="row">
<div class="twelve columns">
<?php echo get_the_content(); ?>
<section class="content section-content">
<section class="post-content">
<?php the_content(); ?>
</section>
</section>
</div>
<div class="four columns">
<aside id="sidebar">
<ul class="widgets">
<li class="widget">
<?php odm_summary(); ?>
</li>
<?php dynamic_sidebar('profile-right-sidebar'); ?>
</ul>
</aside>
Expand Down
36 changes: 18 additions & 18 deletions post-types/templates/single-profiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,37 +36,37 @@
$sub_navigation = get_post_meta($post->ID, '_page_with_sub_navigation', true);
$external_url = get_post_meta($post->ID, '_external_link', true);

if (!$sub_navigation) :
?>
if (!$sub_navigation) : ?>
<section class="container section-title main-title">
<header class="row">
<div class="twelve columns">
<?php
//odm_get_template('social-share',array(),true);

if (!empty($dataset) && odm_screen_manager()->is_mobile()) :
echo_download_button_link_to_datapage($ckan_dataset_id, true);
endif;

odm_title($post, array('date', 'categories', 'tags'));
?>
</div>
<?php if (!empty($dataset) && odm_screen_manager()->is_desktop()) : ?>
<div class="four columns align-right">
<div class="widget share-widget">
<div class="four columns">
<?php
if (!empty($dataset)) :
echo_download_button_link_to_datapage($ckan_dataset_id, false, $external_url);
endif;
?>
</div>
<div class="twelve columns">
<?php odm_get_template('social-share', array(), true); ?>
</div>

<div class="four columns align-right">
<div class="widget share-widget">
<div class="four columns">
<?php
if (!empty($dataset)) :
echo_download_button_link_to_datapage($ckan_dataset_id, false, $external_url);
endif;
?>
</div>
<div class="twelve columns">
<?php
if (odm_screen_manager()->is_desktop()) {
odm_get_template('social-share', array(), true);
}
?>
</div>
</div>
<?php endif; ?>
</div>
</header>
</section>
<?php endif; ?>
Expand Down

0 comments on commit 58be1df

Please sign in to comment.