Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update messaging to emphasize need for financial contributions #1541

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/css/admin.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/admin.min.css

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions assets/src/admin-import-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,7 @@ a.button-large {
}

.logo {
display: block;
float: right;
margin: -30px 0 0 10px;
img {
display: block;
height: auto;
width: 85px;
}
margin-top: -30px;
}

details {
Expand Down
13 changes: 13 additions & 0 deletions assets/src/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,17 @@ body {
&.post-type-tsml_meeting {
@import 'admin-meeting.scss';
}

.logo {
display: block;
float: right;
margin-left: 10px;
img {
display: block;
height: auto;
width: 85px;
}
}


}
11 changes: 1 addition & 10 deletions includes/admin_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,7 @@
add_action(
'wp_dashboard_setup',
function () {
wp_add_dashboard_widget('tsml_help_widget', '12 Step Meeting List Plugin', function () {
printf(
'<p>' . __('%1$s is a nonprofit organization of volunteer members building technology services for recovery fellowships, such as AA and Al-Anon. If you need help, please %2$s join our discussion forum%3$s. If you would like to make a tax-deductible contribution, please %4$s visit our website%5$s.', '12-step-meeting-list') . '</p>',
'<a href="https://code4recovery.org/">Code for Recovery</a>',
'<a href="https://github.com/code4recovery/12-step-meeting-list/discussions">',
'</a>',
'<a href="https://code4recovery.org/">',
'</a>'
);
}, null, null, 'normal', 'high');
wp_add_dashboard_widget('tsml_help_widget', '12 Step Meeting List Plugin', 'tsml_about_message', null, null, 'normal', 'high');
}
);

39 changes: 2 additions & 37 deletions includes/admin_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,47 +592,12 @@ function tsml_settings_page()
<div class="stack">
<!-- About Us -->
<div class="postbox stack">
<div class="stack compact">
<div class="stack">
<h2>
<?php _e('About Us', '12-step-meeting-list') ?>
</h2>
<p>
<a href="https://code4recovery.org/" target="_blank" class="logo">
<img src="<?php echo plugin_dir_url(__FILE__) . '../assets/img/code4recovery.svg'; ?>"
alt="Code for Recovery">
</a>
<?php _e(
'This <b>12 Step Meeting List</b> plugin (TSML) is one of the free services offered by the nonprofit organization <b>Code For Recovery</b> whose volunteer members build and maintain technology services for recovery fellowships such as AA and Al-Anon.',
'12-step-meeting-list'
) ?>
</p>
</div>
</div>

<div class="postbox stack">
<!-- Need Help -->
<div class="stack compact">
<h2>
<?php _e('Need Help?', '12-step-meeting-list') ?>
</h2>

<p>
<?php _e(
'To get information about this product or our organization, simply use one of the linked buttons below which are great sources for information and answers.',
'12-step-meeting-list'
) ?>
</p>
<?php tsml_about_message()?>
</div>
<p class="row">
<a href="https://wordpress.org/plugins/12-step-meeting-list/#faq-header" target="_blank"
class="button">
<?php _e('View Documentation', '12-step-meeting-list') ?>
</a>
<a href="https://github.com/code4recovery/12-step-meeting-list/discussions" target="_blank"
class="button">
<?php _e('Ask a Question', '12-step-meeting-list') ?>
</a>
</p>
</div>

<!-- Email Settings -->
Expand Down
26 changes: 26 additions & 0 deletions includes/functions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
<?php

function tsml_about_message() {
tsml_assets();
?>
<p>
<a href="https://code4recovery.org/" target="_blank" class="logo">
<img src="<?php echo plugin_dir_url(__FILE__) . '../assets/img/code4recovery.svg'; ?>" alt="Code for Recovery">
</a>
<?php _e('<strong>Code for Recovery</strong> is a nonprofit organization of volunteer members building technology services for recovery fellowships, such as A.A. and Al-Anon.', '12-step-meeting-list') ?>
</p>
<p><strong><?php _e('Support Our Mission with a Monthly or Yearly Contribution!')?></strong></p>
<p><?php _e('Your donations help cover hosting fees, content delivery, geocoding, and other essential services that enable recovery communities to thrive. Every contribution makes a difference.')?></p>
<p><?php _e('Our recommended donation for the use of 12 Step Meeting List is $20/year, but all contributions are appreciated!')?></p>
<p>
<a href="https://wordpress.org/plugins/12-step-meeting-list/#faq-header" target="_blank" class="button">
<?php _e('View Documentation', '12-step-meeting-list') ?>
</a>
<a href="https://github.com/code4recovery/12-step-meeting-list/discussions" target="_blank" class="button">
<?php _e('Request Help', '12-step-meeting-list') ?>
</a>
<a href="https://code4recovery.org/contribute" target="_blank" class="button button-primary">
<?php _e('Contribute', '12-step-meeting-list') ?>
</a>
</p>
<?php
}

//function: add an admin screen update message
//used: tsml_import() and admin_types.php
//$type: can be success, warning, info, or error
Expand Down
Loading