Git Product home page Git Product logo

meet-gavernwp's People

Contributors

adaoex avatar aj-adl avatar dziudek avatar normanuk avatar paulpela avatar piotrkunicki avatar shtier avatar tbarthelet avatar zachbornheimer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

meet-gavernwp's Issues

Fatal error: Cannot redeclare _verify_isactivate_widgets()

Hey there @ GavickPro :)
Have changed my Webspace to PHP 5.3 but still can't make it work :| My error Message is:

Fatal error: Cannot redeclare _verify_isactivate_widgets() (previously declared in /var/www/html/wp/wp-content/themes/MeetGavernWP/functions.php:128) in /var/www/html/wp/wp-content/themes/MeetGavernWP/gavern/functions.php on line 184

Any idea?
Thanks for your great work!

Easier implementation of menu

To avoid including long code like this:

wp_nav_menu(array(
                      'theme_location'  => 'usermenu',
                      'container'       => 'menu', 
                      'container_class' => 'menu-{menu slug}-container', 
                      'container_id'    => 'gk-usermenu',
                      'menu_class'      => 'menu ' . $tpl->menu['usermenu']['style'], 
                      'menu_id'         => 'usermenu',
                      'echo'            => true,
                      'fallback_cb'     => 'wp_page_menu',
                      'before'          => '',
                      'after'           => '',
                      'link_before'     => '',
                      'link_after'      => '',
                      'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
                      'depth'           => $tpl->menu['usermenu']['depth'],
                      'walker'          => new GKMenuWalker()
));

Install of Quickstart

Installed quickstart, and noticed no content, or the correct theme. When I attempted to install the Gavick theme, the site is down showing the following:

Fatal error: Call to undefined function json_last_error() in /homepages/42/d378325884/htdocs/WORDPRESS/wp-content/themes/MeetGavernWP/gavern/base.php on line 379

Helper files contains same code.

Using latest files I believe you accidentally renamed or overwritten helpers/helpers.layout.php file.

Following files contains same code besides added google profile in layout.php where it should be in *fragments.php;
MeetGavernWP/gavern/helpers/helpers.layout.php
MeetGavernWP/gavern/helpers/helpers.layout.fragments.php

Google Profile in the Author block

Originally via @NormanUK:

How about adding google author profile which shows a picture of author from google profile on google search.
Code not tested.


 if(
        get_the_author_meta( 'google_profile' ) && 
        get_option($tpl->name . '_template_show_author_google_profile') == 'Y'
        ){
        $google_profile = get_the_author_meta( 'google_profile' );
        echo '

Authors Google Profile

'; }

See you around...

Menu selector enhancements

For the current menu item I recommend to use:

#main-menu > li.current-menu-item > a,
#main-menu > li.current_page_item > a,
#main-menu > li.current-menu-ancestor > a, 
#main-menu > li.current-menu-parent > a 

instead of:

#main-menu > li.current-menu-item > a,
#main-menu > li.current_page_item > a

Update widgets to use the Transient API

The built-in widgets needs to be updated for using the Transient API, because the WP Cache class works only when the Persistent Cache plugin is installed on WP.

Back to top Scroll

Little bit scrolling on back to top link as currently it just jumps to top.


// onDOMLoadedContent event
jQuery(document).ready(function() { 
    // Back to Top Scroll
    jQuery('#gk-top-link').click(function () {
        jQuery('body,html').animate({
            scrollTop: 0
        }, 800);
        return false;
    });
    // Thickbox use

See you around...

Fonts selection fix

the function should parse font-family names with spaces to &apos:

$normal = str_replace(
                    array(
                        "Times New Roman",
                        "Trebuchet MS",
                        "Arial Black",
                        "Palatino Linotype",
                        "Book Antiqua",
                        "Lucida Sans Unicode",
                        "Lucida Grande",
                        "MS Serif",
                        "New York",
                        "Comic Sans MS",
                        "Courier New",
                        "Lucida Console",
                    ),
                    array(
                        "'Times New Roman'",
                        "'Trebuchet MS'",
                        "'Arial Black'",
                        "'Palatino Linotype'",
                        "'Book Antiqua'",
                        "'Lucida Sans Unicode'",
                        "'Lucida Grande'",
                        "'MS Serif'",
                        "'New York'",
                        "'Comic Sans MS'",
                        "'Courier New'",
                        "'Lucida Console'",
                    ),
                    $normal
                );

it needs also improvements in the fonts.php file.

Then user will be able to select font families with names containing spaces.

Translation

Hi,

When I translated into Russian, I found a couple of troubles.

  1. Line 246 standart.php:

<input id="'.($this->tpl->name).'_'.($this->name).'_button" class="gkMedia" type="button" value="Upload Image" />

Should be replaced by:

<input id="'.($this->tpl->name).'_'.($this->name).'_button" class="gkMedia" type="button" value="'.__('Upload Image', GKTPLNAME).'" />

  1. Add this line in the pot file (26 line comments.php):
    msgid "One thought on “%2$s”"
    msgid_plural "%1$s thoughts on “%2$s”"
    msgstr[0] ""
    msgstr[1] ""
    At the same time need to add "Plural-Forms: nplurals=2; plural=(n != 1)\n"

  2. File shortcodes.elements.css line 66 - not very comfortable content="only members". for the Russian to change the encoding to UTF8 -> not everyone will understand

  3. Add pot file this line

    : gavern.helpers.helpers.layout.fragments.php:349

    msgid "Author: %s %s"
    msgstr ""

P.S. May be necessary to make a repository for the language, as did Yootheme. Very convenient. I would have shared with a Russian translation.

Regards

Shtier

Update not showing unless theme is active

Every theme/plugin which is installed (active or not) shows up on the Updates page, when there is an update available.
23-8 a new update was released, but it only shows within the framework when the theme is active. This is not a normal behaviour within wordpress.

Widget rules enhancement

in the helpers.layouts.php at gk_condition function we should replace part of the code with:

                        if(stripos($input[$i], 'homepage') !== FALSE) {
                $output .= ' is_home() ';
            } else if(stripos($input[$i], 'page:') !== FALSE) {
                $output .= ' is_page(\'' . substr($input[$i], 5) . '\') ';
            } else if(stripos($input[$i], 'post:') !== FALSE) {
                $output .= ' is_single(\'' . substr($input[$i], 5) . '\') ';
            } else if(stripos($input[$i], 'category:') !== FALSE) {
                $output .= ' (is_category(\'' . substr($input[$i], 9) . '\') || (in_category(\'' . substr($input[$i], 9) . '\') && is_single())) ';
            } else if(stripos($input[$i], 'tag:') !== FALSE) {
                $output .= ' (is_tag(\'' . substr($input[$i], 4) . '\') || (has_tag(\'' . substr($input[$i], 4) . '\') && is_single())) ';
            }

it fixes a problem with strange widget rules detection.

Enhancements for the future versions

  1. page styles - advanced search
  2. Widget rules - value "Own CSS class" => additional field for own CSS classes
  3. Custom fields for pages - depending from page templates
  4. Contact form - options to manage fields available in the form (on/off)
  5. Fresh template for mails from the contact form
  6. Support for showing menu item descriptions
  7. Shortcode - Paypal
  8. Shortcode - Adsense
  9. More page templates: http://www.catswhocode.com/blog/10-wordpress-page-templates-for-all-needs
  10. Shortcode tabs
  11. Shortcode image show
  12. Shortcode lightbox
  13. New feature: http://wp.tutsplus.com/articles/tips-articles/quick-tip-next-and-previous-posts-with-thumbnails/
  14. NSP (simple widget delivered with the template)
  15. Tabs (simple widget delivered with the template)
  16. Widget rules in the toggle block
  17. Theme Customizer compatible with the GavernWP JSON files
  18. More options in the Theme Customizer
  19. Extensible Social API
  20. Typography - button links
  21. CSS + JS compression
  22. EU Cookie Law implementation
  23. Username-less login as in Meet Gavern for Joomla!
  24. Widget rules for breadcrumbs etc. (Widget Rules interface)
  25. Better styling Gallery Page

In progress (v.1.4):
4) Support for reCaptcha in contact form
5) Contact form - option to send copy of the message
12) Shortcode used to embed widgets in the text
19) Option to show the Author block in the selected posts
23) Options to add the code in the head and before closing body tag
30) Columns shortcode - double width columns as option

