Skip to content

Commit

Permalink
🚀 RELEASE: v1.2.2 Update
Browse files Browse the repository at this point in the history
Merge pull request #10 from warengonzaga/dev
  • Loading branch information
warengonzaga authored Nov 27, 2022
2 parents 6562554 + 337d80a commit df9c30a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 13 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

[![created by](https://img.shields.io/badge/created%20by-Waren%20Gonzaga-blue.svg?longCache=true&style=flat-square)](https://github.com/warengonzaga) [![release](https://img.shields.io/github/release/warengonzaga/update-your-footer-wp.svg?style=flat-square)](https://github.com/warengonzaga/update-your-footer-wp/releases) [![star](https://img.shields.io/github/stars/warengonzaga/update-your-footer-wp.svg?style=flat-square)](https://github.com/warengonzaga/update-your-footer-wp/stargazers) [![installs](https://img.shields.io/wordpress/plugin/installs/update-your-footer-wp?style=flat-square)](https://wordpress.org/plugins/update-your-footer-wp) [![license](https://img.shields.io/github/license/warengonzaga/update-your-footer-wp.svg?style=flat-square)](https://github.com/warengonzaga/update-your-footer-wp/blob/main/license)

> 📢 Nominate ([@warengonzaga](https://warengonzaga.com)) as **[GitHub Star](https://stars.github.com/nominate)**. If you appreciate his hardwork and dedication to open source.
![banner](.github/assets/banner-1544x500.jpg)

Simple and lightweight WordPress shortcode plugin to automagically update your footer year notice. No annoying ads! 📅💻🧩
Expand Down Expand Up @@ -46,10 +44,10 @@ Please report any issues and bugs by [creating a new issue here](https://github.

## 🍀 Sponsors and Supporters

> Love what I do? **[Send me some coffees](https://warengonzaga.com/donate)**! ☕☕
> Love what I do? Send me some [love](https://github.com/sponsors/warengonzaga) or [coffee](https://buymeacoff.ee/warengonzaga)!? 💖
>
> Can't send coffees? 😥 Nominate me for a **[GitHub Star](https://stars.github.com/nominate)** instead!
> Your coffee donation and support will help me to continue working on open-source projects like this. 🙏😇
> Can't send love or coffees? 😥 Nominate me for a **[GitHub Star](https://stars.github.com/nominate)** instead!
> Your support will help me to continue working on open-source projects like this. 🙏😇
## 📋 Code of Conduct

Expand Down
43 changes: 43 additions & 0 deletions languages/update-your-footer-wp.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright (C) 2022 Waren Gonzaga
# This file is distributed under the same license as the Update Your Footer WP plugin.
msgid ""
msgstr ""
"Project-Id-Version: Update Your Footer WP 1.2.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/update-your-footer-wp\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-10-26T05:39:33+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.7.1\n"
"X-Domain: uyf_wp\n"

#. Plugin Name of the plugin
msgid "Update Your Footer WP"
msgstr ""

#. Plugin URI of the plugin
msgid "https://github.com/warengonzaga/update-your-footer-wp"
msgstr ""

#. Description of the plugin
msgid "Simple and lightweight WordPress shortcode plugin to automagically update your footer year notice. No annoying ads!"
msgstr ""

#. Author of the plugin
msgid "Waren Gonzaga"
msgstr ""

#. Author URI of the plugin
msgid "https://warengonzaga.com"
msgstr ""

#: update-your-footer-wp.php:27
msgid "Copyright"
msgstr ""

#: update-your-footer-wp.php:27
msgid "All Rights Reserved"
msgstr ""
18 changes: 10 additions & 8 deletions update-your-footer-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,30 @@
* Plugin Name: Update Your Footer WP
* Plugin URI: https://github.com/warengonzaga/update-your-footer-wp
* Description: Simple and lightweight WordPress shortcode plugin to automagically update your footer year notice. No annoying ads!
* Version: 1.2.1
* Version: 1.2.2
* Author: Waren Gonzaga
* Author URI: https://warengonzaga.com
* Text Domain: update-your-footer-wp
* Domain Path: /languages
*/

/**
* Update Your Footer WP
*/

// prevent direct access
defined( 'ABSPATH' ) or die( "Restricted Access!" );
defined( 'ABSPATH' ) or die( 'Restricted Access!' );

function update_your_footer($atts) {
function update_your_footer( $atts ) {

// wp data
$year = date('Y');
$site_url = get_bloginfo('url');
$site_name = get_bloginfo('name');
$year = date( 'Y' );
$site_url = get_bloginfo( 'url' );
$site_name = get_bloginfo( 'name' );

// output data
return 'Copyright &copy; ' . esc_html( $year ) . ' <a href="' . esc_url( $site_url ) . '">' . esc_html( $site_name ) . '</a>, All Rights Reserved.';
return __( 'Copyright', 'update-your-footer-wp' ) . ' &copy; ' . esc_html( $year ) . ' <a href="' . esc_url( $site_url ) . '">' . esc_html( $site_name ) . '</a>, ' . __( 'All Rights Reserved', 'update-your-footer-wp' ) . '.';
}

// wordpress hook
add_shortcode('uyf_wp', 'update_your_footer');
add_shortcode( 'uyf_wp', 'update_your_footer' );

0 comments on commit df9c30a

Please sign in to comment.