__('One', 'options_framework_theme'), 'two' => __('Two', 'options_framework_theme'), 'three' => __('Three', 'options_framework_theme'), 'four' => __('Four', 'options_framework_theme'), 'five' => __('Five', 'options_framework_theme') ); // Multicheck Array $multicheck_array = array( 'one' => __('French Toast', 'options_framework_theme'), 'two' => __('Pancake', 'options_framework_theme'), 'three' => __('Omelette', 'options_framework_theme'), 'four' => __('Crepe', 'options_framework_theme'), 'five' => __('Waffle', 'options_framework_theme') ); // Multicheck Defaults $multicheck_defaults = array( 'one' => '1', 'five' => '1' ); // Background Defaults $background_defaults = array( 'color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment'=>'scroll' ); // Typography Defaults $typography_defaults = array( 'size' => '15px', 'face' => 'georgia', 'style' => 'bold', 'color' => '#bada55' ); // Typography Options $typography_options = array( 'sizes' => array( '6','12','14','16','20' ), 'faces' => array( 'Helvetica Neue' => 'Helvetica Neue','Arial' => 'Arial' ), 'styles' => array( 'normal' => 'Normal','bold' => 'Bold' ), 'color' => false ); // Pull all the categories into an array $options_categories = array(); $options_categories_obj = get_categories(); foreach ($options_categories_obj as $category) { $options_categories[$category->cat_ID] = $category->cat_name; } // Pull all tags into an array $options_tags = array(); $options_tags_obj = get_tags(); foreach ( $options_tags_obj as $tag ) { $options_tags[$tag->term_id] = $tag->name; } // Pull all the pages into an array $options_pages = array(); $options_pages_obj = get_pages('sort_column=post_parent,menu_order'); $options_pages[''] = 'Select a page:'; foreach ($options_pages_obj as $page) { $options_pages[$page->ID] = $page->post_title; } // If using image radio buttons, define a directory path $imagepath = get_template_directory_uri() . '/images/'; $options = array(); // $options[] = array( // 'name' => __('Basic Settings', 'options_framework_theme'), // 'type' => 'heading'); // $options[] = array( // 'name' => __('Input Text Mini', 'options_framework_theme'), // 'desc' => __('A mini text input field.', 'options_framework_theme'), // 'id' => 'example_text_mini', // 'std' => 'Default', // 'class' => 'mini', // 'type' => 'text'); // $options[] = array( // 'name' => __('Input Text', 'options_framework_theme'), // 'desc' => __('A text input field.', 'options_framework_theme'), // 'id' => 'example_text', // 'std' => 'Default Value', // 'type' => 'text'); // $options[] = array( // 'name' => __('Input with Placeholder', 'options_framework_theme'), // 'desc' => __('A text input field with an HTML5 placeholder.', 'options_framework_theme'), // 'id' => 'example_placeholder', // 'placeholder' => 'Placeholder', // 'type' => 'text'); // $options[] = array( // 'name' => __('Textarea', 'options_framework_theme'), // 'desc' => __('Textarea description.', 'options_framework_theme'), // 'id' => 'example_textarea', // 'std' => 'Default Text', // 'type' => 'textarea'); //$options[] = array( // 'name' => __('Input Select Small', 'options_framework_theme'), // 'desc' => __('Small Select Box.', 'options_framework_theme'), // 'id' => 'example_select', // 'std' => 'three', // 'type' => 'select', // 'class' => 'mini', //mini, tiny, small // 'options' => $test_array); //$options[] = array( // 'name' => __('Input Select Wide', 'options_framework_theme'), // 'desc' => __('A wider select box.', 'options_framework_theme'), // 'id' => 'example_select_wide', // 'std' => 'two', // 'type' => 'select', // 'options' => $test_array); //if ( $options_tags ) { //$options[] = array( // 'name' => __('Select a Tag', 'options_check'), // 'desc' => __('Passed an array of tags with term_id and term_name', 'options_check'), // 'id' => 'example_select_tags', // 'type' => 'select', // 'options' => $options_tags); //} //$options[] = array( // 'name' => __('Select a Page', 'options_framework_theme'), // 'desc' => __('Passed an pages with ID and post_title', 'options_framework_theme'), // 'id' => 'example_select_pages', // 'type' => 'select', // 'options' => $options_pages); //$options[] = array( // 'name' => __('Input Radio (one)', 'options_framework_theme'), // 'desc' => __('Radio select with default options "one".', 'options_framework_theme'), // 'id' => 'example_radio', // 'std' => 'one', // 'type' => 'radio', // 'options' => $test_array); //$options[] = array( // 'name' => __('Example Info', 'options_framework_theme'), // 'desc' => __('This is just some example information you can put in the panel.', 'options_framework_theme'), // 'type' => 'info'); //$options[] = array( // 'name' => __('Input Checkbox', 'options_framework_theme'), // 'desc' => __('Example checkbox, defaults to true.', 'options_framework_theme'), // 'id' => 'example_checkbox', // 'std' => '1', // 'type' => 'checkbox'); $options[] = array( 'name' => __('Options du thème', 'options_framework_theme'), 'type' => 'heading'); //$options[] = array( // 'name' => __('Check to Show a Hidden Text Input', 'options_framework_theme'), // 'desc' => __('Click here and see what happens.', 'options_framework_theme'), // 'id' => 'example_showhidden', // 'type' => 'checkbox'); //$options[] = array( // 'name' => __('Hidden Text Input', 'options_framework_theme'), // 'desc' => __('This option is hidden unless activated by a checkbox click.', 'options_framework_theme'), // 'id' => 'example_text_hidden', // 'std' => 'Hello', // 'class' => 'hidden', // 'type' => 'text'); $options[] = array( 'name' => __('Logo du site', 'options_framework_theme'), 'desc' => __('Téléchargez ici le logo de votre site. Si ce champ n\'est pas renseigné il ira chercher le logo de base.', 'options_framework_theme'), 'id' => 'logo_uploader', 'type' => 'upload'); $options[] = array( 'name' => __('Les mots clés du site', 'options_framework_theme'), 'desc' => __('Indiquer ici les mots-clés du site séparés par une virgule (jusqu\'à 100).', 'options_framework_theme'), 'id' => 'keywords', 'placeholder' => 'Mots-clés', 'type' => 'text'); if ( $options_categories ) { $options[] = array( 'name' => __('Sélectionne une catégorie', 'options_framework_theme'), 'desc' => __('Choisir la catégorie mise en avant dans les menus.', 'options_framework_theme'), 'id' => 'select_categories', 'type' => 'select', 'options' => $options_categories); } //$options[] = array( // 'name' => "Example Image Selector", // 'desc' => "Images for layout.", // 'id' => "example_images", // 'std' => "2c-l-fixed", // 'type' => "images", // 'options' => array( // '1col-fixed' => $imagepath . '1col.png', // '2c-l-fixed' => $imagepath . '2cl.png', // '2c-r-fixed' => $imagepath . '2cr.png') //); //$options[] = array( // 'name' => __('Example Background', 'options_framework_theme'), // 'desc' => __('Change the background CSS.', 'options_framework_theme'), // 'id' => 'example_background', // 'std' => $background_defaults, // 'type' => 'background' ); //$options[] = array( // 'name' => __('Multicheck', 'options_framework_theme'), // 'desc' => __('Multicheck description.', 'options_framework_theme'), // 'id' => 'example_multicheck', // 'std' => $multicheck_defaults, // These items get checked by default // 'type' => 'multicheck', // 'options' => $multicheck_array); //$options[] = array( // 'name' => __('Colorpicker', 'options_framework_theme'), // 'desc' => __('No color selected by default.', 'options_framework_theme'), // 'id' => 'example_colorpicker', // 'std' => '', // 'type' => 'color' ); //$options[] = array( 'name' => __('Typography', 'options_framework_theme'), // 'desc' => __('Example typography.', 'options_framework_theme'), // 'id' => "example_typography", // 'std' => $typography_defaults, // 'type' => 'typography' ); //$options[] = array( // 'name' => __('Custom Typography', 'options_framework_theme'), // 'desc' => __('Custom typography options.', 'options_framework_theme'), // 'id' => "custom_typography", // 'std' => $typography_defaults, // 'type' => 'typography', // 'options' => $typography_options ); //$options[] = array( // 'name' => __('Slider', 'options_framework_theme'), // 'type' => 'heading' ); //$options[] = array( // 'name' => __('Premier slider du site', 'options_framework_theme'), // 'desc' => __('Télécharger ici l\'image de la première tuile du slider', 'options_framework_theme'), // 'id' => 'first_slider_img', // 'type' => 'upload'); //$options[] = array( // 'name' => __('Titre de la première tuile', 'options_framework_theme'), // 'desc' => __('Titre de la première tuile du slider', 'options_framework_theme'), // 'id' => 'first_slider_title', // 'placeholder' => 'Titre', // 'type' => 'text'); //$options[] = array( // 'name' => __('Première partie Catchline', 'options_framework_theme'), // 'desc' => __('Phrase d\'accroche située sous le titre de la première tuile du slider', 'options_framework_theme'), // 'id' => 'first_part_first_slider_catchline', // 'std' => 'Catchline', // 'type' => 'text'); //$options[] = array( // 'name' => __('Seconde partie Catchline', 'options_framework_theme'), // 'desc' => __('Phrase d\'accroche située sous le titre de la première tuile du slider', 'options_framework_theme'), // 'id' => 'second_part_first_slider_catchline', // 'std' => 'Catchline', // 'type' => 'text'); //$options[] = array( // 'name' => __('Second slider du site', 'options_framework_theme'), // 'desc' => __('Télécharger ici l\'image de la seconde tuile du slider', 'options_framework_theme'), // 'id' => 'second_slider_img', // 'type' => 'upload'); //$options[] = array( // 'name' => __('Titre de la seconde tuile', 'options_framework_theme'), // 'desc' => __('Titre de la seconde tuile du slider', 'options_framework_theme'), // 'id' => 'second_slider_title', // 'placeholder' => 'Titre', // 'type' => 'text'); //$options[] = array( // 'name' => __('Première partie Catchline', 'options_framework_theme'), // 'desc' => __('Phrase d\'accroche située sous le titre de la première tuile du slider', 'options_framework_theme'), // 'id' => 'first_part_second_slider_catchline', // 'std' => 'Catchline', // 'type' => 'text'); //$options[] = array( // 'name' => __('Seconde partie Catchline', 'options_framework_theme'), // 'desc' => __('Phrase d\'accroche située sous le titre de la première tuile du slider', 'options_framework_theme'), // 'id' => 'second_part_second_slider_catchline', // 'std' => 'Catchline', // 'type' => 'text'); $options[] = array( 'name' => __('Image de la page 404', 'options_framework_theme'), 'desc' => __('Téléchargez ici l\'image de la page 404 (.gif, .png., .jpg, peut importe sa taille, elle se redimensionnera automatiquement). (Par défaut, si aucune image n\'est renseignée, ce sera celle du glitch.', 'options_framework_theme'), 'id' => 'page-error_img', 'type' => 'upload'); $options[] = array( 'name' => __('Playlist du lecteur', 'options_framework_theme'), 'desc' => __('URL de la playlist Soundcloud à jouer dans le lecteur. (Si aucune playlist n\'est renseignée, ce sera celle de mai 2015 qui jouera par défaut.', 'options_framework_theme'), 'id' => 'soundcloud_links', 'placeholder' => 'Url playlist', 'type' => 'text'); // $options[] = array( // 'name' => __('Première partie Catchline', 'options_framework_theme'), // 'desc' => __('Phrase d\'accroche située sous le titre de la première tuile du slider', 'options_framework_theme'), // 'id' => 'first_part_third_slider_catchline', // 'std' => 'Catchline', // 'type' => 'text'); // $options[] = array( // 'name' => __('Seconde partie Catchline', 'options_framework_theme'), // 'desc' => __('Phrase d\'accroche située sous le titre de la première tuile du slider', 'options_framework_theme'), // 'id' => 'second_part_third_slider_catchline', // 'std' => 'Catchline', // 'type' => 'text'); // $options[] = array( // 'name' => __('Page d\'accueil', 'options_framework_theme'), // 'type' => 'heading' ); // $options[] = array( // 'name' => __('Première partie du texte d\'introduction...(à mettre en avant).', 'options_framework_theme'), // 'desc' => __('Première partie du texte d\'introduction qui sera mis en avant visuellement', 'options_framework_theme'), // 'id' => 'first_text_home', // 'placeholder' => 'Titre', // 'type' => 'text'); // $options[] = array( // 'name' => __('... et sa suite.', 'options_framework_theme'), // 'desc' => __('Deuxième partie du texte de la page d\'accueil', 'options_framework_theme'), // 'id' => 'second_text_home', // 'std' => 'Texte de présentation', // 'type' => 'textarea'); $options[] = array( 'name' => __('Image des categories', 'options_framework_theme'), 'desc' => __('Image s\'affichant dans la bannière des pages catégories. (Par défaut c\'est l\'image du dernier post de la catégorie courante qui sera appelée.)', 'options_framework_theme'), 'id' => 'category-header_banner_img', 'type' => 'upload'); $options[] = array( 'name' => __('Image des mots-clefs', 'options_framework_theme'), 'desc' => __('Image s\'affichant dans la bannière des pages mots-clefs. (Par défaut c\'est l\'image du dernier post du mot-clef courant qui sera appelé.)', 'options_framework_theme'), 'id' => 'tag-header_banner_img', 'type' => 'upload'); $options[] = array( 'name' => __('Image de la page recherche', 'options_framework_theme'), 'desc' => __('Image s\'affichant dans la bannière da la page des résultats de recherche. (Par défaut c\'est l\'image du dernier post.)', 'options_framework_theme'), 'id' => 'search-header_banner_img', 'type' => 'upload'); $options[] = array( 'name' => __('Twitter', 'options_framework_theme'), 'desc' => __('URL complète du Twitter du blog. Par défaut il s\'affichera l\'adresse de Twitter.', 'options_framework_theme'), 'id' => 'aow_twitter_url', 'placeholder' => 'Twitter', 'type' => 'text'); $options[] = array( 'name' => __('Facebook', 'options_framework_theme'), 'desc' => __('URL complète du Facebook du blog. Par défaut il s\'affichera l\'adresse de Facebook.', 'options_framework_theme'), 'id' => 'aow_facebook_url', 'placeholder' => 'Facebook', 'type' => 'text'); $options[] = array( 'name' => __('Google+', 'options_framework_theme'), 'desc' => __('URL complète du Google+ du blog. Par défaut il s\'affichera l\'adresse de Google+.', 'options_framework_theme'), 'id' => 'aow_googleplus_url', 'placeholder' => 'Google+', 'type' => 'text'); $options[] = array( 'name' => __('Options de Stratus (Lecteur SoundCloud)', 'options_framework_theme'), 'type' => 'heading'); $options[] = array( 'name' => __('Positionnement', 'options_framework_theme'), 'desc' => __('Positionement par rapport au haut ou bas de la fenêtre du navigateur (dépendant de l\'option Alignement). (En pixel, mais juste en indiquant la valeur numérique. Par exemple 96 pour 96 pixels.)', 'options_framework_theme'), 'id' => 'stratus_offset', 'placeholder' => 'Offset', 'type' => 'text'); $options[] = array( 'name' => __('Positionnement responsive', 'options_framework_theme'), 'desc' => __('Positionement par rapport au haut ou bas de la fenêtre du navigateur (dépendant de l\'option Alignement) pour les résolutions de 784px et inférieures. (En pixel, mais juste en indiquant la valeur numérique. Par exemple 96 pour 96 pixels.)', 'options_framework_theme'), 'id' => 'stratus_responsiveoffset', 'placeholder' => 'Responsive Offset', 'type' => 'text'); $options[] = array( 'name' => __('Position', 'options_framework_theme'), 'desc' => __('Position du lecteur SoundCloud. (fixed pour être toujours visible à l\'écran, sinon absolute.)', 'options_framework_theme'), 'id' => 'stratus_position', 'placeholder' => 'Position', 'type' => 'text'); // $options[] = array( // 'name' => __('Texte du premier témoignage', 'options_framework_theme'), // 'desc' => __('Témoignage', 'options_framework_theme'), // 'id' => 'first_testimony_text_home', // 'std' => 'Témoignage', // 'type' => 'textarea'); $options[] = array( 'name' => __('Alignement', 'options_framework_theme'), 'desc' => __('Alignement du lecteur. Accepte top ou bottom comme valeur.', 'options_framework_theme'), 'id' => 'stratus_align', 'placeholder' => 'Alignement', 'type' => 'text'); // $options[] = array( // 'name' => __('Texte du second témoignage', 'options_framework_theme'), // 'desc' => __('Témoignage', 'options_framework_theme'), // 'id' => 'second_testimony_text_home', // 'std' => 'Témoignage', // 'type' => 'textarea'); $options[] = array( 'name' => __('Playlist du lecteur', 'options_framework_theme'), 'desc' => __('URL de la playlist SoundCloud à jouer dans le lecteur. (Si aucune playlist n\'est renseignée, ce sera l\'album de Chance The Rapper qui se jouera par défaut. (J\'ai été à ça de mettre un album de reggea.)', 'options_framework_theme'), 'id' => 'soundcloud_links', 'placeholder' => 'Url SoundCloud', 'type' => 'text'); $options[] = array( 'name' => __('Lecture aléatoire', 'options_framework_theme'), 'desc' => __('Lecture aléatoire ou non. Accepte true ou false.', 'options_framework_theme'), 'id' => 'stratus_random', 'placeholder' => 'Aléatoire', 'type' => 'text'); // $options[] = array( // 'name' => __('Texte du troisème témoignage', 'options_framework_theme'), // 'desc' => __('Témoignage', 'options_framework_theme'), // 'id' => 'third_testimony_text_home', // 'std' => 'Témoignage', // 'type' => 'textarea'); $options[] = array( 'name' => __('Couleur', 'options_framework_theme'), 'desc' => __('Couleur du bouton lecture du lecteur. (Valeur hexadécimale sans le # devant. Pour #111111 par exemple, entrer 111111 seulement.)', 'options_framework_theme'), 'id' => 'stratus_color', 'placeholder' => 'Couleur', 'type' => 'text'); // $options[] = array( // 'name' => __('Texte de la première information', 'options_framework_theme'), // 'desc' => __('Texte', 'options_framework_theme'), // 'id' => 'first_information_text_home', // 'std' => 'Témoignage', // 'type' => 'textarea'); $options[] = array( 'name' => __('Stats', 'options_framework_theme'), 'desc' => __('Si oui ou non les statistiques des commentaires, des favories, des lectures s\'affichent. (Accepte true ou false.)', 'options_framework_theme'), 'id' => 'stratus_stats', 'placeholder' => 'Statistiques', 'type' => 'text'); // $options[] = array( // 'name' => __('Texte de la seconde information', 'options_framework_theme'), // 'desc' => __('Texte', 'options_framework_theme'), // 'id' => 'second_information_text_home', // 'std' => 'Témoignage', // 'type' => 'textarea'); $options[] = array( 'name' => __('Bouton d\'achat', 'options_framework_theme'), 'desc' => __('Si oui ou non le bouton d\'achat s\'affiche. (Accepte true ou false.)', 'options_framework_theme'), 'id' => 'stratus_buying', 'placeholder' => 'Achat', 'type' => 'text'); // $options[] = array( // 'name' => __('Texte de la troisième information', 'options_framework_theme'), // 'desc' => __('Texte', 'options_framework_theme'), // 'id' => 'third_information_text_home', // 'std' => 'Témoignage', // 'type' => 'textarea'); $options[] = array( 'name' => __('Bouton de téléchargement', 'options_framework_theme'), 'desc' => __('Si oui ou non le bouton de téléchargement apparaît. (Accepte true ou false.)', 'options_framework_theme'), 'id' => 'stratus_download', 'placeholder' => 'Téléchargement', 'type' => 'text'); $options[] = array( 'name' => __('Thème', 'options_framework_theme'), 'desc' => __('URL vers une feuille de style extérieure pour styliser le lecteur.', 'options_framework_theme'), 'id' => 'stratus_theme', 'placeholder' => 'URL thème', 'type' => 'text'); $options[] = array( 'name' => __('Type d\'animation', 'options_framework_theme'), 'desc' => __('Type d\'animation d\'apparition du lecteur. Accepte slide, fade, or false.', 'options_framework_theme'), 'id' => 'stratus_animate', 'placeholder' => 'Animation', 'type' => 'text'); // $options[] = array( // 'name' => __('Deuxième réponse', 'options_framework_theme'), // 'desc' => __('Réponse', 'options_framework_theme'), // 'id' => 'second_answer_home', // 'placeholder' => 'Réponse', // 'type' => 'text'); // $options[] = array( // 'name' => __('Troisième question', 'options_framework_theme'), // 'desc' => __('Question', 'options_framework_theme'), // 'id' => 'third_question_home', // 'placeholder' => 'Question', // 'type' => 'text'); // $options[] = array( // 'name' => __('Troisième réponse', 'options_framework_theme'), // 'desc' => __('Réponse', 'options_framework_theme'), // 'id' => 'third_answer_home', // 'placeholder' => 'Réponse', // 'type' => 'text'); // $options[] = array( // 'name' => __('Text Editor', 'options_framework_theme'), // 'type' => 'heading' ); /** * For $settings options see: * http://codex.wordpress.org/Function_Reference/wp_editor * * 'media_buttons' are not supported as there is no post to attach items to * 'textarea_name' is set by the 'id' you choose */ // $wp_editor_settings = array( // 'wpautop' => true, // Default // 'textarea_rows' => 5, // 'tinymce' => array( 'plugins' => 'wordpress' ) // ); // $options[] = array( // 'name' => __('Default Text Editor', 'options_framework_theme'), // 'desc' => sprintf( __( 'You can also pass settings to the editor. Read more about wp_editor in the WordPress codex', 'options_framework_theme' ), 'http://codex.wordpress.org/Function_Reference/wp_editor' ), // 'id' => 'example_editor', // 'type' => 'editor', // 'settings' => $wp_editor_settings ); return $options; }