D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
sadaunjx
/
public_html
/
wp-content
/
themes
/
newsplus1
/
inc
/
Filename :
settings.php
back
Copy
<?php /* Copyrights (C) Arb4Host Network */ ?> <?php function a4h_default_options() { $options = array( 'social_links' => array( 'facebook' => 'https://www.facebook.com/arb4hostnetwork', 'twitter' => 'https://twitter.com/arb4host', ), 'sidebar_side' => 1, 'sidebar_side_case' => 'is_single()', 'archive_style' => 'style2', 'post_header_style' => 'style2', 'bg_color' => '#D8DBE1', 'main_color' => '#931800', 'link_color' => '#333333', 'link_hover_color' => '#931800', 'fonts' => array( 'body_font_family' => 'Tahoma', 'body_font_size' => '14', 'body_font_weight' => 'normal', 'nav_menu_font_family' => 'Droid Arabic Kufi', 'nav_menu_font_size' => '14', 'nav_menu_font_weight' => 'bold', 'widget_header_font_family' => 'Droid Arabic Kufi', 'widget_header_font_size' => '18', 'widget_header_font_weight' => 'bold', 'page_title_font_family' => 'Greta Arabic Regular', 'page_title_font_size' => '32', 'page_title_font_weight' => 'bold', 'title_font_family' => 'Greta Arabic Regular', 'title_font_size' => '18', 'title_font_weight' => 'normal', 'post_content_font_family' => 'Greta Arabic Regular', 'post_content_font_size' => '18', 'post_content_font_weight' => 'normal', ), 'display_post_image' => 1, 'display_post_image_case' => 'is_single()', 'display_post_meta' => 1, 'display_post_meta_case' => 'is_single()', 'display_author_block_case' => 'is_single()', 'display_tags' => 1, 'display_tags_case' => 'is_single()', 'display_share_buttons_bottom' => 1, 'display_share_buttons_top_case' => 'is_single()', 'display_share_buttons_bottom_case' => 'is_single()', 'wp_comments' => 1, 'wp_comments_case' => 'is_single()', 'fb_comments' => 1, 'fb_comments_case' => 'is_single()', 'fb_comments_order' => 'social', 'fb_comments_shortlink' => 1, 'copyrights_text' => 'جميع الحقوق محفوظة', 'time_format' => 'j F Y - g:ia', 'short_time' => 1, 'show_main_nav_posts' => 1, 'posts_pagination_style' => 'ajax', ); return $options; } function a4h_default_ads() { $ads = array( 'global_ads' => array( 'status' => 1, 'case' => '', ), 'ads' => array( 'ad_' => array( 'status' => 1, ), 'ad_1' => array( 'status' => 1, 'force' => 1, 'case' => '', 'location' => 'header_inside', 'type' => 'code', 'code' => '[timenow]', ), ), 'adsense' => array( 'style1' => array( 'border' => '#FFFFFF', 'bg' => '#FFFFFF', 'link' => '#0000FF', 'text' => '#000000', 'url' => '#008000', ), 'style2' => array( 'border' => '#CCCCCC', 'bg' => '#FFFFFF', 'link' => '#333333', 'text' => '#666666', 'url' => '#0066CC', ), 'style3' => array( 'border' => '#FFFFCC', 'bg' => '#FFFFCC', 'link' => '#353535', 'text' => '#353535', 'url' => '#0000FF', ), 'style4' => array( 'border' => '#112233', 'bg' => '#112233', 'link' => '#FFFFFF', 'text' => '#FFFFFF', 'url' => '#FFFFFF', ), ), 'rs_ratio' => '80', 'rs_allowed_roles' => array( 'administrator' => 1, 'editor' => 1, 'contributor' => 1, 'author' => 1, ), ); return $ads; } function a4h_install_default_widgets() { $categories = get_categories('orderby=count&order=DESC'); $widgets = array( 'home' => array( 'a4h_posts_list-1', 'a4h_posts_list-2', 'a4h_posts_list-3', 'a4h_posts_list-4', 'a4h_posts_list-5', 'a4h_posts_list-6', 'a4h_posts_list-7', ), 'side' => array( 'a4h_posts_list-8', ), 'post_below' => array( 'a4h_posts_list-9', ), ); update_option('sidebars_widgets', $widgets); $posts_widget = array( 1 => array( 'style' => 'style2', 'posts_per_page' => 8, 'cats' => array( $categories[0]->term_id, ), 'title' => get_cat_name($categories[0]->term_id), 'cat_link' => 1, ), 2 => array( 'style' => 'style2', 'posts_per_page' => 8, 'cats' => array( $categories[1]->term_id, ), 'title' => get_cat_name($categories[1]->term_id), 'cat_link' => 1, ), 3 => array( 'style' => 'style2', 'posts_per_page' => 4, 'cats' => array( $categories[2]->term_id, ), 'title' => get_cat_name($categories[2]->term_id), 'cat_link' => 1, 'widget_width' => 6, ), 4 => array( 'style' => 'style2', 'posts_per_page' => 4, 'cats' => array( $categories[3]->term_id, ), 'title' => get_cat_name($categories[3]->term_id), 'cat_link' => 1, 'widget_width' => 6, ), 5 => array( 'style' => 'style1', 'posts_per_page' => 4, 'cats' => array( $categories[4]->term_id, ), 'title' => get_cat_name($categories[4]->term_id), 'cat_link' => 1, 'widget_width' => 4, ), 6 => array( 'style' => 'style1', 'posts_per_page' => 4, 'cats' => array( $categories[5]->term_id, ), 'title' => get_cat_name($categories[5]->term_id), 'cat_link' => 1, 'widget_width' => 4, ), 7 => array( 'style' => 'style1', 'posts_per_page' => 4, 'cats' => array( $categories[6]->term_id, ), 'title' => get_cat_name($categories[6]->term_id), 'cat_link' => 1, 'widget_width' => 4, ), 8 => array( 'style' => 'style1', 'posts_per_page' => 10, 'title' => 'أحدث المقالات' ), 9 => array( 'style' => 'style2', 'posts_per_page' => 6, 'cats' => array( 'current' ), 'title' => 'اقرأ أيضا', 'widget_case' => 'is_single()', ), ); update_option('widget_a4h_posts_list', $posts_widget); } function a4h_reset_settings($settings = null) { if ( $settings == 'options' ) { update_option(THEME_OPTIONS_VAR, a4h_default_options()); } if ( $settings == 'ads' ) { update_option(THEME_ADS_VAR, a4h_default_ads()); } if ( $settings == 'widgets' ) { a4h_install_default_widgets(); } if ( $settings == 'admin_notices' ) { delete_option(DB_PREFIX.'_notices'); } }