arm_get_all_member_templates(); $defaultTemplates = $arm_members_directory->arm_default_member_templates(); $tempColorSchemes = $arm_members_directory->getTemplateColorSchemes(); $subs_data = $arm_subscription_plans->arm_get_all_subscription_plans('arm_subscription_plan_id, arm_subscription_plan_name'); $tempColorSchemes = $arm_members_directory->getTemplateColorSchemes(); $tempColorSchemes1 = $arm_members_directory->getTemplateColorSchemes1(); $profile_templates = array(); foreach ($defaultTemplates as $key => $template) { if ($template['arm_type'] == 'profile') { array_push($profile_templates, $template); } } ?> 'user_login', 'user_email' => 'user_email', 'first_name' => 'first_name', 'last_name' => 'last_name' ); $profile_fields_data['label'] = array( 'user_login' => 'Username', 'user_email' => 'Email Address', 'first_name' => 'First Name', 'last_name' => 'Last Name' ); $profile_fields_data['default_values'] = $arm_members_directory->arm_get_profile_dummy_data(); echo ""; $options = array( 'pagination' => 'numeric', 'show_badges' => 1, 'show_joining' => 1, 'hide_empty_profile_fields' => 1, 'color_scheme' => 'blue', 'title_color' => '#0c7cd5', 'subtitle_color' => '#575d70', 'border_color' => '#0c7cd5', 'button_color' => '', 'button_font_color' => '', 'tab_bg_color' => '', 'tab_link_color' => '', 'tab_link_hover_color' => '', 'tab_link_bg_color' => '', 'tab_link_hover_bg_color' => '', 'link_color' => '', 'link_hover_color' => '', 'content_font_color' => '#616175', 'box_bg_color' => '', 'title_font' => array( 'font_family' => 'Open Sans Semibold', 'font_size' => '26', 'font_bold' => 1, 'font_italic' => 0, 'font_decoration' => '', ), 'subtitle_font' => array( 'font_family' => 'Open Sans Semibold', 'font_size' => '16', 'font_bold' => 0, 'font_italic' => 0, 'font_decoration' => '', ), 'button_font' => array( 'font_family' => 'Open Sans Semibold', 'font_size' => '16', 'font_bold' => 0, 'font_italic' => 0, 'font_decoration' => '', ), 'tab_link_font' => array( 'font_family' => 'Open Sans Semibold', 'font_size' => '16', 'font_bold' => 1, 'font_italic' => 0, 'font_decoration' => '', ), 'content_font' => array( 'font_family' => 'Open Sans Semibold', 'font_size' => '16', 'font_bold' => 0, 'font_italic' => 0, 'font_decoration' => '', ), 'default_cover' => MEMBERSHIPLITE_IMAGES_URL.'/profile_default_cover.png', 'custom_css' => '', ); $display_joining_date = $options['show_joining']; $display_admin_profile = 0; $subscription_plans = array(); $template_id = 0; $is_default_template = 0; $hide_empty_profile_fields = 0; $default_data = array(); if( isset($_GET['action']) && $_GET['action'] == 'edit_profile' ){ $template_id = intval($_GET['id']); $data = $wpdb->get_row($wpdb->prepare("SELECT * FROM `".$ARMember->tbl_arm_member_templates."` WHERE arm_type = %s and arm_id = %d",'profile',$template_id) ); if( $data == '' || empty($data) ){ wp_redirect(admin_url('admin.php?page=arm_profiles_directories')); exit; } $subscription_plans = ( isset($data->arm_subscription_plan) && $data->arm_subscription_plan != '' ) ? explode(',',$data->arm_subscription_plan) : array(); $default_data = $data; $temp_slug = $data->arm_slug; $options = maybe_unserialize($data->arm_options); $default_data->arm_options = maybe_unserialize($options); $display_admin_profile = $data->arm_enable_admin_profile; $is_default_template = $data->arm_default; $display_joining_date = isset($options['show_joining']) && $options['show_joining'] != '' ? $options['show_joining'] : 0; $default_cover_photo = isset($options['default_cover_photo']) && $options['default_cover_photo'] != '' ? $options['default_cover_photo'] : 0; $arm_profile_before_content = $data->arm_html_before_fields; $arm_profile_after_content = $data->arm_html_after_fields; $profile_fields_data['profile_fields'] = isset($options['profile_fields'] ) && $options['profile_fields'] != '' ? $options['profile_fields'] : array(); $profile_fields_data['label'] = isset($options['label']) && $options['label'] != '' ? $options['label'] : array(); $hide_empty_profile_fields = isset($options['hide_empty_profile_fields']) ? $options['hide_empty_profile_fields'] : 1; } $options['color_scheme'] = isset($options['color_scheme']) && $options['color_scheme'] != '' ? $options['color_scheme'] : 'blue'; $options = apply_filters('arm_profile_default_options_outside',$options); ?>