Skip to content

Commit

Permalink
Updated translation code and fixed PHP Notices
Browse files Browse the repository at this point in the history
  • Loading branch information
samiahmedsiddiqui committed Jan 25, 2018
1 parent 0121d08 commit 0151e07
Show file tree
Hide file tree
Showing 21 changed files with 8,784 additions and 156 deletions.
30 changes: 26 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,33 @@ All the above headers can be removed from this plugin. You can select them from

**Note**: Make sure to check the settings Page

## Installation
### Thanks for the Support

1. Upload the `remove-links-scripts` folder to the `/wp-content/plugins/` directory or Directly install the plugin through the WordPress plugins screen.
2. Activate the Remove Links and Scripts plugin through the `Plugins` menu in WordPress.
3. Configure the plugin by going to the menu `Remove Links and Scripts` that appears in your admin menu
The support from the users that love Remove Links and Scripts is huge. You can support Remove Links and Scripts future development and help to make it even better by donating or even giving a 5 star rating with a nice message to me :)

[Donate to Remove Links and Scripts](https://www.paypal.me/yasglobal)

## Installation

This process defines you the steps to follow either you are installing through WordPress or Manually from FTP.

**From within WordPress**

1. Visit 'Plugins > Add New'
2. Search for Remove Links and Scripts
3. Activate Remove Links and Scripts from your Plugins page.
4. Go to "after activation" below.

**Manually**

1. Upload the `remove-links-and-scripts` folder to the `/wp-content/plugins/` directory
2. Activate Remove Links and Scripts through the 'Plugins' menu in WordPress
3. Go to "after activation" below.

**After activation**

1. Go to the plugin settings page and set up the plugin for your site.
2. You're done!

## Frequently Asked Questions

Expand Down
147 changes: 147 additions & 0 deletions admin/class-remove-links-scripts-about.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<?php
/**
* @package RemoveLinksScripts\Admin
*/

class Remove_Links_Scripts_About {

/**
* Class constructor.
*/
public function __construct() {
$this->more_plugins();
}

/**
* More Plugins HTML
*/
private function more_plugins() {
$plugin_url = plugins_url( '/admin', REMOVE_LINKS_SCRIPTS_FILE );
$img_src = $plugin_url . '/images';
wp_enqueue_style( 'style', $plugin_url . '/css/about-plugins.min.css' );
$plugin_name = __( 'Remove Links and Scripts', 'remove-links-scripts' );
$button_text = __( 'Check it out', 'remove-links-scripts' );
$five_star = '<span class="star">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 53.867 53.867" width="15" height="15">
<polygon points="26.934,1.318 35.256,18.182 53.867,20.887 40.4,34.013 43.579,52.549 26.934,43.798
10.288,52.549 13.467,34.013 0,20.887 18.611,18.182 "/>
</svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 53.867 53.867" width="15" height="15">
<polygon points="26.934,1.318 35.256,18.182 53.867,20.887 40.4,34.013 43.579,52.549 26.934,43.798
10.288,52.549 13.467,34.013 0,20.887 18.611,18.182 "/>
</svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 53.867 53.867" width="15" height="15">
<polygon points="26.934,1.318 35.256,18.182 53.867,20.887 40.4,34.013 43.579,52.549 26.934,43.798
10.288,52.549 13.467,34.013 0,20.887 18.611,18.182 "/>
</svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 53.867 53.867" width="15" height="15">
<polygon points="26.934,1.318 35.256,18.182 53.867,20.887 40.4,34.013 43.579,52.549 26.934,43.798
10.288,52.549 13.467,34.013 0,20.887 18.611,18.182 "/>
</svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 53.867 53.867" width="15" height="15">
<polygon points="26.934,1.318 35.256,18.182 53.867,20.887 40.4,34.013 43.579,52.549 26.934,43.798
10.288,52.549 13.467,34.013 0,20.887 18.611,18.182 "/>
</svg>
</span>';
?>

<div class="wrap">
<div class="float">
<h1><?php echo $plugin_name . ' ' . REMOVE_LINKS_SCRIPTS_PLUGIN_VERSION; ?></h1>
<div class="tagline">
<p><?php _e('Thank you for choosing Remove Links and Scripts! We hope that your experience with our plugin to remove extra links from the HTML is quick and easy.', 'remove-links-scripts' ); ?></p>
<p><?php printf( __( 'To support future development and help to make it even better just leaving us a <a href="%s" title="Remove Links and Scripts Rating" target="_blank">%s</a> rating with a nice message to me :)', 'remove-links-scripts' ), 'https://wordpress.org/support/plugin/remove-links-and-scripts/reviews/?rate=5#new-post', $five_star ); ?></p>
</div>
</div>

<div class="float">
<object type="image/svg+xml" data="<?php echo $img_src;?>/remove-links-and-scripts.svg" width="128" height="128"></object>
</div>

<div class="product">
<h2><?php _e( 'More from YAS Global', 'remove-links-scripts' ); ?></h2>
<span><?php _e('Our List of Plugins provides the services which helps you to manage your site URLs(Permalinks), Prevent your site from XSS Attacks, Brute force attacks, increase your site visitors by adding Structured JSON Markup and so on.', 'remove-links-scripts' ); ?></span>
<div class="box">
<div class="img">
<img src= "<?php echo $img_src; ?>/custom-permalinks.svg" />
</div>

<h3><?php _e( 'Custom Permalinks', 'schema-for-article' ); ?></h3>
<p><?php _e( 'Custom Permalinks helps you to make your permalinks customized for <em>individual</em> posts, pages, tags or categories. It will <strong>NOT</strong> apply whole permalink structures, or automatically apply a category\'s custom permalink to the posts within that category.', 'schema-for-article' ); ?></p>
<a href="https://www.custompermalinks.com/#pricing-section" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

<div class="box">
<div class="img">
<img src= "<?php echo $img_src; ?>/permalinks-customizer.svg" />
</div>

<h3><?php _e( 'Permalinks Customizer', 'remove-links-scripts' ); ?></h3>
<p><?php _e( 'Allows you to either define different Permalink Structure or define same Permalink Structure for default and Custom PostTypes, Taxonomies. Plugin automatically creates the user-friendly URLs as per your defined structured that can be edited from the single post/page.', 'remove-links-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/permalinks-customizer/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

<div class="box recommended">
<div class="img">
<img src= "<?php echo $img_src; ?>/prevent-xss-vulnerability.png" style="transform:scale(1.5)" />
</div>

<h3><?php _e( 'Prevent XSS Vulnerability', 'remove-links-scripts' ); ?></h3>
<p><?php _e( 'Secure your site from the <strong>XSS Attacks</strong> so, your users won\'t lose any kind of information or not redirected to any other site by visiting to your site with the <strong>malicious code</strong> in the URL or so. In this way, users can open your site URLs without any hesitation.', 'remove-links-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/prevent-xss-vulnerability/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

<div class="box">
<div class="img">
<img src= "<?php echo $img_src; ?>/schema-for-article.svg" />
</div>

<h3><?php _e( 'SCHEMA for Article', 'schema-for-article' ); ?></h3>
<p><?php _e( 'Simply the easiest solution to add valid schema.org as a JSON script in the head of blog posts or articles. You can choose the schema either to show with the type of Article or NewsArticle from the settings page.', 'schema-for-article' ); ?></p>
<a href="https://wordpress.org/plugins/schema-for-article/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

<div class="box">
<div class="img">
<img src= "<?php echo $img_src; ?>/make-paths-relative.svg" />
</div>

<h3><?php _e( 'Make Paths Relative', 'custom-permalinks' ); ?></h3>
<p><?php _e( 'Convert the paths(URLs) to relative instead of absolute. You can make <strong>Post</strong>, <strong>Category</strong>, <strong>Archive</strong>, <strong>Image</strong> URLs and <strong>Script</strong> and <strong>Style</strong> src as per your requirement. You can choose which you want to be relative from the settings Page.', 'custom-permalinks' ); ?></p>
<a href="https://wordpress.org/plugins/make-paths-relative/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

<div class="box recommended">
<div class="img">
<img src= "<?php echo $img_src; ?>/http-auth.svg" />
</div>

<h3><?php _e( 'Http Auth', 'schema-for-article' ); ?></h3>
<p><?php _e( 'Allows you apply <strong>HTTP Auth</strong> on your site. You can apply Http Authentication all over the site or only the admin pages. It helps to stop cralwing on your site while on development or persist the <strong>Brute Attacks</strong> by locking the Admin Pages.', 'schema-for-article' ); ?></p>
<a href="https://wordpress.org/plugins/http-auth/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

<div class="box">
<div class="img">
<img src= "<?php echo $img_src; ?>/json-structuring-markup.svg" />
</div>

<h3><?php _e( 'JSON Structuring Markup', 'remove-links-scripts' ); ?></h3>
<p><?php _e( 'Simply the easiest solution to add valid schema.org as a JSON script in the head of posts and pages. It provides you multiple <strong>SCHEMA</strong> types like Article, News Article, Organization and Website Schema.', 'remove-links-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/json-structuring-markup/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>

<div class="box">
<div class="img">
<img src= "<?php echo $img_src; ?>/media-post-permalink.png" style="transform:scale(1.5)" />
</div>

<h3><?php _e( 'Media Post Permalink', 'remove-links-scripts' ); ?></h3>
<p><?php _e( 'On uploading any image, let\'s say services.png, WordPress creates the <strong>attachment post</strong> with the permalink of <strong>/services/</strong> and doesn\'t allow you to use that permalink to point your page. In this case, we comes up with this great solution.', 'remove-links-scripts' ); ?></p>
<a href="https://wordpress.org/plugins/media-post-permalink/" class="checkout-button" target="_blank"><?php echo $button_text; ?></a>
</div>
</div>
</div>
<?php
}
}
Loading

0 comments on commit 0151e07

Please sign in to comment.