Skip to content

Instantly share code, notes, and snippets.

@contempoinc
Created July 11, 2015 18:44
Show Gist options
  • Save contempoinc/3496c1676733cb752937 to your computer and use it in GitHub Desktop.
Save contempoinc/3496c1676733cb752937 to your computer and use it in GitHub Desktop.
<?php
if ( !class_exists( "ReduxFramework" ) ) {
return;
}
if ( !class_exists( "Redux_Framework__9a2bfceb1255a1560bdc6a3" ) ) {
class Redux_Framework__9a2bfceb1255a1560bdc6a3 {
public function __construct( ) {
// Your base config file for Redux
add_action( 'after_setup_theme', array($this, 'loadConfig') );
// Data migration
add_action("after_switch_theme", array($this, "migrate_old_data"), 10 , 2);
}
public function loadConfig() {
$sections = array (
array (
'title' => 'General Settings',
'fields' => array (
array (
'desc' => 'Choose if you would like to use the multi-listing or single listing layout mode. Multi is for sites that list multiple listings, Single is useful for featuring one listing on the homepage (no navigation, or other pages are used) just the single page with listing & agent info, mapping and contact form.',
'id' => 'ct_mode',
'type' => 'select',
'options' => array (
'multi-listing' => 'Multi-Listing',
'single-listing' => 'Single Listing',
),
'title' => 'Multi-Listing or Single Listing Mode?',
'default' => 'Multi-Listing',
),
array (
'desc' => 'Choose if you would like to a full width or boxed layout.',
'id' => 'ct_boxed',
'type' => 'select',
'options' => array (
'full-width' => 'Full Width',
'boxed' => 'Boxed',
),
'title' => 'Full Width or Boxed Layout?',
'default' => 'Full Width',
),
array (
'desc' => 'Select an alternative font.',
'id' => 'ct_heading_font',
'type' => 'select',
'options' => array (
'default' => 'Default',
'Helvetica' => 'Helvetica',
'Helvetica Neue' => 'Helvetica Neue',
'Arial' => 'Arial',
'Georgia' => 'Georgia',
'Lucida Sans Unicode' => 'Lucida Sans Unicode',
'Times New Roman' => 'Times New Roman',
'Verdana' => 'Verdana',
'Abel' => 'Abel',
'Abril Fatface' => 'Abril Fatface',
'Aclonica' => 'Aclonica',
'Actor' => 'Actor',
'Adamina' => 'Adamina',
'Aguafina Script' => 'Aguafina Script',
'Aladin' => 'Aladin',
'Aldrich' => 'Aldrich',
'Alice' => 'Alice',
'Alike Angular' => 'Alike Angular',
'Alike' => 'Alike',
'Allan' => 'Allan',
'Allerta Stencil' => 'Allerta Stencil',
'Allerta' => 'Allerta',
'Amaranth' => 'Amaranth',
'Amatic SC' => 'Amatic SC',
'Andada' => 'Andada',
'Andika' => 'Andika',
'Annie Use Your Telescope' => 'Annie Use Your Telescope',
'Anonymous Pro' => 'Anonymous Pro',
'Antic' => 'Antic',
'Anton' => 'Anton',
'Arapey' => 'Arapey',
'Architects Daughter' => 'Architects Daughter',
'Arimo' => 'Arimo',
'Artifika' => 'Artifika',
'Arvo' => 'Arvo',
'Asset' => 'Asset',
'Astloch' => 'Astloch',
'Atomic Age' => 'Atomic Age',
'Aubrey' => 'Aubrey',
'Bangers' => 'Bangers',
'Bentham' => 'Bentham',
'Bevan' => 'Bevan',
'Bigshot One' => 'Bigshot One',
'Bitter' => 'Bitter',
'Black Ops One' => 'Black Ops One',
'Bowlby One SC' => 'Bowlby One SC',
'Bowlby One' => 'Bowlby One',
'Brawler' => 'Brawler',
'Bubblegum Sans' => 'Bubblegum Sans',
'Buda' => 'Buda',
'Butcherman Caps' => 'Butcherman Caps',
'Cabin Condensed' => 'Cabin Condensed',
'Cabin Sketch' => 'Cabin Sketch',
'Cabin' => 'Cabin',
'Cagliostro' => 'Cagliostro',
'Calligraffitti' => 'Calligraffitti',
'Candal' => 'Candal',
'Cantarell' => 'Cantarell',
'Cardo' => 'Cardo',
'Carme' => 'Carme',
'Carter One' => 'Carter One',
'Caudex' => 'Caudex',
'Cedarville' => 'Cedarville',
'Changa One' => 'Changa One',
'Cherry Cream Soda' => 'Cherry Cream Soda',
'Chewy' => 'Chewy',
'Chicle' => 'Chicle',
'Chivo' => 'Chivo',
'Coda Caption' => 'Coda Caption',
'Coda' => 'Coda',
'Comfortaa' => 'Comfortaa',
'Coming Soon' => 'Coming Soon',
'Contrail One' => 'Contrail One',
'Convergence' => 'Convergence',
'Cookie' => 'Cookie',
'Copse' => 'Copse',
'Corben' => 'Corben',
'Cousine' => 'Cousine',
'Coustard' => 'Coustard',
'Covered By Your Grace' => 'Covered By Your Grace',
'Crafty Girls' => 'Crafty Girls',
'Creepster Caps' => 'Creepster Caps',
'Crimson Text' => 'Crimson Text',
'Crushed' => 'Crushed',
'Cuprum' => 'Cuprum',
'Damion' => 'Damion',
'Dancing Script' => 'Dancing Script',
'Dawning of a New Day' => 'Dawning of a New Day',
'Days One' => 'Days One',
'Delius Swash Caps' => 'Delius Swash Caps',
'Delius Unicase' => 'Delius Unicase',
'Delius' => 'Delius',
'Devonshire' => 'Devonshire',
'Didact Gothic' => 'Didact Gothic',
'Dorsa' => 'Dorsa',
'Dr Sugiyama' => 'Dr Sugiyama',
'Droid Sans Mono' => 'Droid Sans Mono',
'Droid Sans' => 'Droid Sans',
'Droid Serif' => 'Droid Serif',
'EB Garamond' => 'EB Garamond',
'Eater Caps' => 'Eater Caps',
'Expletus Sans' => 'Expletus Sans',
'Fanwood Text' => 'Fanwood Text',
'Federant' => 'Federant',
'Federo' => 'Federo',
'Fjord One' => 'Fjord One',
'Fondamento' => 'Fondamento',
'Fontdiner Swanky' => 'Fontdiner Swanky',
'Forum' => 'Forum',
'Francois One' => 'Francois One',
'Gentium Basic' => 'Gentium Basic',
'Gentium Book Basic' => 'Gentium Book Basic',
'Geo' => 'Geo',
'Geostar Fill' => 'Geostar Fill',
'Geostar' => 'Geostar',
'Give You Glory' => 'Give You Glory',
'Gloria Hallelujah' => 'Gloria Hallelujah',
'Goblin One' => 'Goblin One',
'Gochi Hand' => 'Gochi Hand',
'Goudy Bookletter 1911' => 'Goudy Bookletter 1911',
'Gravitas One' => 'Gravitas One',
'Gruppo' => 'Gruppo',
'Hammersmith One' => 'Hammersmith One',
'Herr Von Muellerhoff' => 'Herr Von Muellerhoff',
'Holtwood One SC' => 'Holtwood One SC',
'Homemade Apple' => 'Homemade Apple',
'IM Fell DW Pica SC' => 'IM Fell DW Pica SC',
'IM Fell DW Pica' => 'IM Fell DW Pica',
'IM Fell Double Pica SC' => 'IM Fell Double Pica SC',
'IM Fell Double Pica' => 'IM Fell Double Pica',
'IM Fell English SC' => 'IM Fell English SC',
'IM Fell English' => 'IM Fell English',
'IM Fell French Canon SC' => 'IM Fell French Canon SC',
'IM Fell French Canon' => 'IM Fell French Canon',
'IM Fell Great Primer SC' => 'IM Fell Great Primer SC',
'IM Fell Great Primer' => 'IM Fell Great Primer',
'Iceland' => 'Iceland',
'Inconsolata' => 'Inconsolata',
'Indie Flower' => 'Indie Flower',
'Irish Grover' => 'Irish Grover',
'Istok Web' => 'Istok Web',
'Jockey One' => 'Jockey One',
'Josefin Sans' => 'Josefin Sans',
'Josefin Slab' => 'Josefin Slab',
'Judson' => 'Judson',
'Julee' => 'Julee',
'Jura' => 'Jura',
'Just Another Hand' => 'Just Another Hand',
'Just Me Again Down Here' => 'Just Me Again Down Here',
'Kameron' => 'Kameron',
'Kelly Slab' => 'Kelly Slab',
'Kenia' => 'Kenia',
'Knewave' => 'Knewave',
'Kranky' => 'Kranky',
'Kreon' => 'Kreon',
'Kristi' => 'Kristi',
'La Belle Aurore' => 'La Belle Aurore',
'Lancelot' => 'Lancelot',
'Lato' => 'Lato',
'League Script' => 'League Script',
'Leckerli One' => 'Leckerli One',
'Lekton' => 'Lekton',
'Lemon' => 'Lemon',
'Limelight' => 'Limelight',
'Linden Hill' => 'Linden Hill',
'Lobster Two' => 'Lobster Two',
'Lobster' => 'Lobster',
'Lora' => 'Lora',
'Love Ya Like A Sister' => 'Love Ya Like A Sister',
'Loved by the King' => 'Loved by the King',
'Luckiest Guy' => 'Luckiest Guy',
'Maiden Orange' => 'Maiden Orange',
'Mako' => 'Mako',
'Marck Script' => 'Marck Script',
'Marvel' => 'Marvel',
'Mate SC' => 'Mate SC',
'Mate' => 'Mate',
'Maven Pro' => 'Maven Pro',
'Meddon' => 'Meddon',
'MedievalSharp' => 'MedievalSharp',
'Megrim' => 'Megrim',
'Merienda One' => 'Merienda One',
'Merriweather' => 'Merriweather',
'Metrophobic' => 'Metrophobic',
'Michroma' => 'Michroma',
'Miltonian Tattoo' => 'Miltonian Tattoo',
'Miltonian' => 'Miltonian',
'Miss Fajardose' => 'Miss Fajardose',
'Miss Saint Delafield' => 'Miss Saint Delafield',
'Modern Antiqua' => 'Modern Antiqua',
'Molengo' => 'Molengo',
'Monofett' => 'Monofett',
'Monoton' => 'Monoton',
'Monsieur La Doulaise' => 'Monsieur La Doulaise',
'Montez' => 'Montez',
'Montserrat' => 'Montserrat',
'Mountains of Christmas' => 'Mountains of Christmas',
'Mr Bedford' => 'Mr Bedford',
'Mr Dafoe' => 'Mr Dafoe',
'Mr De Haviland' => 'Mr De Haviland',
'Mrs Sheppards' => 'Mrs Sheppards',
'Muli' => 'Muli',
'Neucha' => 'Neucha',
'Neuton' => 'Neuton',
'News Cycle' => 'News Cycle',
'Niconne' => 'Niconne',
'Nixie One' => 'Nixie One',
'Nobile' => 'Nobile',
'Nosifer Caps' => 'Nosifer Caps',
'Nothing You Could Do' => 'Nothing You Could Do',
'Nova Cut' => 'Nova Cut',
'Nova Flat' => 'Nova Flat',
'Nova Mono' => 'Nova Mono',
'Nova Oval' => 'Nova Oval',
'Nova Round' => 'Nova Round',
'Nova Script' => 'Nova Script',
'Nova Slim' => 'Nova Slim',
'Nova Square' => 'Nova Square',
'Numans' => 'Numans',
'Nunito' => 'Nunito',
'Old Standard TT' => 'Old Standard TT',
'Open Sans Condensed' => 'Open Sans Condensed',
'Open Sans' => 'Open Sans',
'Orbitron' => 'Orbitron',
'Oswald' => 'Oswald',
'Over the Rainbow' => 'Over the Rainbow',
'Ovo' => 'Ovo',
'PT Sans Caption' => 'PT Sans Caption',
'PT Sans Narrow' => 'PT Sans Narrow',
'PT Sans' => 'PT Sans',
'PT Serif Caption' => 'PT Serif Caption',
'PT Serif' => 'PT Serif',
'Pacifico' => 'Pacifico',
'Passero One' => 'Passero One',
'Patrick Hand' => 'Patrick Hand',
'Paytone One' => 'Paytone One',
'Permanent Marker' => 'Permanent Marker',
'Petrona' => 'Petrona',
'Philosopher' => 'Philosopher',
'Piedra' => 'Piedra',
'Pinyon Script' => 'Pinyon Script',
'Play' => 'Play',
'Playfair Display' => 'Playfair Display',
'Podkova' => 'Podkova',
'Poller One' => 'Poller One',
'Poly' => 'Poly',
'Pompiere' => 'Pompiere',
'Prata' => 'Prata',
'Prociono' => 'Prociono',
'Puritan' => 'Puritan',
'Quattrocento Sans' => 'Quattrocento Sans',
'Quattrocento' => 'Quattrocento',
'Questrial' => 'Questrial',
'Quicksand' => 'Quicksand',
'Radley' => 'Radley',
'Raleway' => 'Raleway',
'Rammetto One' => 'Rammetto One',
'Rancho' => 'Rancho',
'Rationale' => 'Rationale',
'Redressed' => 'Redressed',
'Reenie Beanie' => 'Reenie Beanie',
'Ribeye Marrow' => 'Ribeye Marrow',
'Ribeye' => 'Ribeye',
'Righteous' => 'Righteous',
'Rochester' => 'Rochester',
'Rock Salt' => 'Rock Salt',
'Rokkitt' => 'Rokkitt',
'Rosario' => 'Rosario',
'Ruslan Display' => 'Ruslan Display',
'Salsa' => 'Salsa',
'Sancreek' => 'Sancreek',
'Sansita One' => 'Sansita One',
'Satisfy' => 'Satisfy',
'Schoolbell' => 'Schoolbell',
'Shadows Into Light' => 'Shadows Into Light',
'Shanti' => 'Shanti',
'Short Stack' => 'Short Stack',
'Sigmar One' => 'Sigmar One',
'Signika Negative' => 'Signika Negative',
'Signika' => 'Signika',
'Six Caps' => 'Six Caps',
'Slackey' => 'Slackey',
'Smokum' => 'Smokum',
'Smythe' => 'Smythe',
'Sniglet' => 'Sniglet',
'Snippet' => 'Snippet',
'Sorts Mill Goudy' => 'Sorts Mill Goudy',
'Source Sans Pro' => 'Source Sans Pro',
'Special Elite' => 'Special Elite',
'Spinnaker' => 'Spinnaker',
'Spirax' => 'Spirax',
'Stardos Stencil' => 'Stardos Stencil',
'Sue Ellen Francisco' => 'Sue Ellen Francisco',
'Sunshiney' => 'Sunshiney',
'Supermercado One' => 'Supermercado One',
'Swanky and Moo Moo' => 'Swanky and Moo Moo',
'Syncopate' => 'Syncopate',
'Tangerine' => 'Tangerine',
'Tenor Sans' => 'Tenor Sans',
'Terminal Dosis' => 'Terminal Dosis',
'The Girl Next Door' => 'The Girl Next Door',
'Tienne' => 'Tienne',
'Tinos' => 'Tinos',
'Tulpen One' => 'Tulpen One',
'Ubuntu Condensed' => 'Ubuntu Condensed',
'Ubuntu Mono' => 'Ubuntu Mono',
'Ubuntu' => 'Ubuntu',
'Ultra' => 'Ultra',
'UnifrakturCook' => 'UnifrakturCook',
'UnifrakturMaguntia' => 'UnifrakturMaguntia',
'Unkempt' => 'Unkempt',
'Unlock' => 'Unlock',
'Unna' => 'Unna',
'VT323' => 'VT323',
'Varela Round' => 'Varela Round',
'Varela' => 'Varela',
'Vast Shadow' => 'Vast Shadow',
'Vibur' => 'Vibur',
'Vidaloka' => 'Vidaloka',
'Volkhov' => 'Volkhov',
'Vollkorn' => 'Vollkorn',
'Voltaire' => 'Voltaire',
'Waiting for the Sunrise' => 'Waiting for the Sunrise',
'Wallpoet' => 'Wallpoet',
'Walter Turncoat' => 'Walter Turncoat',
'Wire One' => 'Wire One',
'Yanone Kaffeesatz' => 'Yanone Kaffeesatz',
'Yellowtail' => 'Yellowtail',
'Yeseva One' => 'Yeseva One',
'Zeyada' => 'Zeyada',
),
'title' => 'Choose a heading font',
'default' => 'Open Sans',
),
array (
'desc' => 'Select an alternative font.',
'id' => 'ct_body_font',
'type' => 'select',
'options' => array (
'default' => 'Default',
'Helvetica' => 'Helvetica',
'Helvetica Neue' => 'Helvetica Neue',
'Arial' => 'Arial',
'Georgia' => 'Georgia',
'Lucida Sans Unicode' => 'Lucida Sans Unicode',
'Times New Roman' => 'Times New Roman',
'Verdana' => 'Verdana',
'Abel' => 'Abel',
'Abril Fatface' => 'Abril Fatface',
'Aclonica' => 'Aclonica',
'Actor' => 'Actor',
'Adamina' => 'Adamina',
'Aguafina Script' => 'Aguafina Script',
'Aladin' => 'Aladin',
'Aldrich' => 'Aldrich',
'Alice' => 'Alice',
'Alike Angular' => 'Alike Angular',
'Alike' => 'Alike',
'Allan' => 'Allan',
'Allerta Stencil' => 'Allerta Stencil',
'Allerta' => 'Allerta',
'Amaranth' => 'Amaranth',
'Amatic SC' => 'Amatic SC',
'Andada' => 'Andada',
'Andika' => 'Andika',
'Annie Use Your Telescope' => 'Annie Use Your Telescope',
'Anonymous Pro' => 'Anonymous Pro',
'Antic' => 'Antic',
'Anton' => 'Anton',
'Arapey' => 'Arapey',
'Architects Daughter' => 'Architects Daughter',
'Arimo' => 'Arimo',
'Artifika' => 'Artifika',
'Arvo' => 'Arvo',
'Asset' => 'Asset',
'Astloch' => 'Astloch',
'Atomic Age' => 'Atomic Age',
'Aubrey' => 'Aubrey',
'Bangers' => 'Bangers',
'Bentham' => 'Bentham',
'Bevan' => 'Bevan',
'Bigshot One' => 'Bigshot One',
'Bitter' => 'Bitter',
'Black Ops One' => 'Black Ops One',
'Bowlby One SC' => 'Bowlby One SC',
'Bowlby One' => 'Bowlby One',
'Brawler' => 'Brawler',
'Bubblegum Sans' => 'Bubblegum Sans',
'Buda' => 'Buda',
'Butcherman Caps' => 'Butcherman Caps',
'Cabin Condensed' => 'Cabin Condensed',
'Cabin Sketch' => 'Cabin Sketch',
'Cabin' => 'Cabin',
'Cagliostro' => 'Cagliostro',
'Calligraffitti' => 'Calligraffitti',
'Candal' => 'Candal',
'Cantarell' => 'Cantarell',
'Cardo' => 'Cardo',
'Carme' => 'Carme',
'Carter One' => 'Carter One',
'Caudex' => 'Caudex',
'Cedarville' => 'Cedarville',
'Changa One' => 'Changa One',
'Cherry Cream Soda' => 'Cherry Cream Soda',
'Chewy' => 'Chewy',
'Chicle' => 'Chicle',
'Chivo' => 'Chivo',
'Coda Caption' => 'Coda Caption',
'Coda' => 'Coda',
'Comfortaa' => 'Comfortaa',
'Coming Soon' => 'Coming Soon',
'Contrail One' => 'Contrail One',
'Convergence' => 'Convergence',
'Cookie' => 'Cookie',
'Copse' => 'Copse',
'Corben' => 'Corben',
'Cousine' => 'Cousine',
'Coustard' => 'Coustard',
'Covered By Your Grace' => 'Covered By Your Grace',
'Crafty Girls' => 'Crafty Girls',
'Creepster Caps' => 'Creepster Caps',
'Crimson Text' => 'Crimson Text',
'Crushed' => 'Crushed',
'Cuprum' => 'Cuprum',
'Damion' => 'Damion',
'Dancing Script' => 'Dancing Script',
'Dawning of a New Day' => 'Dawning of a New Day',
'Days One' => 'Days One',
'Delius Swash Caps' => 'Delius Swash Caps',
'Delius Unicase' => 'Delius Unicase',
'Delius' => 'Delius',
'Devonshire' => 'Devonshire',
'Didact Gothic' => 'Didact Gothic',
'Dorsa' => 'Dorsa',
'Dr Sugiyama' => 'Dr Sugiyama',
'Droid Sans Mono' => 'Droid Sans Mono',
'Droid Sans' => 'Droid Sans',
'Droid Serif' => 'Droid Serif',
'EB Garamond' => 'EB Garamond',
'Eater Caps' => 'Eater Caps',
'Expletus Sans' => 'Expletus Sans',
'Fanwood Text' => 'Fanwood Text',
'Federant' => 'Federant',
'Federo' => 'Federo',
'Fjord One' => 'Fjord One',
'Fondamento' => 'Fondamento',
'Fontdiner Swanky' => 'Fontdiner Swanky',
'Forum' => 'Forum',
'Francois One' => 'Francois One',
'Gentium Basic' => 'Gentium Basic',
'Gentium Book Basic' => 'Gentium Book Basic',
'Geo' => 'Geo',
'Geostar Fill' => 'Geostar Fill',
'Geostar' => 'Geostar',
'Give You Glory' => 'Give You Glory',
'Gloria Hallelujah' => 'Gloria Hallelujah',
'Goblin One' => 'Goblin One',
'Gochi Hand' => 'Gochi Hand',
'Goudy Bookletter 1911' => 'Goudy Bookletter 1911',
'Gravitas One' => 'Gravitas One',
'Gruppo' => 'Gruppo',
'Hammersmith One' => 'Hammersmith One',
'Herr Von Muellerhoff' => 'Herr Von Muellerhoff',
'Holtwood One SC' => 'Holtwood One SC',
'Homemade Apple' => 'Homemade Apple',
'IM Fell DW Pica SC' => 'IM Fell DW Pica SC',
'IM Fell DW Pica' => 'IM Fell DW Pica',
'IM Fell Double Pica SC' => 'IM Fell Double Pica SC',
'IM Fell Double Pica' => 'IM Fell Double Pica',
'IM Fell English SC' => 'IM Fell English SC',
'IM Fell English' => 'IM Fell English',
'IM Fell French Canon SC' => 'IM Fell French Canon SC',
'IM Fell French Canon' => 'IM Fell French Canon',
'IM Fell Great Primer SC' => 'IM Fell Great Primer SC',
'IM Fell Great Primer' => 'IM Fell Great Primer',
'Iceland' => 'Iceland',
'Inconsolata' => 'Inconsolata',
'Indie Flower' => 'Indie Flower',
'Irish Grover' => 'Irish Grover',
'Istok Web' => 'Istok Web',
'Jockey One' => 'Jockey One',
'Josefin Sans' => 'Josefin Sans',
'Josefin Slab' => 'Josefin Slab',
'Judson' => 'Judson',
'Julee' => 'Julee',
'Jura' => 'Jura',
'Just Another Hand' => 'Just Another Hand',
'Just Me Again Down Here' => 'Just Me Again Down Here',
'Kameron' => 'Kameron',
'Kelly Slab' => 'Kelly Slab',
'Kenia' => 'Kenia',
'Knewave' => 'Knewave',
'Kranky' => 'Kranky',
'Kreon' => 'Kreon',
'Kristi' => 'Kristi',
'La Belle Aurore' => 'La Belle Aurore',
'Lancelot' => 'Lancelot',
'Lato' => 'Lato',
'League Script' => 'League Script',
'Leckerli One' => 'Leckerli One',
'Lekton' => 'Lekton',
'Lemon' => 'Lemon',
'Limelight' => 'Limelight',
'Linden Hill' => 'Linden Hill',
'Lobster Two' => 'Lobster Two',
'Lobster' => 'Lobster',
'Lora' => 'Lora',
'Love Ya Like A Sister' => 'Love Ya Like A Sister',
'Loved by the King' => 'Loved by the King',
'Luckiest Guy' => 'Luckiest Guy',
'Maiden Orange' => 'Maiden Orange',
'Mako' => 'Mako',
'Marck Script' => 'Marck Script',
'Marvel' => 'Marvel',
'Mate SC' => 'Mate SC',
'Mate' => 'Mate',
'Maven Pro' => 'Maven Pro',
'Meddon' => 'Meddon',
'MedievalSharp' => 'MedievalSharp',
'Megrim' => 'Megrim',
'Merienda One' => 'Merienda One',
'Merriweather' => 'Merriweather',
'Metrophobic' => 'Metrophobic',
'Michroma' => 'Michroma',
'Miltonian Tattoo' => 'Miltonian Tattoo',
'Miltonian' => 'Miltonian',
'Miss Fajardose' => 'Miss Fajardose',
'Miss Saint Delafield' => 'Miss Saint Delafield',
'Modern Antiqua' => 'Modern Antiqua',
'Molengo' => 'Molengo',
'Monofett' => 'Monofett',
'Monoton' => 'Monoton',
'Monsieur La Doulaise' => 'Monsieur La Doulaise',
'Montez' => 'Montez',
'Montserrat' => 'Montserrat',
'Mountains of Christmas' => 'Mountains of Christmas',
'Mr Bedford' => 'Mr Bedford',
'Mr Dafoe' => 'Mr Dafoe',
'Mr De Haviland' => 'Mr De Haviland',
'Mrs Sheppards' => 'Mrs Sheppards',
'Muli' => 'Muli',
'Neucha' => 'Neucha',
'Neuton' => 'Neuton',
'News Cycle' => 'News Cycle',
'Niconne' => 'Niconne',
'Nixie One' => 'Nixie One',
'Nobile' => 'Nobile',
'Nosifer Caps' => 'Nosifer Caps',
'Nothing You Could Do' => 'Nothing You Could Do',
'Nova Cut' => 'Nova Cut',
'Nova Flat' => 'Nova Flat',
'Nova Mono' => 'Nova Mono',
'Nova Oval' => 'Nova Oval',
'Nova Round' => 'Nova Round',
'Nova Script' => 'Nova Script',
'Nova Slim' => 'Nova Slim',
'Nova Square' => 'Nova Square',
'Numans' => 'Numans',
'Nunito' => 'Nunito',
'Old Standard TT' => 'Old Standard TT',
'Open Sans Condensed' => 'Open Sans Condensed',
'Open Sans' => 'Open Sans',
'Orbitron' => 'Orbitron',
'Oswald' => 'Oswald',
'Over the Rainbow' => 'Over the Rainbow',
'Ovo' => 'Ovo',
'PT Sans Caption' => 'PT Sans Caption',
'PT Sans Narrow' => 'PT Sans Narrow',
'PT Sans' => 'PT Sans',
'PT Serif Caption' => 'PT Serif Caption',
'PT Serif' => 'PT Serif',
'Pacifico' => 'Pacifico',
'Passero One' => 'Passero One',
'Patrick Hand' => 'Patrick Hand',
'Paytone One' => 'Paytone One',
'Permanent Marker' => 'Permanent Marker',
'Petrona' => 'Petrona',
'Philosopher' => 'Philosopher',
'Piedra' => 'Piedra',
'Pinyon Script' => 'Pinyon Script',
'Play' => 'Play',
'Playfair Display' => 'Playfair Display',
'Podkova' => 'Podkova',
'Poller One' => 'Poller One',
'Poly' => 'Poly',
'Pompiere' => 'Pompiere',
'Prata' => 'Prata',
'Prociono' => 'Prociono',
'Puritan' => 'Puritan',
'Quattrocento Sans' => 'Quattrocento Sans',
'Quattrocento' => 'Quattrocento',
'Questrial' => 'Questrial',
'Quicksand' => 'Quicksand',
'Radley' => 'Radley',
'Raleway' => 'Raleway',
'Rammetto One' => 'Rammetto One',
'Rancho' => 'Rancho',
'Rationale' => 'Rationale',
'Redressed' => 'Redressed',
'Reenie Beanie' => 'Reenie Beanie',
'Ribeye Marrow' => 'Ribeye Marrow',
'Ribeye' => 'Ribeye',
'Righteous' => 'Righteous',
'Rochester' => 'Rochester',
'Rock Salt' => 'Rock Salt',
'Rokkitt' => 'Rokkitt',
'Rosario' => 'Rosario',
'Ruslan Display' => 'Ruslan Display',
'Salsa' => 'Salsa',
'Sancreek' => 'Sancreek',
'Sansita One' => 'Sansita One',
'Satisfy' => 'Satisfy',
'Schoolbell' => 'Schoolbell',
'Shadows Into Light' => 'Shadows Into Light',
'Shanti' => 'Shanti',
'Short Stack' => 'Short Stack',
'Sigmar One' => 'Sigmar One',
'Signika Negative' => 'Signika Negative',
'Signika' => 'Signika',
'Six Caps' => 'Six Caps',
'Slackey' => 'Slackey',
'Smokum' => 'Smokum',
'Smythe' => 'Smythe',
'Sniglet' => 'Sniglet',
'Snippet' => 'Snippet',
'Sorts Mill Goudy' => 'Sorts Mill Goudy',
'Source Sans Pro' => 'Source Sans Pro',
'Special Elite' => 'Special Elite',
'Spinnaker' => 'Spinnaker',
'Spirax' => 'Spirax',
'Stardos Stencil' => 'Stardos Stencil',
'Sue Ellen Francisco' => 'Sue Ellen Francisco',
'Sunshiney' => 'Sunshiney',
'Supermercado One' => 'Supermercado One',
'Swanky and Moo Moo' => 'Swanky and Moo Moo',
'Syncopate' => 'Syncopate',
'Tangerine' => 'Tangerine',
'Tenor Sans' => 'Tenor Sans',
'Terminal Dosis' => 'Terminal Dosis',
'The Girl Next Door' => 'The Girl Next Door',
'Tienne' => 'Tienne',
'Tinos' => 'Tinos',
'Tulpen One' => 'Tulpen One',
'Ubuntu Condensed' => 'Ubuntu Condensed',
'Ubuntu Mono' => 'Ubuntu Mono',
'Ubuntu' => 'Ubuntu',
'Ultra' => 'Ultra',
'UnifrakturCook' => 'UnifrakturCook',
'UnifrakturMaguntia' => 'UnifrakturMaguntia',
'Unkempt' => 'Unkempt',
'Unlock' => 'Unlock',
'Unna' => 'Unna',
'VT323' => 'VT323',
'Varela Round' => 'Varela Round',
'Varela' => 'Varela',
'Vast Shadow' => 'Vast Shadow',
'Vibur' => 'Vibur',
'Vidaloka' => 'Vidaloka',
'Volkhov' => 'Volkhov',
'Vollkorn' => 'Vollkorn',
'Voltaire' => 'Voltaire',
'Waiting for the Sunrise' => 'Waiting for the Sunrise',
'Wallpoet' => 'Wallpoet',
'Walter Turncoat' => 'Walter Turncoat',
'Wire One' => 'Wire One',
'Yanone Kaffeesatz' => 'Yanone Kaffeesatz',
'Yellowtail' => 'Yellowtail',
'Yeseva One' => 'Yeseva One',
'Zeyada' => 'Zeyada',
),
'title' => 'Choose a body font',
'default' => 'Open Sans',
),
array (
'desc' => 'Specify the length of post excerpts in words, default is 25.\'.',
'id' => 'ct_excerpt_length',
'type' => 'text',
'title' => 'Custom Excerpt Length',
'default' => '25',
),
array (
'desc' => 'Specify your link text, default is \'Read More &rarr;\'.',
'id' => 'ct_read_more',
'type' => 'text',
'title' => 'Custom Read More Text',
'default' => 'Read More <em>&rarr;</em>',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Header',
'fields' => array (
array (
'desc' => 'Select left, center or right logo alignment.',
'id' => 'ct_header_layout',
'type' => 'image_select',
'options' => array (
'left' => 'http://localhost/wordpress/wp-content/themes/realestate-7/admin/images/header-left.png',
'center' => 'http://localhost/wordpress/wp-content/themes/realestate-7/admin/images/header-center.png',
'right' => 'http://localhost/wordpress/wp-content/themes/realestate-7/admin/images/header-right.png',
'none' => 'http://localhost/wordpress/wp-content/themes/realestate-7/admin/images/header-none.png',
),
'title' => 'Header Layout',
'default' => 'left',
),
array (
'desc' => 'Upload a logo for your theme, or specify the image address of your online logo. (http://yoursite.com/logo.png)',
'id' => 'ct_logo',
'type' => 'media',
'title' => 'Custom Logo',
'url' => true,
),
array (
'desc' => 'Choose if you would like to use the Blog Title in place of an image logo. Text can be setup in WP Settings > General.',
'id' => 'ct_text_logo',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Use Text Logo?',
'default' => 'No',
),
array (
'desc' => 'Choose if you would like to display the top bar.',
'id' => 'ct_top_bar',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Display Top Bar?',
'default' => 'Yes',
),
array (
'desc' => 'Select whether or not you\'d like to display the social links.',
'id' => 'ct_header_social',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Display Social Links?',
'default' => 'Yes',
),
array (
'desc' => 'Enter your Facebook URL\'.',
'id' => 'ct_fb_url',
'type' => 'text',
'title' => 'Facebook',
),
array (
'desc' => 'Enter your Twitter URL\'.',
'id' => 'ct_twitter_url',
'type' => 'text',
'title' => 'Twitter',
),
array (
'desc' => 'Enter your LinkedIn URL\'.',
'id' => 'ct_linkedin_url',
'type' => 'text',
'title' => 'LinkedIn',
),
array (
'desc' => 'Enter your Google+ URL\'.',
'id' => 'ct_googleplus_url',
'type' => 'text',
'title' => 'Google+',
),
array (
'desc' => 'Enter your Dribbble URL\'.',
'id' => 'ct_dribbble_url',
'type' => 'text',
'title' => 'Dribbble',
),
array (
'desc' => 'Enter your Pinterest URL\'.',
'id' => 'ct_pinterest_url',
'type' => 'text',
'title' => 'Pinterest',
),
array (
'desc' => 'Enter your Instagram URL\'.',
'id' => 'ct_instagram_url',
'type' => 'text',
'title' => 'Instagram',
),
array (
'desc' => 'Enter your Github URL\'.',
'id' => 'ct_github_url',
'type' => 'text',
'title' => 'Github',
),
array (
'desc' => 'Enter your Contact Page URL\'.',
'id' => 'ct_contact_url',
'type' => 'text',
'title' => 'Contact Page',
),
array (
'desc' => 'Enter your Contact Phone Number Here\'.',
'id' => 'ct_contact_phone_header',
'type' => 'text',
'title' => 'Contact Phone',
'default' => 'Call Us Today: 1-888-999-5454',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Homepage',
'fields' => array (
array (
'desc' => 'Drag and drop layout manager, to quickly organize your homepage contents.',
'id' => 'ct_homepage_layout',
'type' => 'sorter',
'title' => 'Layout Manager',
'options' => array (
'disabled' => array (
'placebo' => 'placebo',
'revslider' => 'Slider Revolution',
'slider' => 'FlexSlider',
'builder' => 'Page Builder',
'page_builder_two' => 'Page Builder Two',
'map' => 'Featured Map',
'dsidxpress_search' => 'dsIDXPress Search',
'widgets' => 'Four Column Widgets',
),
'enabled' => array (
'placebo' => 'placebo',
'listings_search' => 'Listings Search',
'cta' => 'Call To Action',
'featured_listings' => 'Featured Listings',
'testimonials' => 'Testimonials',
),
),
),
array (
'desc' => 'Drag and drop manager, to quickly organize your homepage advanced search fields.',
'id' => 'ct_homepage_adv_search',
'type' => 'sorter',
'title' => 'Listings Search Field Manager',
'options' => array (
'disabled' => array (
'placebo' => 'placebo',
'additional_features' => 'Additional Features',
'community' => 'Community',
'mls' => 'MLS',
),
'enabled' => array (
'placebo' => 'placebo',
'type' => 'Type',
'city' => 'City',
'state' => 'State',
'zipcode' => 'Zipcode',
'beds' => 'Beds',
'baths' => 'Baths',
'status' => 'Status',
'price_from' => 'Price From',
'price_to' => 'Price To',
),
),
),
array (
'desc' => 'Unlimited slider with drag and drop sorting, supports images or video.',
'id' => 'ct_flex_slider',
'type' => 'slides',
'title' => 'Slides',
'default' => array (
array (
'order' => '',
'title' => '',
'url' => '',
'link' => '',
'description' => '',
),
),
),
array (
'desc' => 'If you\'ve enabled the Slider Revolution block above enter your slider alias here (e.g. home)',
'id' => 'ct_home_rev_slider_alias',
'type' => 'text',
'title' => 'Slider Revolution Alias',
),
array (
'desc' => 'Your call to action verbiage, ex: Feature rich and affordable, you can\'t afford to pass this up!',
'id' => 'ct_cta',
'type' => 'textarea',
'title' => 'Call To Action Text',
'default' => '<h3 class="marT0 marB10">A Responsive & Feature Rich Real Estate Theme for WordPress!</h3><p class="lead muted">Chock full of awesomeness, this is one you can\'t afford to pass up, <a href="#">Buy It Today</a>!</p>',
),
array (
'desc' => 'Upload a custom background image.',
'id' => 'ct_cta_bg_img',
'type' => 'media',
'title' => 'Call To Action Background Image',
'url' => true,
),
array (
'desc' => 'Pick a border color for the header top bar links.',
'id' => 'ct_cta_bg_color',
'type' => 'color',
'title' => 'Call To Action Background Color',
),
array (
'desc' => 'If you\'ve enabled the Featured Listings block enter the number of listings you\'d like displayed here.',
'id' => 'ct_home_featured_num',
'type' => 'text',
'title' => 'Number of Featured Listings',
'default' => '3',
),
array (
'desc' => 'If you\'ve enabled the Testimonial block enter the number of testimonial items you\'d like displayed here.',
'id' => 'ct_home_testimonial_num',
'type' => 'text',
'title' => 'Number of Testimonials',
'default' => '4',
),
array (
'desc' => 'Enter the ID of your template here.',
'id' => 'ct_home_page_builder_slug',
'type' => 'text',
'title' => 'Page Builder Template ID',
),
array (
'desc' => 'Enter the ID of your template here.',
'id' => 'ct_home_page_builder_two_slug',
'type' => 'text',
'title' => 'Page Builder Two Template ID',
),
array (
'id' => 'ct_homepage_widget_area',
'type' => 'info',
'raw' => 'The Widget Area can be controlled via Appearance > Widgets > Homepage.',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'FlexSlider',
'fields' => array (
array (
'desc' => 'Select your animation type.',
'id' => 'ct_flex_animation',
'type' => 'select',
'options' => array (
'fade' => 'Fade',
'slide' => 'Slide',
),
'title' => 'Animation',
'default' => 'fade',
),
array (
'desc' => 'Select sliding direction.',
'id' => 'ct_flex_direction',
'type' => 'select',
'options' => array (
'horizontal' => 'Horizontal',
'vertical' => 'Vertical',
),
'title' => 'Slide Direction',
'default' => 'horizontal',
),
array (
'desc' => 'Set the speed of the slideshow cycling, in milliseconds.',
'id' => 'ct_flex_speed',
'type' => 'text',
'title' => 'Slideshow Speed',
'default' => '7000',
),
array (
'desc' => 'Set the speed of animations, in milliseconds.',
'id' => 'ct_flex_duration',
'type' => 'text',
'title' => 'Animation Duration',
'default' => '600',
),
array (
'desc' => 'Randomize slide order.',
'id' => 'ct_flex_randomize',
'type' => 'select',
'options' => array (
'false' => 'False',
'true' => 'True',
),
'title' => 'Randomize Slides?',
'default' => 'False',
),
array (
'desc' => 'Allows for smooth height transitions between slides, useful if you have both landscape and portrait style images. ',
'id' => 'ct_enable_smootheight',
'type' => 'select',
'options' => array (
'no' => 'No',
'yes' => 'Yes',
),
'title' => 'Enable Smootheight?',
'default' => 'No',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Create a Skin',
'fields' => array (
array (
'desc' => 'Select whether or not you\'d like to use these custom styles.',
'id' => 'ct_use_styles',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Use Custom Styles?',
'default' => 'No',
),
array (
'desc' => 'Pick a background color for the theme (default: #fff).',
'id' => 'ct_body_bg_color',
'type' => 'color',
'title' => 'Body Background Color',
),
array (
'desc' => 'Check this to use a background image for the theme, otherwise only the solid color you chose above will be displayed.',
'id' => 'ct_background_image',
'type' => 'checkbox',
'title' => 'Enable Background Image Below',
'default' => 1,
),
array (
'desc' => 'Select a background pattern.',
'id' => 'ct_custom_bg',
'type' => 'image_select',
'options' => array (
0 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/1.png',
1 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/60degree_gray.png',
2 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/black_denim.png',
3 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/candyhole.png',
4 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/checkered_pattern.png',
5 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/concrete_wall.png',
6 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/concrete_wall_2.png',
7 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/connect.png',
8 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/cork_1.png',
9 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/dark_wood.png',
10 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/fabric_1.png',
11 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/fabric_2.png',
12 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/foil.png',
13 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/goovepaper.png',
14 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/graphy.png',
15 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/gray_sand.png',
16 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/green-fibers.png',
17 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/green_gobbler.png',
18 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/grunge_wall.png',
19 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/leather_1.png',
20 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/light_grey_floral_motif.png',
21 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/light_honeycomb.png',
22 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/lined_paper.png',
23 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/littleknobs.png',
24 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/little_pluses.png',
25 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/metal_dots.png',
26 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/old_mathematics.png',
27 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/old_wall.png',
28 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/paper_1.png',
29 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/paper_2.png',
30 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/paper_3.png',
31 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/paper_4.png',
32 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/paven.png',
33 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/pink-bg.png',
34 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/pinstripe.png',
35 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/plaid.png',
36 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/project_paper.png',
37 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/px_by_Gre3g.png',
38 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/random_grey_variations.png',
39 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/ravenna.png',
40 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/small-crackle-bright.png',
41 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/smooth_wall.png',
42 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/soft_wallpaper.png',
43 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/square_bg.png',
44 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/subtle_freckles.png',
45 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/subtle_orange_emboss.png',
46 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/tactile_noise.png',
47 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/vichy.png',
48 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/washi.png',
49 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/wavecut.png',
50 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/whitediamond.png',
51 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/white_carbon.png',
52 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/white_paperboard.png',
53 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/white_sand.png',
54 => 'http://localhost/wordpress/wp-content/themes/realestate-7/images/skins/xv.png',
),
'title' => 'Background Images',
'tiles' => true,
),
array (
'desc' => 'Upload a custom body background image.',
'id' => 'ct_body_bg_image',
'type' => 'media',
'title' => 'Body Background Image',
'url' => true,
),
array (
'desc' => 'Choose the position for your background image.',
'id' => 'ct_body_bg_pos',
'type' => 'select',
'options' => array (
0 => 'top left',
1 => 'top center',
2 => 'top right',
3 => 'center left',
4 => 'center center',
5 => 'center right',
6 => 'bottom left',
7 => 'bottom center',
8 => 'bottom right',
),
'title' => 'Body Background Position',
'default' => 'top left',
),
array (
'desc' => 'Choose the position for your background image.',
'id' => 'ct_body_bg_repeat',
'type' => 'select',
'options' => array (
0 => 'no-repeat',
1 => 'repeat-x',
2 => 'repeat-y',
3 => 'repeat',
),
'title' => 'Body Background Repeat',
'default' => 'no-repeat',
),
array (
'desc' => 'Pick a background color for the header top bar.',
'id' => 'ct_header_bar_color',
'type' => 'color',
'title' => 'Header Top Bar Color',
),
array (
'desc' => 'Pick a border color for the header top bar links.',
'id' => 'ct_header_bar_border_color',
'type' => 'color',
'title' => 'Header Top Bar Border Color',
),
array (
'desc' => 'Pick a background color for the header top bar phone number area.',
'id' => 'ct_header_bar_phone_color',
'type' => 'color',
'title' => 'Header Top Bar Phone Number Color',
),
array (
'desc' => 'Pick a font color for the header top bar area.',
'id' => 'ct_header_bar_font_color',
'type' => 'color',
'title' => 'Header Top Bar Font Color',
),
array (
'desc' => 'Pick a background color for the header.',
'id' => 'ct_header_background',
'type' => 'color',
'title' => 'Header Background Color',
),
array (
'desc' => 'Pick a background color for the current nav item.',
'id' => 'ct_header_nav_current_bg',
'type' => 'color',
'title' => 'Header Nav Current Background Color',
),
array (
'desc' => 'Pick a font color for the nav.',
'id' => 'ct_header_nav_font_color',
'type' => 'color',
'title' => 'Header Nav Font Color',
),
array (
'desc' => 'Pick a background color for the price.',
'id' => 'ct_price_bg',
'type' => 'color',
'title' => 'Price Background Color',
),
array (
'desc' => 'Pick a border top color sidebar widgets.',
'id' => 'ct_widget_border_color',
'type' => 'color',
'title' => 'Widget Border Top Color',
),
array (
'id' => 'ct_link_color',
'type' => 'color',
'title' => 'Link Color',
),
array (
'id' => 'ct_visited_color',
'type' => 'color',
'title' => 'Visited Link Color',
),
array (
'id' => 'ct_hover_color',
'type' => 'color',
'title' => 'Hover Link Color',
),
array (
'desc' => '.',
'id' => 'ct_active_color',
'type' => 'color',
'title' => 'Active Link Color',
),
array (
'desc' => 'Pick a background color for the footer top border).',
'id' => 'ct_footer_border_top_color',
'type' => 'color',
'title' => 'Footer Top Border Color',
),
array (
'desc' => 'Pick a background color for the footer widget area.',
'id' => 'ct_footer_widget_background',
'type' => 'color',
'title' => 'Footer Widget Area Background Color',
),
array (
'desc' => 'Pick a font color for the footer widgets.',
'id' => 'ct_footer_widget_font_color',
'type' => 'color',
'title' => 'Footer Widget Font Color',
),
array (
'desc' => 'Pick a background color for the footer.',
'id' => 'ct_footer_background',
'type' => 'color',
'title' => 'Footer Background Color',
),
array (
'desc' => 'Pick a background image for the footer.',
'id' => 'ct_footer_background_img',
'type' => 'media',
'title' => 'Footer Background Image',
'url' => true,
),
array (
'desc' => 'Pick a font color for the footer nav links.',
'id' => 'ct_footer_link_color',
'type' => 'color',
'title' => 'Footer Nav Link Color',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Listings',
'fields' => array (
array (
'desc' => 'Enter the amount of listings you want displayed per page when searching.',
'id' => 'ct_listing_search_num',
'type' => 'text',
'title' => 'Listing Search Results Per Page',
'default' => '6',
),
array (
'desc' => 'Enter your currency symbol here, US dollars is default.',
'id' => 'ct_currency',
'type' => 'text',
'title' => 'Currency',
'default' => '$',
),
array (
'desc' => 'Select whether you\'d like the currency symbol to appear before the price or after.',
'id' => 'ct_currency_placement',
'type' => 'select',
'options' => array (
'before' => 'Before',
'after' => 'After',
),
'title' => 'Currency Placement',
'default' => 'Before',
),
array (
'desc' => 'Leave this on, unless you need to manually enter lat/long for your listings.',
'id' => 'ct_listing_lat_long',
'type' => 'select',
'options' => array (
'on' => 'On',
'off' => 'Off',
),
'title' => 'Automatic latitude & longitude based on listing address',
'default' => 'Off',
),
array (
'desc' => 'Select if you would like to use Sq Ft or Sq Meters for the dwelling size.',
'id' => 'ct_sq',
'type' => 'select',
'options' => array (
'sqft' => 'Sq Ft',
'sqmeteres' => 'Sq Meters',
),
'title' => 'Sq Ft or Sq Meters?',
'default' => 'Sq Ft',
),
array (
'desc' => 'Select if you would like to use Acres, Sq Ft or Sq Meters for the lot size.',
'id' => 'ct_acres',
'type' => 'select',
'options' => array (
'acres' => 'Acres',
'sqft' => 'Sq Ft',
'sqmeters' => 'Sq Meters',
),
'title' => 'Acres, Sq Ft or Sq Meters?',
'default' => 'Acres',
),
array (
'desc' => 'Select whether or not you\'d like to disable Google Maps sitewide for search results and single view.',
'id' => 'ct_disable_google_maps',
'type' => 'select',
'options' => array (
'no' => 'No',
'yes' => 'Yes',
),
'title' => 'Disable Google Maps Sitewide?',
'default' => 'No',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Front End Submission',
'fields' => array (
array (
'desc' => 'Select whether or not you\'d like to enable users to submit listings from the front end of your site.',
'id' => 'ct_enable_front_end',
'type' => 'select',
'options' => array (
'no' => 'No',
'yes' => 'Yes',
),
'title' => 'Enable Front End Submission?',
'default' => 'Yes',
),
array (
'desc' => 'If you\'d like to accept payments for submissions enter your PayPal account email here.',
'id' => 'ct_paypal_addy',
'type' => 'text',
'title' => 'PayPal Addy',
),
array (
'desc' => 'Enter the price for each submission here, no currency.',
'id' => 'ct_price',
'type' => 'text',
'title' => 'Submission Price',
),
array (
'id' => 'login-register-info',
'type' => 'info',
'raw' => 'Set the Page IDs below for the front end submission system, the Login/Register modal is automatic.',
),
array (
'desc' => 'Enter your edit profile page ID here.',
'id' => 'ct_profile',
'type' => 'text',
'title' => 'Edit User Profile Page',
'default' => '614',
),
array (
'desc' => 'Enter your submit page ID here.',
'id' => 'ct_submit',
'type' => 'text',
'title' => 'Listing Submit Page',
'default' => '623',
),
array (
'desc' => 'Enter your edit page ID here.',
'id' => 'ct_edit',
'type' => 'text',
'title' => 'Listing Edit Page',
'default' => '626',
),
array (
'desc' => 'Enter your view page ID here, e.g. "My Listings".',
'id' => 'ct_view',
'type' => 'text',
'title' => 'Listings View Page',
'default' => '629',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'WP Favorite Posts',
'fields' => array (
array (
'id' => 'saved-listings-info',
'type' => 'info',
'raw' => 'This option only applies to the WP Favorite Posts plugin if you\'ve enabled it, so that users can save listings they\'re intersted in to review later. Once you\'ve created a Page > Insert the {{wp-favorite-posts}} shortcode in the body content > Copy the ID of that Page and paste it below, once thats complete a link will appear in the top bar of the site.',
),
array (
'desc' => 'Enter your saved listings page ID here.',
'id' => 'ct_saved_listings',
'type' => 'text',
'title' => 'Saved Listings Page',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Single Post',
'fields' => array (
array (
'desc' => 'Select whether or not you\'d like to display the first image uploaded to a post (global for all posts).',
'id' => 'ct_post_thumb',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Display Auto Post Image?',
'default' => 'Yes',
),
array (
'desc' => 'PHP date format, default is F jS, Y.',
'id' => 'ct_date_format',
'type' => 'text',
'title' => 'Date Format',
'default' => 'F jS, Y',
),
array (
'desc' => 'Select whether or not you\'d like to display the social links at the end of your posts.',
'id' => 'ct_post_social',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Display Social Links?',
'default' => 'Yes',
),
array (
'desc' => 'Select whether or not you\'d like to display comments globally for posts.',
'id' => 'ct_post_comments',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Display Comments?',
'default' => 'Yes',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Contact',
'fields' => array (
array (
'desc' => 'The email address you would like your form submissions sent to (e.g. youremail@yourdomain.com).',
'id' => 'ct_contact_email',
'type' => 'text',
'title' => 'Email Address',
),
array (
'desc' => 'Subject of the email sent by the contact form.',
'id' => 'ct_contact_subject',
'type' => 'text',
'title' => 'Subject',
),
array (
'desc' => 'This is the text displayed if the form submission has been successful.',
'id' => 'ct_contact_success',
'type' => 'textarea',
'title' => 'Success Message',
),
array (
'desc' => 'Select whether or not you\'d like to display a Google map of your location.',
'id' => 'ct_contact_map',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Display Google Map?',
'default' => 'Yes',
),
array (
'desc' => 'Choose your map display type.',
'id' => 'ct_contact_map_type',
'type' => 'select',
'options' => array (
'ROADMAP' => 'Roadmap',
'SATELLITE' => 'Satellite',
'HYBRID' => 'Hybrid',
'TERRAIN' => 'Terrain',
),
'title' => 'Google Map Type?',
'default' => 'Roadmap',
),
array (
'desc' => 'The address of your location to be used in the Google Map, needs to be entered in this format: 849 West Harbor Dr. San Diego, CA 92101',
'id' => 'ct_contact_map_location',
'type' => 'text',
'title' => 'Map Address',
'default' => '849 West Harbor Dr. San Diego, CA 92108',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Custom CSS',
'fields' => array (
array (
'desc' => 'Quickly add some CSS to your theme by adding it to this block.',
'id' => 'ct_custom_css',
'type' => 'textarea',
'title' => 'Custom CSS',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Footer',
'fields' => array (
array (
'desc' => 'Select whether or not you\'d like to display the widget ready area.',
'id' => 'ct_footer_widget',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Display Widget Area?',
'default' => 'Yes',
),
array (
'desc' => 'Enter your custom footer text here.',
'id' => 'ct_footer_text',
'type' => 'textarea',
'title' => 'Footer Text',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'PressTrends',
'fields' => array (
array (
'desc' => 'Disable sending of usage data to PressTrends.',
'id' => 'ct_presstrends',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Disable PressTrends Tracking?',
'default' => 'No',
),
array (
'id' => 'presstrends-info',
'type' => 'info',
'raw' => 'PressTrends is a simple usage tracker that allows us to see how our customers are using our themes - so that we can help improve them for you. None of your personal data is sent to PressTrends. For more information, please view the PressTrends <a href=\'http://presstrends.io/privacy\' target=\'_blank\'>privacy policy</a>.',
),
),
'icon' => 'el-icon-cog',
),
array (
'title' => 'Framework',
'fields' => array (
array (
'desc' => 'Use this field to specify a custom name to replace the theme name in the top right corner of options panel.',
'id' => 'ct_custom_framework_name',
'type' => 'text',
'title' => 'Custom Framework Name',
),
array (
'desc' => 'Disable changelog and theme documentation links under theme name in the options panel.',
'id' => 'ct_changelog_doc_links',
'type' => 'select',
'options' => array (
0 => 'Yes',
1 => 'No',
),
'title' => 'Disable Changelog and Theme Documentation links?',
'default' => 'No',
),
array (
'id' => 'framework-info',
'type' => 'info',
'raw' => 'After any of these settings are saved you must hit the browser refresh button in order for them to show in the options panel.',
),
),
),
);
// Change your opt_name to match where you want the data saved.
$args = array(
"opt_name"=>"ct_options", // Where your data is stored. Use a different name or use the same name as your current theme. Must match the $database_newName variable in the converter code.
//"menu_title" => "", // Title for your menu item
"page_slug" => "", // Make this the same as your opt_name unless you care otherwise
//"global_variable" => "", // By default Redux sets your global variable to be the opt_name you set above. This is what the newest SMOF uses as it's variable name. You can change, but you may need to update your files.
//"intro_text" => "<p>This theme is now using Redux</p>" // Extra header info
//"google_api_key" => "", // You must acquire a Google Web Fonts API key if you want Google Fonts to work
);
// Use this section if this is for a theme. Replace with plugin specific data if it is for a plugin.
$theme = wp_get_theme();
$args["display_name"] = $theme->get("Name");
$args["display_version"] = $theme->get("Version");
$ReduxFramework = new ReduxFramework($sections, $args);
}
function migrate_old_data($oldname, $oldtheme=false) {
$database_newName = ""; // Where your data will now be saved. Must match your opt_name in the ReduxFramework $args array.
$this->convertDataClass = new SMOF2Redux_Data();
$this->convertDataClass->init();
update_option($database_newName, $this->convertDataClass->converted_data); // Update the database
}
}
new Redux_Framework__9a2bfceb1255a1560bdc6a3();
}
if ( ! class_exists( 'SMOF2Redux_Data' ) ) {
class SMOF2Redux_Data {
protected $converter;
public $version;
public $database;
public $data;
public $converted_data;
public $sections = array();
public $framework = "SMOF";
public function __construct() {
//add_action('init', array( $this, 'init' ), 0 );
}
public function init() {
// Find the version
if ( defined( 'SMOF_VERSION' ) ) {
$this->version = SMOF_VERSION;
} else {
$this->version = '1.3';
}
$this->field_types = scandir( ReduxFramework::$_dir . '/inc/fields' );
// Get the saved data
if ( $this->version <= "1.5" ) {
// Get the old data values
global $data;
$this->data = $data;
if ( defined( 'OPTIONS' ) ) {
$this->database = OPTIONS;
}
} else {
global $smof_data;
$this->data = $smof_data;
}
$this->getSections();
if ( ! empty( $this->sections ) ) {
foreach ( $this->sections as $section ) {
if ( isset( $section['fields'] ) && ! empty( $section['fields'] ) ) {
foreach ( $section['fields'] as $field ) {
if ( isset( $this->data[ $field['id'] ] ) ) {
$this->converted_data[ $field['id'] ] = $this->convertValue( $this->data[ $field['id'] ], $field['type'] );
}
}
}
}
}
}
public function getSections( $withWarnings = true ) {
global $of_options;
$sections = array();
$section = array();
$fields = array();
foreach ( $of_options as $key => $value ) {
foreach ( $value as $k => $v ) {
if ( empty( $v ) ) {
unset( $value[ $k ] );
}
}
if ( isset( $value['name'] ) ) {
$value['title'] = $value['name'];
unset( $value['name'] );
}
if ( isset( $value['std'] ) ) {
$value['default'] = $value['std'];
unset( $value['std'] );
}
if ( isset( $value['fold'] ) ) {
$value['required'] = array( $value['fold'], '=', 1 );
unset( $value['fold'] );
}
if ( isset( $value['folds'] ) ) {
unset( $value['folds'] );
}
if ( ! isset( $value['type'] ) ) {
continue;
}
switch ( $value['type'] ) {
case 'heading':
if ( isset( $value['icon'] ) && ! empty( $value['icon'] ) ) {
//$value['icon_type'] = "image";
}
if ( ! empty( $fields ) ) {
$section['fields'] = $fields;
$fields = array();
}
if ( ! empty( $section ) ) {
$section['icon'] = "el-icon-cog";
$sections[] = $section;
$section = array();
}
unset( $value['type'] );
$section = $value;
unset( $value );
break;
case "text":
if ( isset( $value['mod'] ) ) {
unset( $value['mod'] );
}
break;
case "select":
if ( isset( $value['mod'] ) ) {
unset( $value['mod'] );
}
break;
case "textarea":
if ( isset( $value['cols'] ) ) {
unset( $value['cols'] );
}
break;
case "radio":
break;
case "checkbox":
break;
case "multicheck":
$value['type'] = "checkbox";
break;
case "color":
break;
case "select_google_font":
if ( isset( $value['preview'] ) ) {
unset( $value['preview'] );
}
if ( isset( $value['options'] ) ) {
$value['fonts'] = $value['options'];
unset( $value['options'] );
}
if ( isset( $value['default'] ) ) {
unset( $value['default'] );
}
$value['type'] = "typography";
break;
case "typography":
if ( isset( $value['preview'] ) ) {
unset( $value['preview'] );
}
if ( isset( $value['options'] ) ) {
$value['fonts'] = $value['options'];
unset( $value['options'] );
}
break;
case "border":
break;
case "info":
if ( isset( $value['title'] ) ) {
unset( $value['title'] );
}
if ( isset( $value['default'] ) ) {
$value['raw'] = $value['default'];
unset( $value['default'] );
}
break;
case "switch":
break;
case "images":
$value['type'] = "image_select";
if ( strpos( strtolower( $value['title'] ), 'pattern' ) !== false ) {
$value['tiles'] = true;
}
break;
case "image":
$value['type'] = "info";
$value['raw_html'] = true;
break;
case "slider":
$value['type'] = "slides";
break;
case "sorter":
if ( isset( $value['default'] ) ) {
$value['options'] = $value['default'];
unset( $value['default'] );
}
break;
case "tiles":
$value['type'] = "image_select";
$value['tiles'] = true;
break;
case "backup":
case "transfer":
unset( $value );
if ( $of_options[ ( $key - 1 ) ]['type'] == "heading" ) {
if ( strpos( strtolower( $of_options[ ( $key - 1 ) ]['name'] ), 'backup' ) !== false ) {
$section = array();
}
}
break;
case "sliderui":
$value['type'] = "slider";
break;
case "upload":
case "media":
$value['type'] = "media";
if ( isset( $value['mod'] ) && $value['mod'] == "min" ) {
unset( $value['mod'] );
} else {
$value['url'] = true;
}
break;
default:
if ( $withWarnings && ! in_array( $value['type'], $this->field_types ) ) {
$content = "<h3 style='color: red;'>Found a field with an unknown type!</h3> <p>Perhaps this was a custom field and will need to be remade for use within Redux. This was the field's configuration:</p>";
$content .= "<pre style='overflow:auto;border: 2px dashed #eee;padding: 2px 5px; width: 100%;'>";
ob_start();
var_dump( $value );
$content .= ob_get_clean();
$content .= "</pre>";
$value['desc'] = $content;
$value['type'] = "info";
$value['raw_html'] = true;
}
//unset($value); // Can't do custom types. Must be fixed manually.
# code...
break;
}
if ( isset( $value['default'] ) && ! empty( $value['default'] ) ) {
$value['default'] = $this->convertValue( $value['default'], $value['type'] );
}
if ( ! empty( $value ) ) {
$fields[] = $value;
}
}
if ( ! empty( $fields ) ) {
$section['fields'] = $fields;
$fields = array();
}
if ( ! empty( $section ) ) {
$sections[] = $section;
$section = array();
}
$this->sections = $sections;
}
function get_attachment_id_by_url( $url ) {
// Split the $url into two parts with the wp-content directory as the separator.
$parse_url = explode( parse_url( WP_CONTENT_URL, PHP_URL_PATH ), $url );
// Get the host of the current site and the host of the $url, ignoring www.
$this_host = str_ireplace( 'www.', '', parse_url( home_url(), PHP_URL_HOST ) );
$file_host = str_ireplace( 'www.', '', parse_url( $url, PHP_URL_HOST ) );
// Return nothing if there aren't any $url parts or if the current host and $url host do not match.
if ( ! isset( $parse_url[1] ) || empty( $parse_url[1] ) || ( $this_host != $file_host ) ) {
return;
}
// Now we're going to quickly search the DB for any attachment GUID with a partial path match.
// Example: /uploads/2013/05/test-image.jpg
global $wpdb;
$prefix = $wpdb->prefix;
$attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM " . $prefix . "posts WHERE guid RLIKE %s;", $parse_url[1] ) );
// Returns null if no attachment is found.
return $attachment[0];
}
function convertValue( $value, $type ) {
switch ( $type ) {
case "text":
if ( ! is_array( $value ) ) {
$value = stripcslashes( $value ); // Not sure why this happens. Huh.
}
break;
case "typography":
$default = array();
if ( isset( $value['size'] ) ) {
$default['font-size'] = $value['size'];
$px = filter_var( $default['font-size'], FILTER_SANITIZE_NUMBER_INT );
$default['units'] = str_replace( $px, "", $default['font-size'] );
}
if ( isset( $value['color'] ) ) {
$default['color'] = $value['color'];
}
if ( isset( $value['face'] ) ) {
$fonts = array(
"Arial, Helvetica, sans-serif",
"'Arial Black', Gadget, sans-serif",
"'Bookman Old Style', serif",
"'Comic Sans MS', cursive",
"Courier, monospace",
"Garamond, serif",
"Georgia, serif",
"Impact, Charcoal, sans-serif",
"'Lucida Console', Monaco, monospace",
"'Lucida Sans Unicode', 'Lucida Grande', sans-serif",
"'MS Sans Serif', Geneva, sans-serif",
"'MS Serif', 'New York', sans-serif",
"'Palatino Linotype', 'Book Antiqua', Palatino, serif",
"Tahoma, Geneva, sans-serif",
"'Times New Roman', Times, serif",
"'Trebuchet MS', Helvetica, sans-serif",
"Verdana, Geneva, sans-serif",
);
foreach ( $fonts as $font ) {
if ( strpos( strtolower( $font ), strtolower( $value['face'] ) ) !== false ) {
$default['font-family'] = $font;
}
}
}
if ( isset( $value['style'] ) ) {
if ( strpos( strtolower( $value['style'] ), 'bold' ) !== false ) {
$default['font-weight'] = "bold";
}
if ( strpos( strtolower( $value['style'] ), 'italic' ) !== false ) {
$default['font-style'] = "italic";
}
}
$value = $default;
break;
case "border":
if ( isset( $value['width'] ) ) {
$value['border-width'] = $value['width'] . "px";
$value['units'] = "px";
unset( $value['width'] );
}
if ( isset( $value['color'] ) ) {
$value['border-color'] = $value['color'];
unset( $value['color'] );
}
if ( isset( $value['style'] ) ) {
$value['border-style'] = $value['style'];
unset( $value['style'] );
}
break;
case "upload":
case "image":
case "media":
if ( isset( $value ) && ! empty( $value ) ) {
$value = array( 'url' => $value );
}
break;
default:
break;
}
return $value;
}
}
}
/*
1.5
SMOF_VERSION
define( 'OPTIONS', $theme_name.'_options' );
$data = of_get_options();
$smof_data = of_get_options();
1.4.3
define( 'OPTIONS', $theme_name.'_options' );
if( is_child_theme() ) {
$temp_obj = wp_get_theme();
$theme_obj = wp_get_theme( $temp_obj->get('Template') );
} else {
$theme_obj = wp_get_theme();
}
define( 'OPTIONS', $theme_name.'_options' );
SMOF_VERSION -> Version
1.4
SMOF_VERSION -> Version
DEFINE: OPTIONS
$data => values
$data = get_option(OPTIONS);
1.3
DEFINE: OPTIONS
$of_options => Options
$data => values
$data = get_option(OPTIONS);
v1.2
v1.1 13/11/11
DEFINE: OPTIONS
$of_options => Options
$data => values
$data = get_option(OPTIONS);
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment