Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: redrobotsl/wordpress-casperlet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.0
Choose a base ref
...
head repository: redrobotsl/wordpress-casperlet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 6 commits
  • 8 files changed
  • 3 contributors

Commits on Mar 15, 2023

  1. Transient For When Rentals are Fetched(1/2 Day)

    Jacob Fear committed Mar 15, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    168b194 View commit details
  2. Change ReadMe before Commit

    Jacob Fear committed Mar 15, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4827c99 View commit details
  3. E

    Jacob Fear committed Mar 15, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1dbd644 View commit details
  4. Create DEPLOY.yml

    IAmNolanPerry authored Mar 15, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    267a1bb View commit details
  5. Add Transient to Main page

    Jacob Fear committed Mar 15, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e6893b9 View commit details

Commits on Apr 9, 2023

  1. Update

    Nolan Perry committed Apr 9, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    88201bc View commit details
17 changes: 17 additions & 0 deletions .github/workflows/DEPLOY.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: rental-directory-for-casperlet
11 changes: 0 additions & 11 deletions core/class-rental-directory-for-casperlet.php
Original file line number Diff line number Diff line change
@@ -39,15 +39,6 @@ final class Rental_Directory_For_Casperlet {
*/
private static $instance;

/**
* RRCLET helpers object.
*
* @access public
* @since 1.0.0
* @var object|Rental_Directory_For_Casperlet_Helpers
*/
public $helpers;

/**
* RRCLET settings object.
*
@@ -98,7 +89,6 @@ public static function instance() {
self::$instance = new Rental_Directory_For_Casperlet;
self::$instance->base_hooks();
self::$instance->includes();
self::$instance->helpers = new Rental_Directory_For_Casperlet_Helpers();
self::$instance->settings = new Rental_Directory_For_Casperlet_Settings();
self::$instance->options = new RRCLET_Options();
//Fire the plugin logic
@@ -123,7 +113,6 @@ public static function instance() {
* @return void
*/
private function includes() {
require_once RRCLET_PLUGIN_DIR . 'core/includes/classes/class-rental-directory-for-casperlet-helpers.php';
require_once RRCLET_PLUGIN_DIR . 'core/includes/classes/class-rental-directory-for-casperlet-settings.php';

require_once RRCLET_PLUGIN_DIR . 'core/includes/classes/class-rental-directory-for-casperlet-run.php';
2 changes: 1 addition & 1 deletion core/includes/classes/class-RRCLET-options.php
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ public function RRCLET_sanitize($input) {
}

public function RRCLET_section_info() {
echo "Testing";
return "Welcome! Add config info here!";
}

public function RRCLET_api_key_callback() {
21 changes: 17 additions & 4 deletions core/includes/classes/class-RRCLET-shortcode-rentals.php
Original file line number Diff line number Diff line change
@@ -125,16 +125,23 @@ public function create_clet_rentals_shortcode( $atts = array(), $content = '' )

$output = '';
$api_key_1 = get_option( 'RRCLET_api_key' ); // Array of All Options

$cache = "";
if( get_transient( 'RRCLET' ) ) {
$cache = get_transient( 'RRCLET' );
} else {
$theurltouse = 'https://www.casperpanel.com/api/rentals.php?accessKey=' . $api_key_1;
$args = array();
$response = wp_remote_get( $theurltouse, $args );

$bodyofchrist = wp_remote_retrieve_body( $response );
$d1 = json_decode(substr($bodyofchrist,5));
$d2 = $d1->availableUnits;
set_transient( 'RRCLET', $d2, DAY_IN_SECONDS/2 );

$cache = $d2;

foreach($d2 as $query){
}
foreach($cache as $query){
$addon = $this->clet_rentals_templater($query);
$output .= $addon;
}
@@ -146,21 +153,27 @@ public function create_clet_rentals_shortcode( $atts = array(), $content = '' )
public function clet_handler_json(WP_REST_Request $request) {

$api_key_1 = get_option( 'RRCLET_api_key' ); // Array of All Options

$cache = "";
if( get_transient( 'RRCLET' ) ) {
$cache = get_transient( 'RRCLET' );
} else {
$theurltouse = 'https://www.casperpanel.com/api/rentals.php?accessKey=' . $api_key_1;
$args = array();
$response = wp_remote_get( $theurltouse, $args );

$bodyofchrist = wp_remote_retrieve_body( $response );
$d1 = json_decode(substr($bodyofchrist,5));
$d2 = $d1->availableUnits;
set_transient( 'RRCLET', $d2, DAY_IN_SECONDS/2 );

$cache = $d2;

}
return new WP_REST_Response(
array(
'status' => 200,
'response' => '',
'data' => $d2
'data' => $cache
));
}

This file was deleted.

11 changes: 11 additions & 0 deletions image_from_sl.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
$data = 'http://asset-cdn.glb.agni.lindenlab.com/?texture_id=' . urlencode($_GET['uuid']);
$im = imagecreatefromstring(file_get_contents($data));
if ($im !== false) {
header('Content-Type: image/jpeg');
imagejpeg($im);
imagedestroy($im);
}
else {
echo 'An error occurred.';
}
47 changes: 9 additions & 38 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,53 +1,24 @@
=== Rental Directory for CasperLet ===
Author URI: https://darknebula.world
Plugin URI: https://darknebula.world
Donate link:
Contributors:
Tags:
Requires at least:
Tested up to:
Requires PHP:
Contributors: iamnolanperry
Tags: secondlife,second life,metaverse, sl, caspertech
Donate link: https://www.paypal.com/donate/?hosted_button_id=2BMCGHVCM5KC2
Requires at least: 6.1.1
Tested up to: 6.1.1
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html


Shows CasperLet Rentals

== Description ==

This is the long description. No limit, and you can use Markdown (as well as in the following sections).

For backwards compatibility, if this section is missing, the full length of the short description will be used, and
Markdown parsed.

A few notes about the sections above:

* "Contributors" is a comma separated list of wordpress.org usernames
* "Tags" is a comma separated list of tags that apply to the plugin
* "Requires at least" is the lowest version that the plugin will work on
* "Tested up to" is the highest version that you've *successfully used to test the plugin*. Note that it might work on
higher versions... this is just the highest one you've verified.
* Stable tag should indicate the Subversion "tag" of the latest stable version, or "trunk," if you use `/trunk/` for
stable.

Note that the `readme.txt` of the stable tag is the one that is considered the defining one for the plugin, so
if the `/trunk/readme.txt` file says that the stable tag is `4.3`, then it is `/tags/4.3/readme.txt` that'll be used
for displaying information about the plugin. In this situation, the only thing considered from the trunk `readme.txt`
is the stable tag pointer. Thus, if you develop in trunk, you can update the trunk `readme.txt` to reflect changes in
your in-development version, without having that information incorrectly disclosed about the current stable version
that lacks those changes -- as long as the trunk's `readme.txt` points to the correct stable tag.

If no stable tag is provided, it is assumed that trunk is stable, but you should specify "trunk" if that's where
you put the stable version, in order to eliminate any doubt.
This is not officially supported or created by CasperTech LTD or Linden Lab. It requires you have access to the Web Kiosk API Addon, it costs extra.


== Frequently Asked Questions ==

= A question that someone might have =

An answer to that question.


== Installation ==

1. Go to `Plugins` in the Admin menu
@@ -57,5 +28,5 @@ An answer to that question.

== Changelog ==

= 1.0.0: March 10, 2023 =
= 1.0.0: March 15, 2023 =
* Birthday of Rental Directory for CasperLet
2 changes: 1 addition & 1 deletion rental-directory-for-casperlet.php
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
*
* @wordpress-plugin
* Plugin Name: Rental Directory for CasperLet
* Plugin URI: https://darknebula.world
* Plugin URI: https://darknebula.world/software-plugins/casperlet-wordpress-plugin/
* Description: Shows CasperLet Rentals
* Version: 1.0.0
* Author: Nolan Perry, LLC