source/php/ModuleManager.php
public function hideTitleCheckbox()
    {
        global $post;

        if (substr($post->post_type, 0, 4) != 'mod-') {
            return;
        }

        $current = self::$moduleSettings[$post->post_type]['hide_title'];

        if (strlen(get_post_meta($post->ID, 'modularity-module-hide-title', true)) > 0) {
            $current = boolval(get_post_meta($post->ID, 'modularity-module-hide-title', true));
        }

        $checked = checked(true, $current, false);

        echo '<div>
            <label style="cursor:pointer;">
                <input type="checkbox" name="modularity-module-hide-title" value="1" ' . $checked . '>
                ' . __('Hide title', 'modularity') . '
            </label>
        </div>';
    }
public function hideTitleCheckbox()
    {
        global $post;

        if (substr($post->post_type, 0, 4) != 'mod-') {
            return;
        }

        $current = self::$moduleSettings[$post->post_type]['hide_title'];

        if (strlen(get_post_meta($post->ID, 'modularity-module-hide-title', true)) > 0) {
            $current = boolval(get_post_meta($post->ID, 'modularity-module-hide-title', true));
        }

        $checked = checked(true, $current, false);

        echo '<div>
            <label style="cursor:pointer;">
                <input type="checkbox" name="modularity-module-hide-title" value="1" ' . $checked . '>
                ' . __('Hide title', 'modularity') . '
            </label>
        </div>';
    }
public function hideTitleCheckbox ( ) { global $ post ; if ( substr ( $ post -> post_type , 0 , 4 ) != 'mod-' ) { return ; } $ current = self :: $ moduleSettings [ $ post -> post_type ] [ 'hide_title' ] ; if ( strlen ( get_post_meta ( $ post -> ID , 'modularity-module-hide-title' , true ) ) > 0 ) { $ current = boolval ( get_post_meta ( $ post -> ID , 'modularity-module-hide-title' , true ) ) ; } $ checked = checked ( true , $ current , false ) ; echo '<div>
            <label style="cursor:pointer;">
                <input type="checkbox" name="modularity-module-hide-title" value="1" ' . $ checked . '>
                ' . __ ( 'Hide title' , 'modularity' ) . '
            </label>
        </div>' ; }
Adds checkbox to post edit page to hide title
@return void
Adds checkbox to post edit page to hide title