Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Releasing 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aldolat committed Jun 1, 2020
1 parent 4d0d7c5 commit 029fc9d
Show file tree
Hide file tree
Showing 12 changed files with 816 additions and 36 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## 0.0.2 - 2020-06-01
### Added
* First completion of the plugin.

## 0.0.1 - 2020-06-01
### Added
* First release of the plugin.

[Unreleased]: https://github.com/aldolat/aldolat-twitter/commits/develop
[0.0.2]: https://github.com/aldolat/aldolat-twitter/compare/0.0.1...0.0.2
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Aldolat Twitter

**Contributors** aldolat
**Donate link** https://dev.aldolat.it/projects/aldolat-twitter/
**Tags** twitter, sidebar, widget
**Requires at least** 5.4
**Tested up to** 5.4
**Stable tag** 0.0.2
**License** GPLv3 or later
**License URI** https://www.gnu.org/licenses/gpl-3.0.html

Display your Tweets in a widget.

* [Aldolat Twitter](#aldolat-twitter)
* [Description](#description)
* [Filing Bugs](#filing-bugs)
* [Privacy Policy](#privacy-policy)
* [Installation](#installation)
* [Installing the plugin](#installing-the-plugin)
* [Uninstalling the plugin](#uninstalling-the-plugin)

## Description

This plugin provides a widget where to display your tweets.

## Filing Bugs

If you have found a bug, please report it on [GitHub](https://github.com/aldolat/aldolat-twitter/issues).

This plugin is developed using [GitHub](https://github.com/aldolat/aldolat-twitter). If you wrote an enhancement and would share it with the world, please send me a [Pull request](https://github.com/aldolat/aldolat-twitter/pulls).

## Privacy Policy

This plugin does not collect any user data.

## Installation

### Installing the plugin

This section describes how to install the plugin and get it working.

1. Upload the `aldolat-twitter` directory to the `/wp-content/plugins/` directory
1. Activate the plugin through the Plugins menu in WordPress
1. Go to the widgets manager and add the newly available widget into the sidebar
1. Adjust the options to fit your needs
1. Save and test your results.

### Uninstalling the plugin

Aldolat Twitter cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen.
6 changes: 3 additions & 3 deletions aldolat-twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
* Plugin URI: https://dev.aldolat.it/projects/aldolat-twitter/
* Author: Aldo Latino
* Author URI: https://www.aldolat.it/
* Version: 0.0.1
* Version: 0.0.2
* License: GPLv3 or later
* Text Domain: aldolat-twitter
* Domain Path: /languages/
*/

/*
* Copyright (C) 2019, 2020 Aldo Latino (email : [email protected])
* Copyright (C) 2020 Aldo Latino (email : [email protected])
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -70,7 +70,7 @@ function aldolat_twitter_setup() {
/*
* Define the version of the plugin.
*/
define( 'ALDOLAT_TWITTER_PLUGIN_VERSION', '0.0.1' );
define( 'ALDOLAT_TWITTER_PLUGIN_VERSION', '0.0.2' );

/*
* Load the translation.
Expand Down
9 changes: 9 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
== Changelog ==

= 0.0.2 =

* First completion of the plugin.

= 0.0.1 =

* First release of the plugin.
4 changes: 2 additions & 2 deletions includes/aldolat-twitter-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* $defaults contains the default parameters:
* string $title The title of the widget.
* string $intro_text The introductory text for the widget.
* string $username The username on Pinboard.
* string $username The username on Twitter.
* string $widget_id The ID of the widget.
* }
*
Expand All @@ -30,7 +30,7 @@
*/
function aldolat_twitter_get_defaults() {
$defaults = array(
'title' => esc_html__( 'My latest tweets', 'pinboard-bookmarks' ),
'title' => esc_html__( 'My latest tweets', 'aldolat-twitter' ),
'intro_text' => '',
'screen_name' => '',
'count' => 3,
Expand Down
6 changes: 3 additions & 3 deletions includes/aldolat-twitter-widget-form-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function aldolat_twitter_form_label( $label, $id ) {
* @uses aldolat_twitter_form_label
*/
function aldolat_twitter_form_input_text( $label, $id, $name, $value, $placeholder = '', $comment = '', $style = '', $class = '' ) {
$class = rtrim( 'widefat pinboard-bookmarks-input ' . $class );
$class = rtrim( 'widefat aldolat-twitter-input ' . $class );

if ( $style ) {
echo '<p style="' . esc_attr( $style ) . '">';
Expand Down Expand Up @@ -111,7 +111,7 @@ class="widefat"
* @since 1.12
*/
function aldolat_twitter_form_checkbox( $label, $id, $name, $checked, $comment = '', $class = '' ) {
$class = rtrim( 'checkbox pinboard-bookmarks-checkbox ' . $class );
$class = rtrim( 'checkbox aldolat-twitter-checkbox ' . $class );
?>
<p>
<input class="<?php echo esc_attr( $class ); ?>" type="checkbox" <?php checked( $checked ); ?> id="<?php echo esc_attr( $id ); ?>" name="<?php echo esc_attr( $name ); ?>" />
Expand Down Expand Up @@ -139,7 +139,7 @@ function aldolat_twitter_form_checkbox( $label, $id, $name, $checked, $comment =
* @since 1.12
*/
function aldolat_twitter_form_select( $label, $id, $name, $options, $value, $comment = '', $class = '' ) {
$class = rtrim( 'pinboard-bookmarks-select ' . $class );
$class = rtrim( 'aldolat-twitter-select ' . $class );
?>
<p>
<?php aldolat_twitter_form_label( $label, $id ); ?>
Expand Down
22 changes: 11 additions & 11 deletions includes/class-aldolat-twitter-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function form( $instance ) {

<?php
// Title.
pinboard_bookmarks_form_input_text(
aldolat_twitter_form_input_text(
esc_html__( 'Title', 'aldolat-twitter' ),
$this->get_field_id( 'title' ),
$this->get_field_name( 'title' ),
Expand All @@ -172,7 +172,7 @@ public function form( $instance ) {

<?php
// Introductory text.
pinboard_bookmarks_form_textarea(
aldolat_twitter_form_textarea(
esc_html__( 'Place this text after the title', 'aldolat-twitter' ),
$this->get_field_id( 'intro_text' ),
$this->get_field_name( 'intro_text' ),
Expand All @@ -187,7 +187,7 @@ public function form( $instance ) {

<?php
// Username.
pinboard_bookmarks_form_input_text(
aldolat_twitter_form_input_text(
esc_html__( 'Username on Twitter:', 'aldolat-twitter' ),
$this->get_field_id( 'screen_name' ),
$this->get_field_name( 'screen_name' ),
Expand All @@ -197,7 +197,7 @@ public function form( $instance ) {
);

// Number of items.
pinboard_bookmarks_form_input_text(
aldolat_twitter_form_input_text(
esc_html__( 'Number of items:', 'aldolat-twitter' ),
$this->get_field_id( 'count' ),
$this->get_field_name( 'count' ),
Expand All @@ -206,23 +206,23 @@ public function form( $instance ) {
);

// Exclude replies.
pinboard_bookmarks_form_checkbox(
aldolat_twitter_form_checkbox(
esc_html__( 'Exclude replies', 'aldolat-twitter' ),
$this->get_field_id( 'exclude_replies' ),
$this->get_field_name( 'exclude_replies' ),
$instance['exclude_replies']
);

// Include retweets.
pinboard_bookmarks_form_checkbox(
aldolat_twitter_form_checkbox(
esc_html__( 'Include retweets', 'aldolat-twitter' ),
$this->get_field_id( 'include_rts' ),
$this->get_field_name( 'include_rts' ),
$instance['include_rts']
);

// Cache.
pinboard_bookmarks_form_input_text(
aldolat_twitter_form_input_text(
esc_html__( 'Cache duration:', 'aldolat-twitter' ),
$this->get_field_id( 'cache_duration' ),
$this->get_field_name( 'cache_duration' ),
Expand All @@ -236,28 +236,28 @@ public function form( $instance ) {

<?php
// Consumer key.
pinboard_bookmarks_form_input_text(
aldolat_twitter_form_input_text(
esc_html__( 'Consumer Key:', 'aldolat-twitter' ),
$this->get_field_id( 'consumer_key' ),
$this->get_field_name( 'consumer_key' ),
esc_attr( $instance['consumer_key'] )
);
// Consumer secret.
pinboard_bookmarks_form_input_text(
aldolat_twitter_form_input_text(
esc_html__( 'Consumer secret:', 'aldolat-twitter' ),
$this->get_field_id( 'consumer_secret' ),
$this->get_field_name( 'consumer_secret' ),
esc_attr( $instance['consumer_secret'] )
);
// Oauth token.
pinboard_bookmarks_form_input_text(
aldolat_twitter_form_input_text(
esc_html__( 'Oauth token:', 'aldolat-twitter' ),
$this->get_field_id( 'oauth_token' ),
$this->get_field_name( 'oauth_token' ),
esc_attr( $instance['oauth_token'] )
);
// Oauth token secret.
pinboard_bookmarks_form_input_text(
aldolat_twitter_form_input_text(
esc_html__( 'Oauth token secret:', 'aldolat-twitter' ),
$this->get_field_id( 'oauth_token_secret' ),
$this->get_field_name( 'oauth_token_secret' ),
Expand Down
Binary file modified languages/aldolat-twitter-it_IT.mo
Binary file not shown.
15 changes: 8 additions & 7 deletions languages/aldolat-twitter-it_IT.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ msgid ""
msgstr ""
"Project-Id-Version: Aldolat Twitter 0.0.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/aldolat-twitter\n"
"POT-Creation-Date: 2020-06-01T17:59:17+02:00\n"
"PO-Revision-Date: 2020-06-01 17:40+0200\n"
"Last-Translator: Aldo Latino <[email protected]>\n"
"Language-Team: Italian <[email protected]>\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2020-06-01T17:34:24+02:00\n"
"PO-Revision-Date: 2020-06-01 17:40+0200\n"
"X-Generator: Lokalize 20.04.1\n"
"X-Domain: aldolat-twitter\n"
"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. Plugin Name of the plugin
Expand All @@ -38,6 +38,11 @@ msgstr "Aldo Latino"
msgid "https://www.aldolat.it/"
msgstr "https://www.aldolat.it/"

#: includes/aldolat-twitter-functions.php:33
#: includes/class-aldolat-twitter-widget.php:167
msgid "My latest tweets"
msgstr "I miei ultimi tweet"

#: includes/class-aldolat-twitter-widget.php:30
msgid "Publish your tweets in your blog"
msgstr "Pubblica i tuoi tweet nel tuo blog"
Expand All @@ -50,10 +55,6 @@ msgstr "Titolo del widget"
msgid "Title"
msgstr "Titolo"

#: includes/class-aldolat-twitter-widget.php:167
msgid "My latest tweets"
msgstr "I miei ultimi tweet"

#: includes/class-aldolat-twitter-widget.php:171
msgid "Introductory text"
msgstr "Testo introduttivo"
Expand Down
13 changes: 7 additions & 6 deletions languages/aldolat-twitter.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Aldolat Twitter plugin.
msgid ""
msgstr ""
"Project-Id-Version: Aldolat Twitter 0.0.1\n"
"Project-Id-Version: Aldolat Twitter 0.0.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/aldolat-twitter\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: 2020-06-01T17:34:24+02:00\n"
"POT-Creation-Date: 2020-06-01T17:59:17+02:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.4.0\n"
"X-Domain: aldolat-twitter\n"
Expand All @@ -35,6 +35,11 @@ msgstr ""
msgid "https://www.aldolat.it/"
msgstr ""

#: includes/aldolat-twitter-functions.php:33
#: includes/class-aldolat-twitter-widget.php:167
msgid "My latest tweets"
msgstr ""

#: includes/class-aldolat-twitter-widget.php:30
msgid "Publish your tweets in your blog"
msgstr ""
Expand All @@ -47,10 +52,6 @@ msgstr ""
msgid "Title"
msgstr ""

#: includes/class-aldolat-twitter-widget.php:167
msgid "My latest tweets"
msgstr ""

#: includes/class-aldolat-twitter-widget.php:171
msgid "Introductory text"
msgstr ""
Expand Down
34 changes: 30 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== Aldolat Twitter ===
Contributors: aldolat
Donate link: https://dev.aldolat.it/projects/aldolat-twitter/
Tags: Twitter
Requires at least: 5.2
Tested up to: 5.3
Stable tag: 0.0.1
Tags: twitter, sidebar, widget
Requires at least: 5.4
Tested up to: 5.4
Stable tag: 0.0.2
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand All @@ -13,3 +13,29 @@ Display your Tweets in a widget.
== Description ==

This plugin provides a widget where to display your tweets.

== Filing Bugs ==

If you have found a bug, please report it on [GitHub](https://github.com/aldolat/aldolat-twitter/issues).

This plugin is developed using [GitHub](https://github.com/aldolat/aldolat-twitter). If you wrote an enhancement and would share it with the world, please send me a [Pull request](https://github.com/aldolat/aldolat-twitter/pulls).

== Privacy Policy ==

This plugin does not collect any user data.

== Installation ==

=== Installing Aldolat Twitter ===

This section describes how to install the plugin and get it working.

1. Upload the `aldolat-twitter` directory to the `/wp-content/plugins/` directory
1. Activate the plugin through the Plugins menu in WordPress
1. Go to the widgets manager and add the newly available widget into the sidebar
1. Adjust the options to fit your needs
1. Save and test your results.

=== Uninstalling ===

Aldolat Twitter cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen.

0 comments on commit 029fc9d

Please sign in to comment.