New Landing How can we help? General Feedback & Suggestions Typekit in Redux Framework and settings for Maintenance Mode

Viewing 7 posts - 1 through 7 (of 7 total)
  • #219884
    jimpalompa
    Member
    Post count: 16

    Hi, just purchased your theme Atelier and it suits our site like a glove!

    There are some things I would like to see in the future updates:

    * Please include Typekit options in the Redux framework, I’ve seen this feature in other themes (the one we’re using now anyways). Your solution using a custom css with !important tags is not optimal ๐Ÿ™

    * Another nice feature you have is the Maintenance Mode setting, that means one less plugin needed when using Atelier ๐Ÿ™‚ There would be nice if we could have more options along with the regular settings like:

    Access by role: Shop Manager, Subscriber etc.
    Access by IP: allow visitors from certain IPs to access the page.

    These maintenance settings would allow clients/developers to preview the site in other ways than using an Admin account.

    Just some ideas / Jimmy

    #220173
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Glad you are enjoying the theme.
    Thanks for the input. Will forward the suggestion to the development team.

    -Rui

    #220476
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Thanks for the feedback – will consider those for future updates.

    – Ed

    #220628
    jimpalompa
    Member
    Post count: 16

    Sounds good ๐Ÿ˜‰

    If we could have a textfield in the font options called “Typekit ID” and when it is filled with ID, the necessary javascript is loaded. See http://help.typekit.com/customer/portal/articles/649336

    Then we could have a checkbox next to each font option “Use Typekit” and when checked the font dropdown changes to a textfield where we can fill in our font name. Keeping all the other font options (size, line-height, weight etc.) as the standard fonts has.

    My temporary fix for Typekit is to simply edit the field_typography.php in the swiftframework plugin, and append the standard fonts with my Typekit like so:

    
                ...
                "'Trebuchet MS', Helvetica, sans-serif"                => "'Trebuchet MS', Helvetica, sans-serif",
                "Verdana, Geneva, sans-serif"                          => "Verdana, Geneva, sans-serif",
                "jubilat, sans-serif"                                  => "jubilat, sans-serif",
                "brandon-grotesque, sans-serif"                        => "brandon-grotesque, sans-serif",
            );
    

    I may have to do this every time I update the plugin, but I’d rather do that instead of using a lot of !important tags in the css ๐Ÿ™‚

    As for the maintenance thing, using “access by IP” makes it really easy to preview the page without login in when launching a new site. It also helps developers to show the work progress for clients, and if we could let shop managers (capability: manage_woocommerce) and other users access the page while in maintenance, they could add their products while developers are working on the design and features.

    My temporary fix for Maintenance is to add this to my functions.php:

    
    add_action( 'get_header', 'sf_maintenance_mode' );
    if ( ! function_exists( 'sf_maintenance_mode' ) ) {
        function sf_maintenance_mode() {
            global $sf_options;
            $custom_logo        = array();
            $custom_logo_output = $maintenance_mode = "";
            if ( isset( $sf_options['custom_admin_login_logo'] ) ) {
                $custom_logo = $sf_options['custom_admin_login_logo'];
            }
            if ( isset( $custom_logo['url'] ) ) {
                $custom_logo_output = '<img src="' . $custom_logo['url'] . '" alt="maintenance" style="margin: 0 auto; display: block;" />';
            } else {
                $custom_logo_output = '<img src="' . get_template_directory_uri() . '/images/custom-login-logo.png" alt="maintenance" style="margin: 0 auto; display: block;" />';
            }
    
            if ( isset( $sf_options['enable_maintenance'] ) ) {
                $maintenance_mode = $sf_options['enable_maintenance'];
            } else {
                $maintenance_mode = false;
            }
    
            if ( $maintenance_mode == 2 ) {
    
                $holding_page     = __( $sf_options['maintenance_mode_page'], 'swiftframework' );
                $current_page_URL = sf_current_page_url();
                $holding_page_URL = get_permalink( $holding_page );
                $ip = $_SERVER['REMOTE_ADDR']; // added
                $allowed = array('XXX.XXX.XXX.XXX','XXX.XXX.XXX.XXX'); // added
    
                if ( $current_page_URL != $holding_page_URL ) {
                    // if ( ! current_user_can( 'edit_themes' ) || ! is_user_logged_in() ) {
                    if ( ! in_array($ip, $allowed) ) { // changed
                        wp_redirect( $holding_page_URL );
                        exit;
                    }
                }
    
            } else if ( $maintenance_mode == 1 ) {
                if ( ! current_user_can( 'edit_themes' ) || ! is_user_logged_in() ) {
                    wp_die( $custom_logo_output . '<p style="text-align:center">' . __( 'We are currently in maintenance mode, please check back shortly.', 'swiftframework' ) . '</p>', get_bloginfo( 'name' ) );
                }
            }
        }
    }
    

    Thanks again for the smoothest theme I’ve worked with yet.

    Cheers!

    #220708
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks for providing your modifications, we will look into what we can do with these going forward.

    Cheers,
    David.

    #315860
    jensche
    Member
    Post count: 21

    Any News regarding Typekit fonts?

    #315984
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @jensche

    We are going to try and look at this for the next update, as part of the feature additions for that update.

    Thanks,

    – Ed

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register