Home Forums Themes Support Pangja Customize the Coming soon maintenance page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5393
    Alexsandros
    Supported

    Hello,
    Everything is in the title.
    The maintenance page is pretty basic.
    I was wondering how or where can I customize it ?
    In CSS section is the only way I guess ?
    Thanks in advance,
    Regards

    #5394
    Alexsandros
    Supported

    Plus, I added the social icons but my links don’t work, they’re still blank #

    #5395

    Hi,
    Our coming soon page is simple because have many plugin to do this:
    https://wordpress.org/plugins/search/coming+soon/
    If you want to customize coming soon page you need go to:
    wp-content/plugins/haru-pangja-core/includes/maintenance/templates/maintenance.php
    To fix the issue with social profile please open this file:
    wp-content/plugins/haru-pangja-core/includes/maintenance/templates/maintenance-social.php
    and replace by this new code:

    <?php
    /**
     * @package    HaruTheme
     * @version    1.0.0
     * @author     Administrator <admin@harutheme.com>
     * @copyright  Copyright (c) 2017, HaruTheme
     * @license    http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
     * @link       http://harutheme.com
    */
    
    $maintenance_social_profile = array();
    $maintenance_social_profile = haru_get_option('maintenance_social_profile');
    
    $twitter = '';
    if ( NULL !== haru_get_option('haru_twitter_url') ) {
        $twitter = haru_get_option('haru_twitter_url');
    }
    
    $facebook = '';
    if ( NULL !== haru_get_option('haru_facebook_url') ) {
        $facebook = haru_get_option('haru_facebook_url');
    }
    
    $dribbble = '';
    if ( NULL !== haru_get_option('haru_dribbble_url') ) {
        $dribbble = haru_get_option('haru_dribbble_url');
    }
    
    $vimeo = '';
    if ( NULL !== haru_get_option('haru_vimeo_url') ) {
        $vimeo = haru_get_option('haru_vimeo_url');
    }
    
    $tumblr = '';
    if ( NULL !== haru_get_option('haru_tumblr_url') ) {
        $tumblr = haru_get_option('haru_tumblr_url');
    }
    
    $skype = haru_get_option('haru_skype_username');
    if ( NULL !== haru_get_option('haru_skype_username') ) {
        $skype = haru_get_option('haru_skype_username');
    }
    
    $linkedin = '';
    if ( NULL !== haru_get_option('haru_linkedin_url') ) {
        $linkedin = haru_get_option('haru_linkedin_url');
    }
    
    $googleplus = '';
    if ( NULL !== haru_get_option('haru_googleplus_url') ) {
        $googleplus = haru_get_option('haru_googleplus_url');
    }
    
    $flickr = '';
    if ( NULL !== haru_get_option('haru_flickr_url') ) {
        $flickr = haru_get_option('haru_flickr_url');
    }
    
    $youtube = '';
    if ( NULL !== haru_get_option('haru_youtube_url') ) {
        $youtube = haru_get_option('haru_youtube_url');
    }
    
    $pinterest = '';
    if ( NULL !== haru_get_option('haru_pinterest_url') ) {
        $pinterest = haru_get_option('haru_pinterest_url');
    }
    
    $foursquare = haru_get_option('haru_foursquare_url');
    if ( NULL !== haru_get_option('haru_foursquare_url') ) {
        $foursquare = haru_get_option('haru_foursquare_url');
    }
    
    $instagram = '';
    if ( NULL !== haru_get_option('haru_instagram_url') ) {
        $instagram = haru_get_option('haru_instagram_url');
    }
    
    $github = '';
    if ( NULL !== haru_get_option('haru_github_url') ) {
        $github = haru_get_option('haru_github_url');
    }
    
    $xing = haru_get_option('haru_xing_url');
    if ( NULL !== haru_get_option('haru_xing_url') ) {
        $xing = haru_get_option('haru_xing_url');
    }
    
    $rss = '';
    if ( NULL !== haru_get_option('haru_rss_url') ) {
        $rss = haru_get_option('haru_rss_url');
    }
    
    $behance = '';
    if ( NULL !== haru_get_option('haru_behance_url') ) {
        $behance = haru_get_option('haru_behance_url');
    }
    
    $soundcloud = '';
    if ( NULL !== haru_get_option('haru_soundcloud_url') ) {
        $soundcloud = haru_get_option('haru_soundcloud_url');
    }
    
    $deviantart = '';
    if ( NULL !== haru_get_option('haru_deviantart_url') ) {
        $deviantart = haru_get_option('haru_deviantart_url');
    }
    
    $yelp = "";
    if ( NULL !== haru_get_option('haru_yelp_url') ) {
        $yelp = haru_get_option('haru_yelp_url');
    }
    
    $email = "";
    if ( NULL !== haru_get_option('haru_email_address') ) {
        $email = haru_get_option('haru_email_address');
    }
    
    $social_icons = '';
    
    if ( ($maintenance_social_profile == array()) || (empty( $maintenance_social_profile )) ) {
        if ( $twitter ) {
            $social_icons .= '<li><a href="' . esc_url( $twitter ) . '" target="_blank"><i class="fa fa-twitter"></i></a></li>' . "\n";
        }
        if ( $facebook ) {
            $social_icons .= '<li><a href="' . esc_url( $facebook ) . '" target="_blank"><i class="fa fa-facebook"></i></a></li>' . "\n";
        }
        if ( $dribbble ) {
            $social_icons .= '<li><a href="' . esc_url( $dribbble ) . '" target="_blank"><i class="fa fa-dribbble"></i></a></li>' . "\n";
        }
        if ( $youtube ) {
            $social_icons .= '<li><a href="' . esc_url( $youtube ) . '" target="_blank"><i class="fa fa-youtube"></i></a></li>' . "\n";
        }
        if ( $vimeo ) {
            $social_icons .= '<li><a href="' . esc_url( $vimeo ) . '" target="_blank"><i class="fa fa-vimeo-square"></i></a></li>' . "\n";
        }
        if ( $tumblr ) {
            $social_icons .= '<li><a href="' . esc_url( $tumblr ) . '" target="_blank"><i class="fa fa-tumblr"></i></a></li>' . "\n";
        }
        if ( $skype ) {
            $social_icons .= '<li><a href="skype:' . esc_attr( $skype ) . '" target="_blank"><i class="fa fa-skype"></i></a></li>' . "\n";
        }
        if ( $linkedin ) {
            $social_icons .= '<li><a href="' . esc_url( $linkedin ) . '" target="_blank"><i class="fa fa-linkedin"></i></a></li>' . "\n";
        }
        if ( $googleplus ) {
            $social_icons .= '<li><a href="' . esc_url( $googleplus ) . '" target="_blank"><i class="fa fa-google-plus"></i></a></li>' . "\n";
        }
        if ( $flickr ) {
            $social_icons .= '<li><a href="' . esc_url( $flickr ) . '" target="_blank"><i class="fa fa-flickr"></i></a></li>' . "\n";
        }
        if ( $pinterest ) {
            $social_icons .= '<li><a href="' . esc_url( $pinterest ) . '" target="_blank"><i class="fa fa-pinterest"></i></a></li>' . "\n";
        }
        if ( $foursquare ) {
            $social_icons .= '<li><a href="' . esc_url( $foursquare ) . '" target="_blank"><i class="fa fa-foursquare"></i></a></li>' . "\n";
        }
        if ( $instagram ) {
            $social_icons .= '<li><a href="' . esc_url( $instagram ) . '" target="_blank"><i class="fa fa-instagram"></i></a></li>' . "\n";
        }
        if ( $github ) {
            $social_icons .= '<li><a href="' . esc_url( $github ) . '" target="_blank"><i class="fa fa-github"></i></a></li>' . "\n";
        }
        if ( $xing ) {
            $social_icons .= '<li><a href="' . esc_url( $xing ) . '" target="_blank"><i class="fa fa-xing"></i></a></li>' . "\n";
        }
        if ( $behance ) {
            $social_icons .= '<li><a href="' . esc_url( $behance ) . '" target="_blank"><i class="fa fa-behance"></i></a></li>' . "\n";
        }
        if ( $deviantart ) {
            $social_icons .= '<li><a href="' . esc_url( $deviantart ) . '" target="_blank"><i class="fa fa-deviantart"></i></a></li>' . "\n";
        }
        if ( $soundcloud ) {
            $social_icons .= '<li><a href="' . esc_url( $soundcloud ) . '" target="_blank"><i class="fa fa-soundcloud"></i></a></li>' . "\n";
        }
        if ( $yelp ) {
            $social_icons .= '<li><a href="' . esc_url( $yelp ) . '" target="_blank"><i class="fa fa-yelp"></i></a></li>' . "\n";
        }
        if ( $rss ) {
            $social_icons .= '<li><a href="' . esc_url( $rss ) . '" target="_blank"><i class="fa fa-rss"></i></a></li>' . "\n";
        }
        if ( $email ) {
            $social_icons .= '<li><a href="mailto:' . esc_attr( $email ) . '" target="_blank"><i class="fa fa-vk"></i></a></li>' . "\n";
        }
    } else {
        if (empty($twitter)) { $twitter = '#'; }
        if (empty($facebook)) { $facebook = '#'; }
        if (empty($dribbble)) { $dribbble = '#'; }
        if (empty($youtube)) { $youtube = '#'; }
        if (empty($vimeo)) { $vimeo = '#'; }
        if (empty($tumblr)) { $tumblr = '#'; }
        if (empty($skype)) { $skype = '#'; }
        if (empty($linkedin)) { $linkedin = '#'; }
        if (empty($googleplus)) { $googleplus = '#'; }
        if (empty($flickr)) { $flickr = '#'; }
        if (empty($pinterest)) { $pinterest = '#'; }
        if (empty($foursquare)) { $foursquare = '#'; }
        if (empty($instagram)) { $instagram = '#'; }
        if (empty($github)) { $github = '#'; }
        if (empty($xing)) { $xing = '#'; }
        if (empty($behance)) { $behance = '#'; }
        if (empty($deviantart)) { $deviantart = '#'; }
        if (empty($soundcloud)) { $soundcloud = '#'; }
        if (empty($yelp)) { $yelp = '#'; }
        if (empty($rss)) { $rss = '#'; }
        if (empty($email)) { $email = '#'; }
    
        foreach ( $maintenance_social_profile as $id ) {
            if ( ( $id == 'twitter' ) && $twitter ) {
                $social_icons .= '<li><a href="' . esc_url( $twitter ) . '" target="_blank"><i class="fa fa-twitter"></i></a></li>' . "\n";
            }
            if ( ( $id == 'facebook' ) && $facebook ) {
                $social_icons .= '<li><a href="' . esc_url( $facebook ) . '" target="_blank"><i class="fa fa-facebook"></i></a></li>' . "\n";
            }
            if ( ( $id == 'dribbble' ) && $dribbble ) {
                $social_icons .= '<li><a href="' . esc_url( $dribbble ) . '" target="_blank"><i class="fa fa-dribbble"></i></a></li>' . "\n";
            }
            if ( ( $id == 'youtube' ) && $youtube ) {
                $social_icons .= '<li><a href="' . esc_url( $youtube ) . '" target="_blank"><i class="fa fa-youtube"></i></a></li>' . "\n";
            }
            if ( ( $id == 'vimeo' ) && $vimeo ) {
                $social_icons .= '<li><a href="' . esc_url( $vimeo ) . '" target="_blank"><i class="fa fa-vimeo-square"></i></a></li>' . "\n";
            }
            if ( ( $id == 'tumblr' ) && $tumblr ) {
                $social_icons .= '<li><a href="' . esc_url( $tumblr ) . '" target="_blank"><i class="fa fa-tumblr"></i></a></li>' . "\n";
            }
            if ( ( $id == 'skype' ) && $skype ) {
                $social_icons .= '<li><a href="skype:' . esc_attr( $skype ) . '" target="_blank"><i class="fa fa-skype"></i></a></li>' . "\n";
            }
            if ( ( $id == 'linkedin' ) && $linkedin ) {
                $social_icons .= '<li><a href="' . esc_url( $linkedin ) . '" target="_blank"><i class="fa fa-linkedin"></i></a></li>' . "\n";
            }
            if ( ( $id == 'googleplus' ) && $googleplus ) {
                $social_icons .= '<li><a href="' . esc_url( $googleplus ) . '" target="_blank"><i class="fa fa-google-plus"></i></a></li>' . "\n";
            }
            if ( ( $id == 'flickr' ) && $flickr ) {
                $social_icons .= '<li><a href="' . esc_url( $flickr ) . '" target="_blank"><i class="fa fa-flickr"></i></a></li>' . "\n";
            }
            if ( ( $id == 'pinterest' ) && $pinterest ) {
                $social_icons .= '<li><a href="' . esc_url( $pinterest ) . '" target="_blank"><i class="fa fa-pinterest"></i></a></li>' . "\n";
            }
            if ( ( $id == 'foursquare' ) && $foursquare ) {
                $social_icons .= '<li><a href="' . esc_url( $foursquare ) . '" target="_blank"><i class="fa fa-foursquare"></i></a></li>' . "\n";
            }
            if ( ( $id == 'instagram' ) && $instagram ) {
                $social_icons .= '<li><a href="' . esc_url( $instagram ) . '" target="_blank"><i class="fa fa-instagram"></i></a></li>' . "\n";
            }
            if ( ( $id == 'github' ) && $github ) {
                $social_icons .= '<li><a href="' . esc_url( $github ) . '" target="_blank"><i class="fa fa-github"></i></a></li>' . "\n";
            }
            if ( ( $id == 'xing' ) && $xing ) {
                $social_icons .= '<li><a href="' . esc_url( $xing ) . '" target="_blank"><i class="fa fa-xing"></i></a></li>' . "\n";
            }
            if ( ( $id == 'behance' ) && $behance ) {
                $social_icons .= '<li><a href="' . esc_url( $behance ) . '" target="_blank"><i class="fa fa-behance"></i></a></li>' . "\n";
            }
            if ( ( $id == 'deviantart' ) && $deviantart ) {
                $social_icons .= '<li><a href="' . esc_url( $deviantart ) . '" target="_blank"><i class="fa fa-deviantart"></i></a></li>' . "\n";
            }
            if ( ( $id == 'soundcloud' ) && $soundcloud ) {
                $social_icons .= '<li><a href="' . esc_url( $soundcloud ) . '" target="_blank"><i class="fa fa-soundcloud"></i></a></li>' . "\n";
            }
            if ( ( $id == 'yelp' ) && $yelp ) {
                $social_icons .= '<li><a href="' . esc_url( $yelp ) . '" target="_blank"><i class="fa fa-yelp"></i></a></li>' . "\n";
            }
            if ( ( $id == 'rss' ) && $rss ) {
                $social_icons .= '<li><a href="' . esc_url( $rss ) . '" target="_blank"><i class="fa fa-rss"></i></a></li>' . "\n";
            }
            if ( ( $id == 'email' ) && $email ) {
                $social_icons .= '<li><a href="mailto:' . esc_attr( $email ) . '" target="_blank"><i class="fa fa-vk"></i></a></li>' . "\n";
            }
        }
    }
    if (empty($social_icons)) {
        return;
    }
    ?>
    <ul class="maintenance-social-profile-wrapper">
        <?php echo wp_kses_post( $social_icons ); ?>
    </ul>

    We’ll update this in next version.
    Hope this help!

    ****
    Regards,
    HaruTheme

    #5400
    Alexsandros
    Supported

    Ok, thank you, yes indeed there are many plugins.
    I’ll use one plugin whhile you updating it.
    Regards,

    #5403

    Thanks for your feedback!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.