Wc no

Ivelina Dimova
Ivelina DimovaDeveloper at Crowd Favorite
The Power of Option
    Frameworks
Me, myself and
   WordPress
WordPress Themes
And even better ones
Wc no
Wc no
Option frameworks
Option frameworks

    Creating theme options never been
    easier


    Sanitization and Validation


    Easier to reuse


    Fancy option fields
Options Framework
           Plugin
demo-theme/options.php => theme root folder


$multicheck_array = array(
'one' => __('French Toast',
  'options_check'),
'two' => __('Pancake', 'options_check'),
'three' => __('Omelette', 'options_check'),
'four' => __('Crepe', 'options_check'),
'five' => __('Waffle', 'options_check')
);
of_get_option('example_text_mini', 'no
entry');
NHP Theme Options
    Framework
functions.php -> get_template_part('nhp',
'options');

nhp-options.php:

array(
   'id' => '4',
   'type' => 'text',
   'title' => __('Text Option - Numeric
    Validated', 'nhp-opts'),
   'sub_desc' => __('Numeric.', 'nhp-opts'),
   'desc' => __('Description.', 'nhp-opts'),
   'validate' => 'numeric',
   'std' => '0',
   'class' => 'small-text'
),
global $NHP_Options;
$NHP_Options = new NHP_Options($sections,
$args);
->get & show methods
ProPanel
$sample_text_field =
get_option('yourtheme_sample_text_field');
echo $sample_text_field;
CheezCap

     require_once('cheezcap/cheezcap.php');

     cheezcap/config.php:
new BooleanOption(
'Simple Boolean Example',
'This will create a simple true/false switch
  with default of "true".',
'simple_boolean_example',
true
),
if ($cap->my_boolean_option) {
// do stuff
}
Up Themes Framework
if( file_exists(get_template_directory().
'/options/options.php') )
  include_once(get_template_directory().
'/options/options.php');


register_theme_options();
register_theme_options_tab();
Up Themes Framework
$options = array(
"font_color" => array(
   "tab" => "colors_and_images",
   "name" => "font_color",
   "title" => "Font Color",
   "description" => __( "Select a font color
for your theme", "example" ),
   "section" => "color_scheme",
   "since" => "1.0",
       "id" => "color_scheme",
       "type" => "text",
       "default" => "Copyright 2012 UpThemes"
   )
);
Wc no
Comparison


    Updates and support

      
          Variety of needed options

           
               Reusing
Contacts

    @iv_wp

    http://it.ivdimova.com

    http://www.linkedin.com/in/ivdimov
    a
Wc no
1 of 23

More Related Content

What's hot(20)

Drupal 8 版型開發變革Drupal 8 版型開發變革
Drupal 8 版型開發變革
Chris Wu1.5K views
Love TwigLove Twig
Love Twig
Antonio Peric-Mazar4.2K views
Drupal module developmentDrupal module development
Drupal module development
Damjan Cvetan515 views
Dependency injection - phpday 2010Dependency injection - phpday 2010
Dependency injection - phpday 2010
Fabien Potencier4.3K views
Drupal 8: FormsDrupal 8: Forms
Drupal 8: Forms
drubb1.8K views
Twig Brief, Tips&TricksTwig Brief, Tips&Tricks
Twig Brief, Tips&Tricks
Andrei Burian670 views
ApostropheApostrophe
Apostrophe
tompunk5.4K views
Making Sense of TwigMaking Sense of Twig
Making Sense of Twig
Brandon Kelly16.3K views
Drupal 8: ThemingDrupal 8: Theming
Drupal 8: Theming
drubb2.2K views
Ch8(oop)Ch8(oop)
Ch8(oop)
Chhom Karath179 views
Wp queryWp query
Wp query
Savita Soni6.6K views
Dependency injection-zendcon-2010Dependency injection-zendcon-2010
Dependency injection-zendcon-2010
Fabien Potencier9.3K views
The state of Symfony2 - SymfonyDay 2010The state of Symfony2 - SymfonyDay 2010
The state of Symfony2 - SymfonyDay 2010
Fabien Potencier1.9K views
Apache Velocity 1.6Apache Velocity 1.6
Apache Velocity 1.6
Henning Schmiedehausen5.1K views

Viewers also liked(20)

From GNETS to Home SchoolFrom GNETS to Home School
From GNETS to Home School
eeniarrol686 views
PlatyhelmithesPlatyhelmithes
Platyhelmithes
Dhea Pangestu1.1K views
Agile Tour Toulouse 2015 - EkitoAgile Tour Toulouse 2015 - Ekito
Agile Tour Toulouse 2015 - Ekito
Agile Toulouse404 views
Ke arah kesatuan gerakan islam   fathi yakanKe arah kesatuan gerakan islam   fathi yakan
Ke arah kesatuan gerakan islam fathi yakan
Kammi Daerah Serang962 views
Ambient project in eksis komunikaAmbient project in eksis komunika
Ambient project in eksis komunika
Muhammad Hibatullah480 views
Rails 3: Dashing to the FinishRails 3: Dashing to the Finish
Rails 3: Dashing to the Finish
Yehuda Katz29.1K views
Derechos de autor entregaDerechos de autor entrega
Derechos de autor entrega
Camilo Diaz294 views
Replik tergugat-i-doneReplik tergugat-i-done
Replik tergugat-i-done
Nicholas Dammen Jr1.4K views
Google chrome   chromebooksGoogle chrome   chromebooks
Google chrome chromebooks
Brandon Raymo728 views
Tugas 1Tugas 1
Tugas 1
Gressi Dwiretno5.7K views
Mekanisme  Evolusi 1 A ( Ch 22)Mekanisme  Evolusi 1 A ( Ch 22)
Mekanisme Evolusi 1 A ( Ch 22)
Biodas Unsoed2.6K views
Sistemas visuais do cotidiano - EtecSistemas visuais do cotidiano - Etec
Sistemas visuais do cotidiano - Etec
Benedict-BrandCrafters530 views
Promoting your business flyerPromoting your business flyer
Promoting your business flyer
dgamache246 views
Presentation kakaPresentation kaka
Presentation kaka
Zinat Tamami361 views
President's List Honors President's List Honors
President's List Honors
Deborah Schwebius139 views
PKL_Report bodyPKL_Report body
PKL_Report body
Titis Rohmah M2.6K views

Similar to Wc no(20)

Building Potent WordPress WebsitesBuilding Potent WordPress Websites
Building Potent WordPress Websites
Kyle Cearley2.5K views
Theme APITheme API
Theme API
rolfvandekrol1.6K views
WordPress Cuztom HelperWordPress Cuztom Helper
WordPress Cuztom Helper
slicejack1.2K views
WordCamp Praga 2015WordCamp Praga 2015
WordCamp Praga 2015
Tomasz Dziuda4K views
Drupal 7 Theming - Behind the scenes Drupal 7 Theming - Behind the scenes
Drupal 7 Theming - Behind the scenes
ramakesavan10.5K views
Unit testing zend framework appsUnit testing zend framework apps
Unit testing zend framework apps
Michelangelo van Dam2.6K views
Unit testing with zend framework PHPBeneluxUnit testing with zend framework PHPBenelux
Unit testing with zend framework PHPBenelux
Michelangelo van Dam4.6K views
Victoria wordpressVictoria wordpress
Victoria wordpress
Flynn O'Connor1.2K views
Unit testing with zend framework tek11Unit testing with zend framework tek11
Unit testing with zend framework tek11
Michelangelo van Dam3.6K views
Developing For The WordPress CustomizerDeveloping For The WordPress Customizer
Developing For The WordPress Customizer
Anthony Hortin309 views
Developing for the WordPress CustomizerDeveloping for the WordPress Customizer
Developing for the WordPress Customizer
Anthony Hortin749 views
How to make a WordPress themeHow to make a WordPress theme
How to make a WordPress theme
Hardeep Asrani492 views
Let's write secure Drupal code!Let's write secure Drupal code!
Let's write secure Drupal code!
Balázs Tatár441 views
WordPress Theme Workshop: MenusWordPress Theme Workshop: Menus
WordPress Theme Workshop: Menus
David Bisset57 views

More from Ivelina Dimova(7)

The Magic of Advanced DebuggingThe Magic of Advanced Debugging
The Magic of Advanced Debugging
Ivelina Dimova142 views
The WordPress developer's toolkit The WordPress developer's toolkit
The WordPress developer's toolkit
Ivelina Dimova563 views
Professional deploymentProfessional deployment
Professional deployment
Ivelina Dimova944 views
Git TricksGit Tricks
Git Tricks
Ivelina Dimova944 views
WordCamp London 2013WordCamp London 2013
WordCamp London 2013
Ivelina Dimova2K views
WordCamp Sofia 2012WordCamp Sofia 2012
WordCamp Sofia 2012
Ivelina Dimova1.1K views

Wc no