Skip to content

Commit

Permalink
update text content
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand committed Aug 9, 2023
1 parent d330784 commit ec0644e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions admin/class-git-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public function create_admin_menu() {
public function git_settings_page() {
// Add your settings page content here
$git_url_format = 'https://github.com/username/repository';
$page_title = _x( 'Create Block Theme: Git Utilities', 'UI String', 'create-block-theme' );

if ( isset( $_POST['delete_git_config'] ) ) {
$this->delete_settings();
Expand All @@ -39,16 +38,16 @@ public function git_settings_page() {

<div class="wrap">
<h2><?php echo __( 'Create Block Theme: Git Utilities.', 'create-block-theme' ); ?></h2>
<p style="max-width: 500px;">
<?php echo __( 'This plugin allows you to connect your WordPress themes with a Git repository, enabling you to pull and/or commit theme changes.', 'create-block-theme' ); ?>
<p style="max-width: 400px;">
<?php echo __( 'Connect your WordPress site themes with a Git repository. You can pull and commit theme changes to the repository.', 'create-block-theme' ); ?>
</p>
<div class="theme-form">
<form action="" method="POST">
<input type="hidden" name="git_config_form" value="<?php echo wp_create_nonce( 'git_config_form' ); ?>" />

<?php
if ( ! empty( $repository_url ) ) {
echo '<p><h3>' . __( 'Your WordPress site is connected to the git repository.', 'create-block-theme' ) . '✅</h3></p>';
echo '<p><h3>' . __( 'Your WordPress site is connected to the git repository.', 'create-block-theme' ) . ' ✅</h3></p>';
echo "<p style='display:grid;grid-template-columns:minmax(100px,120px) auto'>
<strong>" . __( 'Repository URL', 'create-block-theme' ) . ": </strong>
<span>$repository_url</span>
Expand Down Expand Up @@ -78,8 +77,8 @@ public function git_settings_page() {

if ( empty( $repository_url ) ) {
?>
<p style="max-width: 500px;">
<?php echo __( 'Following options are required if the repository is private or if you want to commit the theme changes to git repository.', 'create-block-theme' ); ?>
<p style="max-width: 400px;">
<?php echo __( 'Following options are required if the repository is private or to commit the theme changes to git repository.', 'create-block-theme' ); ?>
<br/>
</p>
<?php } ?>
Expand Down

0 comments on commit ec0644e

Please sign in to comment.