<?php 
    $options[] = array(
        'name' => __('Pagina mas servicios','HOSTING_SP'),
        'type' => 'heading',
		'std'  => 'upload-alt'
    );

        $options[] = array(
            'id' => 'page_img_back',
            'desc' => 'Imagen de fondo',
            'type' => 'upload'
        );
        $options[] = array(
            'id' => 'show_services_page',
            'desc' => 'Configuración Mostrar Estilo',
            'std' => 1,
            'type' => 'checkbox'
        );
        //SERVICE PAGE
        $options[] = array(
            'name' => __('Servicio de Información de la página','HOSTING_SP'),
            'type' => 'toggle'
        );
            $options[] = array(
                'id' => 'show_service_page_desc',
                'desc' => 'Configuración Mostrar Estilo',
                'std' => 1,
                'type' => 'checkbox'
            );
            $options[] = array(
                'id' => 'service_page_desc_title',
                'desc' => 'Titulo',
                'std' => 'Domain Registration',
                'type' => 'text'
            );
            $options[] = array(
                'id' => 'service_page_desc_desc',
                'desc' => 'Descripcion',
                'std' => 'Register domains quickly and easily through your Core Account. HostDime offers all popular TLD extensions and allows you to managed your web hosting and domains all in one place to make billing and organization as simple as possible. Don\'t have a Core account yet?
    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.',
                'type' => 'textarea'
            );
            $options[] = array(
                'id' => 'service_page_desc_img',
                'type' => 'upload'
            );
            $options[] = array(
                'id' => 'service_page_desc_img_pos',
                'desc' => 'Posición de la imagen',
                'options' => array(
                    '1' => 'izquierda',
                    '2' => 'derecha'
                ),
                'class' => 'side',
                'type' => 'radio'
            );
            
        $options[] = array(
            'name' => __('Servicio de Información de la página','HOSTING_SP'),
            'type' => 'toggle-close'
        );
        //PLANS
        $options[] = array(
            'name' => __('Informacion de planes','HOSTING_SP'),
            'type' => 'toggle'
        );
            $options[] = array(
                'id' => 'show_service_page_plans',
                'desc' => 'Configuración Mostrar Estilo',
                'std' => 1,
                'type' => 'checkbox'
            );   
            $args=array(
                'post_type' => 'plan',
                'post_status' => 'publish',
                'posts_per_page' => -1,
            );
            $my_query = null;
            $my_query = new WP_Query($args);
            $plan = array();
            
            while ($my_query->have_posts()) {
                $my_query->the_post();
                $plan[] = array(
                    'title' => get_the_title(),
                    'subtitle' => get_field('subtitle'),
                    'price' => get_field('price'),
                    'freq' => get_field('frequency'),
                    'options' => get_field('options'),
                    'category' => get_field('categoria'),
                    'btn_title' => get_field('btn_title'),
                    'btn_link' => get_field('btn_link')
                );
            }
            $c = 0;
            $options[] = array(
                'name' => 'Planes para mostrar',
                'type' => 'info'
            );
            $options[] = array(
                'id' => 'service_page_plan',
                'desc' => 'Planee Categoría para mostrar',
                'std' => 'Plan1',
                'options' => array(
                    'Plan1' => 'Plan1',
                    'Plan2' => 'Plan2',
                    'Plan3' => 'Plan3',
                    'Plan4' => 'Plan4'
                ),
                'type' => 'select'
            );
            /* $options[] = array(
                'id' => 'service_page_plans_num',
                'desc' => 'Numero de planes',
                'std' => '4',
                'type' => 'text',
                'class' => 'mini'
            );
            $options[] = array(
                'id' => 'show_service_page_plans_row_num',
                'desc' => 'Numero de fila  del plan',
                'std' => '5',
                'type' => 'text',
                'class' => 'mini'
            );
            if(of_get_option('show_service_page_plans_num')?$cant_plans=of_get_option('show_service_page_plans_num'):$cant_plans=4);
            for($i=1; $i<=$cant_plans; $i++){
                $options[] = array(
                    'name' => 'Plan '.$i,
                    'type' => 'toggle'
                );
                    $options[] = array(
                        'id' => 'service_page_plans_title'.$i,
                        'desc' => 'Titulo',
                        'std' => 'Basic',
                        'type' => 'text',
                        'class' => 'medium'
                    );
                    $options[] = array(
                        'id' => 'service_page_plans_detail'.$i,
                        'desc' => 'Detalle',
                        'std' => 'Small Company',
                        'type' => 'text'
                    );

                        $options[] = array(
                            'id' => 'show_service_page_plans_price'.$i,
                            'desc' => 'Configuración Mostrar Estilo',
                            'std' => 1,
                            'type' => 'checkbox'
                        );
                        $options[] = array(
                            'id' => 'service_page_plans_price'.$i,
                            'desc' => 'Precio',
                            'std' => '500',
                            'type' => 'text',
                            'class' => 'mini'
                        );
                        $options[] = array(
                            'id' => 'service_page_plans_frec'.$i,
                            'desc' => 'Impuesto clase',
                            'std' => 'Daitly',
                            'options' => array(
                                'Daitly' => 'Daitly',
                                'Monthly' => 'Monthly',
                                'Yearly' => 'Yearly'
                            ),
                            'type' => 'radio',
                            'class' => 'side'
                        );

                    if(of_get_option('show_service_page_plans_row_num')?$cant_plans_row=of_get_option('show_service_page_plans_row_num'):$cant_plans_row=5);
                    for($j=1; $j<=$cant_plans_row; $j++){
                        $options[] = array(
                            'name' => 'Fila '.$j,
                            'type' => 'toggle'
                        );
                            $options[] = array(
                                'id' => 'service_page_plans_row'.$i.$j,
                                'desc' => 'Descripcion',
                                'std' => '500 GB Disk Space',
                                'type' => 'text',
                            );
                            foreach(font_awesome_icon('more_serv_plan'.$i.$j) as $val){
                                $options[] = $val;
                            }   
                        $options[] = array(
                            'name' => 'Fila '.$j,
                            'type' => 'toggle-close'
                        );
                    }
                    $options[] = array(
                        'id' => 'service_page_plans_btn'.$i,
                        'desc' => 'Texto Boton',
                        'std' => 'Choose Plan',
                        'type' => 'text',
                        'class' => 'medium'
                    );
                    $options[] = array(
                        'id' => 'service_page_plans_btn_link'.$i,
                        'desc' => 'Link Boton',
                        'type' => 'text'
                    );
                $options[] = array(
                    'name' => 'Plan '.$i,
                    'type' => 'toggle-close'
                );
            }    */
        $options[] = array(
            'name' => __('Onformacion de planes','HOSTING_SP'),
            'type' => 'toggle-close'
        );

?>