Make WordPress Themes

Changeset 357148


Ignore:
Timestamp:
11/04/2026 08:45:48 AM (23 hours ago)
Author:
themedropbox
Message:

New version of Real Estate Developer - 0.5.8

Location:
real-estate-developer/0.5.8
Files:
4 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • real-estate-developer/0.5.8/functions.php

    r355062 r357148  
    223223        $font_family   = array(
    224224                'ABeeZee:ital@0;1',
    225                 'Abril Fatfac',
     225                'Abril Fatface',
    226226                'Acme',
    227227                'Allura',
    … …  
    380380         );
    381381       
    382         $query_args = array(
    383                 'family'        => rawurlencode(implode('|',$font_family)),
    384         );
    385         $font_url = add_query_arg($query_args,'//fonts.googleapis.com/css');
    386         return $font_url;
    387         $contents = real_estate_developer_wptt_get_webfont_url( esc_url_raw( $fonts_url ) );
     382        $font_family = array_unique( $font_family );
     383
     384        // Google rejects a single request for every family, so only load the fonts in use.
     385        $real_estate_developer_fonts_in_use = array( 'Bebas Neue', 'Outfit', 'Poppins' );
     386        foreach ( (array) get_theme_mods() as $real_estate_developer_mod ) {
     387                if ( is_string( $real_estate_developer_mod ) ) {
     388                        $real_estate_developer_fonts_in_use[] = $real_estate_developer_mod;
     389                }
     390        }
     391        if ( is_customize_preview() && isset( $GLOBALS['wp_customize'] ) ) {
     392                foreach ( $GLOBALS['wp_customize']->settings() as $real_estate_developer_setting ) {
     393                        if ( false !== strpos( $real_estate_developer_setting->id, 'font' ) && is_string( $real_estate_developer_setting->value() ) ) {
     394                                $real_estate_developer_fonts_in_use[] = $real_estate_developer_setting->value();
     395                        }
     396                }
     397        }
     398
     399        $real_estate_developer_families = array();
     400        foreach ( $font_family as $real_estate_developer_font ) {
     401                $real_estate_developer_font_name = str_replace( '+', ' ', current( explode( ':', $real_estate_developer_font ) ) );
     402                if ( in_array( $real_estate_developer_font_name, $real_estate_developer_fonts_in_use, true ) ) {
     403                        $real_estate_developer_families[] = 'family=' . str_replace( ' ', '+', $real_estate_developer_font );
     404                }
     405        }
     406
     407        $fonts_url = 'https://fonts.googleapis.com/css2?' . implode( '&', $real_estate_developer_families ) . '&display=swap';
     408        if ( function_exists( 'real_estate_developer_wptt_get_webfont_url' ) ) {
     409                return real_estate_developer_wptt_get_webfont_url( $fonts_url );
     410        }
     411        return $fonts_url;
    388412}
    389413
  • real-estate-developer/0.5.8/inc/getstart/demo-content.php

    r350046 r357148  
    1414                // POST and update the customizer and other related data
    1515        if (isset($_POST['submit'])) {
     16
     17        // Check if Crawl Hunt is installed and activated
     18        if (!is_plugin_active('crawl-hunt-seo-audit-tool/crawl-hunt.php')) {
     19          $real_estate_developer_crawl_hunt_file = 'crawl-hunt-seo-audit-tool/crawl-hunt.php';
     20
     21          // Check if plugin is installed
     22          $real_estate_developer_crawl_hunt_installed = get_plugins();
     23          if (!isset($real_estate_developer_crawl_hunt_installed[$real_estate_developer_crawl_hunt_file])) {
     24              include_once(ABSPATH . 'wp-admin/includes/plugin-install.php');
     25              include_once(ABSPATH . 'wp-admin/includes/file.php');
     26              include_once(ABSPATH . 'wp-admin/includes/misc.php');
     27              include_once(ABSPATH . 'wp-admin/includes/class-wp-upgrader.php');
     28
     29              // Install the plugin
     30              $real_estate_developer_crawl_hunt_upgrader = new Plugin_Upgrader(new Automatic_Upgrader_Skin());
     31              $real_estate_developer_crawl_hunt_upgrader->install('https://downloads.wordpress.org/plugin/crawl-hunt-seo-audit-tool.latest-stable.zip');
     32              wp_clean_plugins_cache();
     33          }
     34          // Activate the plugin
     35          if (file_exists(WP_PLUGIN_DIR . '/' . $real_estate_developer_crawl_hunt_file)) {
     36              activate_plugin($real_estate_developer_crawl_hunt_file);
     37              // Stay on the get started page instead of redirecting to Crawl Hunt
     38              delete_option('crawl_hunt_activation_redirect');
     39          }
     40        }
    1641
    1742        // Check if Essential Real Estate is installed and activated
    … …  
    346371    ?>
    347372 
     373
    348374    <form action="<?php echo esc_url(home_url()); ?>/wp-admin/themes.php?page=real_estate_developer_guide" method="POST" onsubmit="return validate(this);">
    349375        <?php if (!get_option('real_estate_developer_demo_import_completed')) : ?>
    … …  
    372398    </script>
    373399</div>
     400<?php require_once __DIR__ . '/crawlhunt-banner.php'; ?>
  • real-estate-developer/0.5.8/inc/getstart/getstart.css

    r355062 r357148  
    448448    background: #fff;
    449449    box-shadow: 0px 3px 6px #0000007A;
    450     padding: 40px 100px;
     450    padding: 40px 40px;
    451451}
    452452
  • real-estate-developer/0.5.8/inc/getstart/getstart.php

    r345783 r357148  
    5858                                        ?>
    5959                                </div>
    60                                
    61                                 <img src="<?php echo esc_url(get_template_directory_uri()); ?>/inc/getstart/images/responsive.png" alt="" class="resp-img" />
     60 
    6261                        </div> 
    6362                </div>
  • real-estate-developer/0.5.8/inc/tgm/class-tgm-plugin-activation.php

    r355062 r357148  
    7070                 * @since 2.5.0
    7171                 */
    72                 const WP_REPO_REGEX = '|^http[s]?://WordPress\.org/(?:extend/)?plugins/|';
     72                const WP_REPO_REGEX = '|^http[s]?://wordpress\.org/(?:extend/)?plugins/|';
    7373
    7474                /**
  • real-estate-developer/0.5.8/inc/tgm/tgm.php

    r271773 r357148  
    2020                        'required'         => false,
    2121                        'force_activation' => false,
     22                ),
     23                array(
     24                        'name'             => __( 'Crawl Hunt – Advanced SEO Optimization Tool', 'real-estate-developer' ),
     25                        'slug'             => 'crawl-hunt-seo-audit-tool',
     26                        'source'           => '',
     27                        'required'         => false,
     28                        'force_activation' => false,
    2229                )
    2330        );
  • real-estate-developer/0.5.8/readme.txt

    r355062 r357148  
    55Tested up to: 7.1
    66Requires PHP: 7.2
    7 Stable tag: 0.5.7
     7Stable tag: 0.5.8
    88License: GNU General Public License v3.0
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    … …  
    1414
    1515== Changelog ==
     16
     17= 0.5.8 =
     18* Added frontend upsell popup for the Pro theme.
     19* Pro price now fetched dynamically from the store and cached.
    1620
    1721= 0.5.7 =
  • real-estate-developer/0.5.8/style.css

    r355062 r357148  
    88Tested up to: 7.1
    99Requires PHP: 7.2
    10 Version: 0.5.7
     10Version: 0.5.8
    1111License: GNU General Public License v3.0
    1212License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.