In progress (v.1.5):

Done:
24) Import/Export using drag'n'drop
29) Saving last selected admin panel tab in the cookie

Can't download the theme

Hi there,

The theme looks just great.

My problem is that I can't download the theme. I get a ".raw" extension that doesn't let me download the theme. I'm using Chrome and Firefox.

Regards.

Custom post type fields

Hi,

I am lost with this.
I want to add custom fields to posts, but I don't know where to start with the Gavern Framework on WordPress.
I 'ld like to do this the right way.

I've read all the documentation on Gavick website.

As it's a free theme, I cannot ask a question in the Gavick Forum.
So that's why I post this here.

When it is not appreciated here, I appologize.
But I don't know where to go else.

Regards

JB

Improvement for the Archive page template

for the stuff.css file new section 7.4:

/* 7.4. Archive page template
==================================== */

.archivepage .widget {
    float: left;
    margin: 0 2%;
    width: 29%;
}

.archivepage .widget.first {
    margin-left: 0;
    width: 31%;
}

.archivepage .widget.last {
    margin-right: 0;
    width: 31%;
}

.archivepage .widget li:before {
    display: none;
}

.archivepage .widget.first li {
    position: relative;
}

.archivepage .widget.first li a {
    display: block;
    padding-left: 54px;
}

.archivepage .widget li small {
    color: #aaa;
    left: 0;
    position: absolute;
    top: 7px;
}

it fixes a problem with the long post titles in the first column

Comments enhancements

The children comments should be displayed in the OL not UL. It needs to change the comments.php file:

<?php wp_list_comments(array( 'callback' => 'gavern_comment_template', 'style' => 'ol' )); ?>

and selector:

#comments ul.children

to:

#comments ol.children

Improvements in the author block

The gk_author function should be changed to:

/**
 *
 * Function to generate the author info block
 *
 * @return null
 *
 **/
function gk_author() {
    global $tpl;

    if(
        get_the_author_meta( 'description' ) && 
        get_option($tpl->name . '_template_show_author_info') == 'Y'
    ): 
    ?>
    <section class="author-info">
        <aside class="author-avatar">
            <?php echo get_avatar( get_the_author_meta( 'user_email' ), 48 ); ?>
        </aside>
        <div class="author-desc">
            <h2>
                <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
                    <?php printf( __( 'Author: %s %s', GKTPLNAME ), get_the_author_meta('first_name', get_the_author_meta( 'ID' )), get_the_author_meta('last_name', get_the_author_meta( 'ID' )) ); ?> 
                </a>
            </h2>
            <?php the_author_meta( 'description' ); ?>
        </div>
    </section>
    <?php 
    endif;
}

then it will shows the author full name instead of the nickname.

Fix for the attachment.php file

Fragment:

        <?php if(is_singular()) : ?>
        <footer>
            <?php gk_post_footer(); ?>
            <?php gk_social_api(get_the_title(), get_the_ID()); ?>
        </footer>
        <?php endif; ?>

should be replaced with:

<?php include('layouts/content.post.footer.php'); ?>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.