Skip to content

Commit

Permalink
Update: Plugin updated
Browse files Browse the repository at this point in the history
  • Loading branch information
SH4LIN committed Dec 15, 2023
1 parent b1c1d1b commit f664b1e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ README.md
.DS_Store
postcss.config.js
Terms
embed-google-drive.zip
rt-google-embeds.zip
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Thumbs.db
# Composer
/vendor/

embed-google-drive.zip
rt-google-embeds.zip
2 changes: 1 addition & 1 deletion includes/classes/class-rtcamp-google-embeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function oembed_providers( $providers ) {
*/
public function load_textdomain() {

load_plugin_textdomain( 'embed-google-drive', false, RT_GOOGLE_EMBEDS_PLUGIN_DIR . 'languages/' );
load_plugin_textdomain( 'rt-google-embeds', false, RT_GOOGLE_EMBEDS_PLUGIN_DIR . 'languages/' );

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# This file is distributed under the same license as the Embed Google Drive plugin.
msgid ""
msgstr ""
"Project-Id-Version: Embed Google Drive 1.0\n"
"Project-Id-Version: Embed Google Drive 1.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/embed-google-drive\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2023-12-14T12:27:05+00:00\n"
"POT-Creation-Date: 2023-12-15T08:26:36+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.9.0\n"
"X-Domain: embed-google-drive\n"
"X-Domain: rt-google-embeds\n"

#. Plugin Name of the plugin
msgid "Embed Google Drive"
Expand All @@ -34,14 +34,14 @@ msgstr ""
msgid "https://rtcamp.com/"
msgstr ""

#: templates/embeds/google-drive-file.php:19
#: templates/embeds/google-drive-file.php:16
msgid "Open the Shared Document"
msgstr ""

#: templates/embeds/google-drive-file.php:20
#: templates/embeds/google-drive-file.php:17
msgid "Open Shared Document"
msgstr ""

#: templates/embeds/google-drive-file.php:22
#: templates/embeds/google-drive-file.php:19
msgid "Shared Document Preview"
msgstr ""
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"author": "rtCamp",
"license": "GPL-2.0",
"scripts": {
"language:make-pot": "wp i18n make-pot . --exclude=\"build\" languages/embed-google-drive.pot",
"language:make-po": "wp i18n make-pot . --exclude=\"build\" languages/rt-google-embeds.po",
"language": "run-s \"language:*\"",
"zip": "wp dist-archive . embed-google-drive.zip"
"zip": "wp dist-archive . rt-google-embeds.zip"
},
"devDependencies": {
"npm-run-all": "^4.1.5"
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<ruleset name="Embed Google Drive">
<ruleset name="rtCamp Google Embeds">
<description>A custom set of rules to check for a rtCamp Google Embeds plugin</description>

<arg name="extensions" value="php"/>
Expand Down
4 changes: 2 additions & 2 deletions embed-google-drive.php → rt-google-embeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Plugin Name: Embed Google Drive
* Description: Embed a link and preview of Google Drive Documents by pasting a shared document link into the editor.
* Plugin URI: https://github.com/rtCamp/embed-google-drive
* Version: 1.0
* Version: 1.1
* Author: rtCamp
* Text Domain: embed-google-drive
* Text Domain: rt-google-embeds
* Author URI: https://rtcamp.com/
* Domain Path: /languages/
*
Expand Down
6 changes: 3 additions & 3 deletions templates/embeds/google-drive-file.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

?>
<div style="border: 1px solid #000; text-align: center;">
<a href="<?php echo esc_url( $drive_file_url ); ?>" title="<?php esc_attr_e( 'Open the Shared Document', 'embed-google-drive' ); ?>" target="_blank" rel="noopener noreferrer" style="color: #cd2653;">
<?php esc_html_e( 'Open Shared Document', 'embed-google-drive' ); ?>
<a href="<?php echo esc_url( $drive_file_url ); ?>" title="<?php esc_attr_e( 'Open the Shared Document', 'rt-google-embeds' ); ?>" target="_blank" rel="noopener noreferrer" style="color: #cd2653;">
<?php esc_html_e( 'Open Shared Document', 'rt-google-embeds' ); ?>
</a>
<img src="<?php echo esc_url( $thumbnail_url ); ?>" alt="<?php esc_attr_e( 'Shared Document Preview', 'embed-google-drive' ); ?>" style="border: 1px solid #eee; margin: 15px auto; display: block;" />
<img src="<?php echo esc_url( $thumbnail_url ); ?>" alt="<?php esc_attr_e( 'Shared Document Preview', 'rt-google-embeds' ); ?>" style="border: 1px solid #eee; margin: 15px auto; display: block;" />
</div>

0 comments on commit f664b1e

Please sign in to comment.