Plugin Directory

Changeset 2806611


Ignore:
Timestamp:
10/28/2022 03:00:27 PM (3 years ago)
Author:
magicoli69
Message:

version 2.3.10

Location:
w4os-opensimulator-web-interface
Files:
252 added
4 edited

Legend:

Unmodified
Added
Removed
  • w4os-opensimulator-web-interface/trunk/includes/profile-page.php

    r2789725 r2806611  
    185185    if(!isset($head_title)) $head_title = $page_title;
    186186
    187 
    188     if(wp_get_theme()->parent() && wp_get_theme()->Name == 'Divi' || wp_get_theme()->parent()->Name == 'Divi') {
    189       // document_title_parts doesn't work with some themes, workaround...
     187    switch(get_template()) {
     188      case 'Divi':
    190189      add_filter('pre_get_document_title', function() use($head_title) {
    191190        return $head_title . ' – ' . get_bloginfo('name') ;
    192191      }, 20);
    193     } else {
    194       // Document_title_parts is preferred as it keeps website SEO preferences
     192      break;
     193
     194      default:
    195195      add_filter('document_title_parts', function($title) use($head_title) {
    196196        $title['title'] = $head_title;
  • w4os-opensimulator-web-interface/trunk/includes/profile.php

    r2759586 r2806611  
    8787      // $keys = array_combine($keys, $keys);
    8888      // $avatar_array=(array)$avatar_row;
    89       if(!w4os_empty($avatar_row->profileImage)) $avatar_row->profileImageHtml = '<div class=profileImage><img src=' . w4os_get_asset_url($avatar_row->profileImage) . '></div>';
    90       if(!w4os_empty($avatar_row->profileFirstImage)) $avatar_row->profileFirstImageHtml = '<div class="profileImage profileFirstImage"><img src=' . w4os_get_asset_url($avatar_row->profileFirstImage) . '></div>';
     89      $avatar_row->profileImageHtml = (!w4os_empty($avatar_row->profileImage)) ? '<div class=profileImage><img src=' . w4os_get_asset_url($avatar_row->profileImage) . '></div>' : null;
     90      $avatar_row->profileFirstImageHtml = (!w4os_empty($avatar_row->profileFirstImage)) ? '<div class="profileImage profileFirstImage"><img src=' . w4os_get_asset_url($avatar_row->profileFirstImage) . '></div>' : null;
    9191
    9292      $wants = array(
     
    115115      $this->AvatarName = trim($avatar_row->FirstName . " " . $avatar_row->LastName);
    116116
     117      $profileAboutText = (isset($avatar_row->profileAboutText)) ? wpautop($avatar_row->profileAboutText) : null;
    117118      $profile=array_filter(array(
    118119        __('Avatar Name', 'w4os') => w4os_hop(w4os_grid_profile_url($this), $this->AvatarName),
     
    120121        // __('HG Name', 'w4os') => $avatar_row->HGName, // To implement
    121122        // __('Avatar Display Name', 'w4os') => $avatar_row->DisplayName, // To implement
    122         __('About', 'w4os') => $avatar_row->profileImageHtml . wpautop($avatar_row->profileAboutText),
     123        __('About', 'w4os') => $avatar_row->profileImageHtml . $profileAboutText,
    123124        // __('Profile picture', 'w4os') => $avatar_row->profileImageHtml,
    124125        __('Born', 'w4os') => w4os_age($avatar_row->Created),
    125         __('Partner', 'w4os') => trim($partner->FirstName . ' ' . $partner->LastName),
     126        __('Partner', 'w4os') => (empty($partner)) ? null : trim($partner->FirstName . ' ' . $partner->LastName),
    126127        __('Wants to', 'w4os') => join(', ', w4os_demask($avatar_row->profileWantToMask, $wants, $avatar_row->profileWantToText)),
    127128        __('Skills', 'w4os') => join(', ', w4os_demask($avatar_row->profileSkillsMask, $skills, $avatar_row->profileSkillsText)),
  • w4os-opensimulator-web-interface/trunk/readme.txt

    r2789725 r2806611  
    44Tags: OpenSimulator, Second Life, metaverse, avatar, web interface, grids, standalone, hypergrid, 3D
    55Requires at least: 5.3.0
    6 Requires PHP: 5.6
    7 Tested up to: 6.0.1
    8 Stable tag: 2.3.9
     6Requires PHP: 7.3
     7Tested up to: 6.1
     8Stable tag: 2.3.10
    99License: AGPLv3
    1010License URI: https://www.gnu.org/licenses/agpl-3.0.txt
     
    9898
    9999* **Web Asset Server**: the project requires a web asset server to convert simulator assets (profile pictures, model avatars...) and display them on the website. W4OS provides a web assets service, or you can specify an external web assets service URL instead.
    100 
     100* **PHP** 7.4 to 8.1
    101101* **PHP Modules**: w4os requires php imagemagick module. Also, while they are not required, WordPress recommends activating PHP **curl** and **xml** modules. They are also recommended by W4OS for full functionalties.
    102102
     
    153153
    154154== Changelog ==
     155
     156= 2.3.10 =
     157- minor fixes (profile page title, profile image, profile text display)
     158- tested up to WP 6.1, minimum php 7.3
    155159
    156160= 2.3.9 =
  • w4os-opensimulator-web-interface/trunk/w4os.php

    r2789725 r2806611  
    33 * Plugin Name:       w4os - OpenSimulator Web Interface
    44 * Description:       WordPress interface for OpenSimulator (w4os).
    5  * Version:           2.3.9
     5 * Version:           2.3.10
    66 * Author:            Speculoos World
    77 * Author URI:        https://speculoos.world
Note: See TracChangeset for help on using the changeset viewer.