} ?> ], tokenSeparators: [","], containerCss: { width: '50%' } }); <?php } ?> }); </script> <?php } else { // TODO: Move logic out of the template $catalog = new \PressBooks\Catalog(); $user_id = $catalog->getUserId(); $p = $catalog->getProfile(); ?> <h2><?php echo get_current_user_id() != $user_id ? ucfirst(get_userdata(absint($user_id))->user_login) : __('My Catalog Profile', 'pressbooks'); ?> </h2> <form method="post" action="<?php echo $user_catalog_form_url; ?> " enctype="multipart/form-data" > <input type="hidden" name="action" value="edit_profile" /> <input type="hidden" name="user_id" value="<?php echo $user_id; ?>