Giter VIP home page Giter VIP logo

Comments (10)

awps avatar awps commented on May 31, 2024

OK. This is not exactly how it works.
The main idea was to have a function which will return all sidebars in an array(that you can use anywhere) and from this array to create an option which will be used to asign one or more sidebar(s) to a page, post etc. So, first of all you must ensure that you have a default sidebar. You must create one in functions.php:

if (function_exists('register_sidebar')) :

    register_sidebar(array(
    'name'          => 'Default Sidebar',
    'id'            => 'defaultside',
    'before_widget' => '<aside class="widget %2$s">',
    'after_widget'  => '</aside><div class="clear"></div>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
    ));

endif;

to display this sidebar you have to write this where you want to display it:

smk_custom_dynamic_sidebar('Sidebar Name')

Sidebar Name is the name of sidebar you want to display, for example to show this which we created in functions.php the code will be like this:

smk_custom_dynamic_sidebar('Default Sidebar')

As many developers have their own metaboxes/theme options frameworks, I haven't created a such option and removed the previous one from original plugin because I thought that it is inutile, but maybe I should create one for flexibity. Let me know if this is what you need...

from smk-sidebar-generator.

awps avatar awps commented on May 31, 2024

I will create a sample as soon as I will have free time. :)

from smk-sidebar-generator.

dlzi avatar dlzi commented on May 31, 2024

Hello,

Yes, it would be nice if you could create some examples. It will be easier to undersand.

Thanks.

from smk-sidebar-generator.

elikem avatar elikem commented on May 31, 2024

I haven't created a such option and removed the previous one from original plugin because I thought that it is inutile, but maybe I should create one for flexibity. Let me know if this is what you need...

Please create one... Thanks.

from smk-sidebar-generator.

awps avatar awps commented on May 31, 2024

@danielzilli , @elikem Hello all. Working to a new version(2.0) which will include more features and let the developer to define the sidebars for individual page very easy. Also this will allow you to add support for your theme to use default sidebar or a custom one(generated). The plugin is almost done(~80%) and should be ready soon. If you have any ideas or want to see a feature included I would like to hear it here[ https://github.com//issues/7 ] and I will see if I can add it. Thanks.

from smk-sidebar-generator.

elikem avatar elikem commented on May 31, 2024

Thanks. Looking forward to the update.


Regards, Eli

On Tue, Aug 6, 2013 at 4:50 PM, Andrei Surdu [email protected]:

@danielzilli https://github.com/danielzilli , @elikemhttps://github.com/elikemHello all. Working to a new version(2.0) which will include more features
and let the developer to define the sidebars for individual page very easy.
Also this will allow you to add support for your theme to use default
sidebar or a custom one(generated). The plugin is almost done(~80%) and
should be ready soon. If you have any ideas or want to see a feature
included I would like to hear it here[ #7https://github.com//issues/7] and I will see if I can add it. Thanks.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-22210224
.

from smk-sidebar-generator.

dlzi avatar dlzi commented on May 31, 2024

Nice to hear from you.

from smk-sidebar-generator.

awps avatar awps commented on May 31, 2024

https://github.com/Smartik89/Wordpress-Sidebar-Generator/tree/2.0b 2.0 Beta is available. Working to the demo theme.

@danielzilli @elikem let me know if you test it. Thank you.

from smk-sidebar-generator.

elikem avatar elikem commented on May 31, 2024

It's working nicely for me.
Thanks!


Regards, Eli

On Tue, Aug 13, 2013 at 1:37 PM, Andrei Surdu [email protected]:

https://github.com/Smartik89/Wordpress-Sidebar-Generator/tree/2.0b 2.0
Beta is available. Working to the demo theme.

@danielzilli https://github.com/danielzilli @elikemhttps://github.com/elikemlet me know if you test it. Thank you.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-22583048
.

from smk-sidebar-generator.

dlzi avatar dlzi commented on May 31, 2024

👍

from smk-sidebar-generator.

Related Issues (20)

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.