Function Reference: gd_install_theme_compat
Summary
Inserts theme compatibility settings data for supported themes.
Global Values
- $wpdb
- (object) (required) WordPress Database object.
- Default: None
Package
GeoDirectory
Change Log
Since: 1.0.0
Source File
gd_install_theme_compat() is located in upgrade.php [Line: 348]
Source Code
function gd_install_theme_compat()
{
global $wpdb;
$theme_compat = array();
$theme_compat = get_option('gd_theme_compats');
//GDF
$theme_compat['GeoDirectory_Framework'] = array(
'geodir_wrapper_open_id' => 'geodir_wrapper',
'geodir_wrapper_open_class' => '',
'geodir_wrapper_open_replace' => '',
'geodir_wrapper_close_replace' => '
',
'geodir_wrapper_content_open_id' => 'geodir_content',
'geodir_wrapper_content_open_class' => '',
'geodir_wrapper_content_open_replace' => '',
'geodir_wrapper_content_close_replace' => '',
'geodir_article_open_id' => '',
'geodir_article_open_class' => '',
'geodir_article_open_replace' => '',
'geodir_article_close_replace' => '',
'geodir_sidebar_right_open_id' => '',
'geodir_sidebar_right_open_class' => '',
'geodir_sidebar_right_open_replace' => ' ',
'geodir_wrapper_content_open_id' => 'geodir_content',
'geodir_wrapper_content_open_class' => '',
'geodir_wrapper_content_open_replace' => '',
'geodir_wrapper_content_close_replace' => '',
'geodir_article_open_id' => '',
'geodir_article_open_class' => '',
'geodir_article_open_replace' => '',
'geodir_article_close_replace' => '',
'geodir_sidebar_right_open_id' => '',
'geodir_sidebar_right_open_class' => '',
'geodir_sidebar_right_open_replace' => '
',
'geodir_wrapper_content_open_id' => '',
'geodir_wrapper_content_open_class' => '',
'geodir_wrapper_content_open_replace' => '',
'geodir_wrapper_content_close_replace' => '',
'geodir_article_open_id' => '',
'geodir_article_open_class' => '',
'geodir_article_open_replace' => '',
'geodir_article_close_replace' => '',
'geodir_sidebar_right_open_id' => '',
'geodir_sidebar_right_open_class' => '',
'geodir_sidebar_right_open_replace' => '',
'geodir_sidebar_right_close_replace' => '',
'geodir_sidebar_left_open_id' => '',
'geodir_sidebar_left_open_class' => '',
'geodir_sidebar_left_open_replace' => '',
'geodir_sidebar_left_close_replace' => '',
'geodir_main_content_open_id' => '',
'geodir_main_content_open_class' => '',
'geodir_main_content_open_replace' => '',
'geodir_main_content_close_replace' => '',
'geodir_top_content_add' => '',
'geodir_before_main_content_add' => '',
'geodir_before_widget_filter' => '',
'geodir_after_widget_filter' => '',
'geodir_theme_compat_css' => stripslashes('.geodir_full_page .top_banner_section{margin-bottom:0}.widget .geodir-cat-list ul li{clear:none}.wpgeo-enfold .av-main-nav ul{width:222px}.geodir-listing-search .geodir-loc-bar{border-top:none;padding:0}#main .geodir-listing-search,.geodir-listing-search .geodir-loc-bar{margin-bottom:0}#main .geodir-loc-bar-in,#main .geodir-category-list-in{background-color:#fcfcfc;margin:20px 0;padding:20px}#main .geodir_full_page .geodir-loc-bar-in,#main .geodir_full_page .geodir-loc-bar,#main .geodir_full_page .geodir-category-list-in{margin-top:0;margin-bottom:0}#main .geodir-loc-bar-in{padding:20px}#main .geodir-search{margin:0;width:100%}#main .geodir-search select{margin:0 3% 0 0;padding:8px 10px;width:13%}#main .geodir-search input[type="text"]{margin:0 3% 0 0;padding:10px;width:32.4%}#main .geodir-search input[type="button"],#main .geodir-search input[type="submit"]{font-size:inherit;line-height:2.25;margin:0;padding:7px;width:13%}.enfold-home-top section.widget{margin:0;padding:0}.enfold-home-top .top_banner_section{margin-bottom:0}.enfold-home-top .geodir-loc-bar{background:#fcfcfc;border:none;margin:0;padding:0}#main .enfold-home-top .geodir-loc-bar-in{background:none;border:none;margin:0 auto;padding:20px 0}#main .geodir-breadcrumb{border-bottom-style:solid;border-bottom-width:1px}#gd-tabs dt{clear:none}#geodir_slider ul li{list-style-type:none;margin:0;padding:0}#respond{clear:both}#comments .comments-title span{display:inline;font-size:inherit;font-weight:700}#reviewsTab .comments-area .bypostauthor cite span{display:inline}#top #comments .commentlist .comment,#top #comments .commentlist .comment > div{min-height:0}.commentlist .commenttext{padding-top:15px}#comment_imagesdropbox{margin-bottom:20px}.wpgeo-enfold .geodir_category_list_view li{margin-left:0;padding:0}.widget ul.geodir-loginbox-list{overflow:visible}.geodir_category_list_view li .geodir-post-img{display:block}.wpgeo-enfold .geodir_event_listing_calendar tr.title{background:#ccc}@media only screen and (max-width:480px){.geodir_category_list_view li .geodir-content,.geodir_category_list_view li .geodir-post-img,.geodir_category_list_view li .geodir-addinfo{float:none;width:100%;margin:10px 0}#main .geodir-search input[type="text"],#main .geodir-search input[type="button"],#main .geodir-search input[type="submit"],#main .geodir-search select{margin:10px 0;width:100%}}#main .geodir_full_page section:last-child .geodir-loc-bar{margin-bottom: -1px;border-bottom: none;}'),
'geodir_theme_compat_js' => '',
'geodir_theme_compat_default_options' => '',
'geodir_theme_compat_code' => 'Enfold'
);
// X
$theme_compat['X'] = array(
'geodir_wrapper_open_id' => '',
'geodir_wrapper_open_class' => '',
'geodir_wrapper_open_replace' => '',
'geodir_wrapper_close_replace' => '',
'geodir_wrapper_content_open_id' => '',
'geodir_wrapper_content_open_class' => '',
'geodir_wrapper_content_open_replace' => '',
'geodir_wrapper_content_close_replace' => '',
'geodir_article_open_id' => '',
'geodir_article_open_class' => '',
'geodir_article_open_replace' => '',
'geodir_article_close_replace' => '',
'geodir_sidebar_right_open_id' => '',
'geodir_sidebar_right_open_class' => '',
'geodir_sidebar_right_open_replace' => '',
'geodir_sidebar_right_close_replace' => '',
'geodir_sidebar_left_open_id' => '',
'geodir_sidebar_left_open_class' => '',
'geodir_sidebar_left_open_replace' => '',
'geodir_sidebar_left_close_replace' => '',
'geodir_main_content_open_id' => '',
'geodir_main_content_open_class' => '',
'geodir_main_content_open_replace' => '',
'geodir_main_content_close_replace' => '',
'geodir_top_content_add' => '',
'geodir_before_main_content_add' => '',
'geodir_before_widget_filter' => '',
'geodir_after_widget_filter' => '',
'geodir_theme_compat_css' => stripslashes('.x-colophon.bottom{clear:both}#geodir-main-content,.geodir_flex-container{margin-top:16px}.geodir-x ul{list-style:none}.widget ul.geodir_category_list_view{border:none}.geodir_category_list_view li.geodir-gridview:last-child{border-bottom:1px solid #e1e1e1}.home .x-header-landmark{display:none}.geodir-x .x-main .geodir_advance_search_widget{margin:0}.geodir-x .top_banner_section{margin-bottom:0}.geodir-loc-bar{background:rgba(0,0,0,0.05);margin:0;padding:0}.geodir-loc-bar-in{background:none;border:none;padding:10px}.geodir-search{margin:0;width:100%}.widget .geodir-search select,.geodir-search input[type="text"],.geodir-search input[type="button"],.geodir-search input[type="submit"]{border:1px solid #ccc;box-shadow:none;height:auto;line-height:21px;margin:0 1% 0 0;padding:5px 10px}.widget .geodir-search select,.geodir-search input[type="text"]{width:28%}.geodir-search input[type="submit"],.geodir-search input[type="button"]{line-height:19px;margin-right:0;width:11%}.geodir-search input:hover[type="submit"],.geodir-search input:hover[type="button"]{background:#333;color:#fff}.geodir-cat-list .widget-title{margin-top:0}.geodir-x .geodir-category-list-in{background:rgba(0,0,0,0.05);border:none}.widget .geodir-cat-list ul.geodir-popular-cat-list{border:none;border-radius:0;box-shadow:none}.geodir_full_page .geodir-cat-list ul li{border:none}.geodir_full_page .geodir-cat-list ul li a{border:none}.post-type-archive .geodir-loc-bar{border:none;margin-top:20px}#menu-item-gd-location-switcher dd{margin-left:0}.geodir-chosen-container-single .chosen-single{height:auto}.widget ul.geodir-loginbox-list{overflow:visible}.geodir_full_page section.widget{clear:both}.x-ethos .entry-title{margin-bottom:20px}.x-ethos .geodir-chosen-container-single .chosen-single{padding:0 0 0 8px}.x-ethos .widget ul li a,.x-ethos .geodir_category_list_view li{color:#333}@media only screen and (max-width:767px){.widget .geodir-search select,.geodir-search input[type="text"],.geodir-search input[type="button"],.geodir-search input[type="submit"]{margin:0 0 10px;width:100%}}.geodir_full_page .geodir-loc-bar-in,.geodir_full_page .geodir-loc-bar,.geodir_full_page .geodir-category-list-in{margin-top:0;margin-bottom:0}.geodir_full_page .geodir-loc-bar-in,.geodir_full_page .geodir-category-list-in{border-bottom:1px solid rgba(0,0,0,0.1)}.geodir_full_page .geodir-listing-search{text-align:center}.geodir_full_page .geodir-search{float:none;margin:0}.geodir_full_page .geodir-search select,.geodir_full_page .geodir-search .search_by_post,.geodir_full_page .geodir-search input[type="text"],.geodir_full_page .geodir-search input[type="button"],.geodir_full_page .geodir-search input[type="submit"]{display:inline-block;float:none}'),
'geodir_theme_compat_js' => '',
'geodir_theme_compat_default_options' => '',
'geodir_theme_compat_code' => 'X'
);
// Divi
$theme_compat['Divi'] = array(
'geodir_wrapper_open_id' => 'main-content',
'geodir_wrapper_open_class' => '',
'geodir_wrapper_open_replace' => '',
'geodir_wrapper_close_replace' => '',
'geodir_wrapper_content_open_id' => 'left-area',
'geodir_wrapper_content_open_class' => '',
'geodir_wrapper_content_open_replace' => '',
'geodir_wrapper_content_close_replace' => '',
'geodir_article_open_id' => '',
'geodir_article_open_class' => '',
'geodir_article_open_replace' => '',
'geodir_article_close_replace' => '',
'geodir_sidebar_right_open_id' => 'sidebar',
'geodir_sidebar_right_open_class' => '',
'geodir_sidebar_right_open_replace' => '
',
'geodir_sidebar_left_open_id' => 'sidebar',
'geodir_sidebar_left_open_class' => '',
'geodir_sidebar_left_open_replace' => '
',
'geodir_main_content_open_id' => '',
'geodir_main_content_open_class' => '',
'geodir_main_content_open_replace' => '',
'geodir_main_content_close_replace' => '',
'geodir_top_content_add' => '',
'geodir_before_main_content_add' => '',
'geodir_before_widget_filter' => '',
'geodir_after_widget_filter' => '',
'geodir_theme_compat_css' => stripslashes('#left-area ul.geodir-direction-nav{list-style-type:none}#sidebar .geodir-company_info{margin-left:30px}#sidebar .geodir-widget{float:none;margin:0 0 30px 30px}.geodir_full_page .geodir-loc-bar{padding:0;margin:0;border:none}.geodir_full_page .geodir-category-list-in{margin-top:0}.geodir_full_page .top_banner_section{margin-bottom:0}.archive .entry-header,.geodir-breadcrumb{border-bottom:1px solid #e2e2e2}.archive .entry-header h1,ul#breadcrumbs{padding:0 15px;width:100%}#left-area ul.geodir_category_list_view{padding:10px 0}.nav li#menu-item-gd-location-switcher ul{width:222px}#menu-item-gd-location-switcher li.gd-location-switcher-menu-item{padding-right:0}#menu-item-gd-location-switcher dd{margin-left:0}#menu-item-gd-location-switcher .geodir_location_tab_container dd a{padding:5px;width:auto}.geodir_full_page .geodir-listing-search{text-align:center}.geodir_full_page .geodir-search{float:none;margin:0}.geodir_full_page .geodir-search .search_by_post,.geodir_full_page .geodir-search input[type=button],.geodir_full_page .geodir-search input[type=submit],.geodir_full_page .geodir-search input[type=text],.geodir_full_page .geodir-search select{display:inline-block;float:none}'),
'geodir_theme_compat_js' => '',
'geodir_theme_compat_default_options' => '',
'geodir_theme_compat_code' => 'Divi'
);
// Genesis
$theme_compat['Genesis'] = array(
'geodir_wrapper_open_id' => '',
'geodir_wrapper_open_class' => 'content-sidebar-wrap',
'geodir_wrapper_open_replace' => '',
'geodir_wrapper_close_replace' => '',
'geodir_wrapper_content_open_id' => '',
'geodir_wrapper_content_open_class' => 'content',
'geodir_wrapper_content_open_replace' => '',
'geodir_wrapper_content_close_replace' => '',
'geodir_article_open_id' => '',
'geodir_article_open_class' => '',
'geodir_article_open_replace' => '',
'geodir_article_close_replace' => '',
'geodir_sidebar_right_open_id' => '',
'geodir_sidebar_right_open_class' => 'sidebar sidebar-primary widget-area',
'geodir_sidebar_right_open_replace' => '