Skip to content

Commit

Permalink
Issue #125: Use new function in a few more places.
Browse files Browse the repository at this point in the history
Also hide tonic integration for the moment.
  • Loading branch information
laryn committed Apr 17, 2024
1 parent 104986e commit dfa9034
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function gin_preprocess_page(&$variables) {
$variables['classes'][] = 'gin--horizontal-toolbar';

// Node add or edit.
if (theme_get_setting('edit_form_sidebar', 'gin') || (arg(0) == 'node' && (arg(1) == 'add' || arg(2) == 'edit'))) {
if (gin_content_form_paths()) {
$variables['classes'][] = 'gin--edit-form';
}

Expand Down
2 changes: 1 addition & 1 deletion template.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function gin_form_user_register_form_alter(&$form, &$form_state, $form_id) {
* Helper function to convert an edit form to use the sidebar edit.
*/
function _gin_convert_to_sidebar_edit_form(&$form) {
if (theme_get_setting('edit_form_sidebar', 'gin')) {
if (gin_content_form_paths()) {
$first_key = '';
$first_weight = 999;
foreach (element_children($form) as $key) {
Expand Down
2 changes: 1 addition & 1 deletion theme-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$beta_label = ' <span class="gin-beta-flag">Beta</span>';
$new_label = ' <span class="gin-new-flag">New</span>';

if (module_exists('tonic')) {
if (FALSE && module_exists('tonic')) {
$form['tonic'] = [
'#type' => 'container',
'#attributes' => [
Expand Down

0 comments on commit dfa9034

Please sign in to comment.