Skip to content

Commit

Permalink
Merge pull request #116 from OpenDevelopmentMekong/impl-115
Browse files Browse the repository at this point in the history
Rename the template-layout name of the profile from 'sub-profile-page…
  • Loading branch information
Huyeng authored Dec 23, 2016
2 parents ee5a54e + 1fd3095 commit c467f30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions post-types/profile-pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function add_meta_box()
__('Template layout', 'wp-odm_profile_pages'),
array($this, 'template_layout_settings_box'),
'profiles',
'advanced',
'simple',
'high'
);
add_meta_box(
Expand Down Expand Up @@ -122,7 +122,7 @@ public function template_layout_settings_box($post = false)
<select id="_attributes_template_layout" name="_attributes_template_layout">
<option value="default" <?php if ($template == "default"): echo "selected"; endif; ?>>Default</option>
<option value="with-widget" <?php if ($template == "with-widget"): echo "selected"; endif; ?>>With widgets</option>
<option value="sub-profile-page" <?php if ($template == "sub-profile-page"): echo "selected"; endif; ?>>Sub profile page</option>
<option value="with-right-sibebar" <?php if ($template == "with-right-sibebar"): echo "selected"; endif; ?>>With right sidebar</option>
</select>
</div>
<?php
Expand Down
4 changes: 2 additions & 2 deletions post-types/templates/single-profiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
else:
if ($template == 'with-widget'):
include 'page-profiles-page-with-widget.php';
elseif ($template == 'sub-profile-page'):
elseif ($template == 'with-right-sibebar'):
include 'page-profiles-with-right-sidebar.php';
else:
include 'page-profiles-list-page.php';
Expand All @@ -92,4 +92,4 @@

});

</script>
</script>

0 comments on commit c467f30

Please sign in to comment.