Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * @ Pirate-Sky Crew :: IonCube 7 Decoder
- * @ Author: pLa$71k
- * @ Web: http://pirate-sky.com
- * @ Pirate-Sky Crew © 2008 - 2013
- */
- function wp_ayesoft_menu()
- {
- add_menu_page(__('ayesoft film v2', 'ayesoft'), __('ayesoft film v2', 'ayesoft'), 6, basename(__FILE__), 'wp_ayesoft_admin', get_bloginfo('template_url') . '/images/adminpaneli.png');
- add_submenu_page(basename(__FILE__), __('ayesoft Ayarlar', 'ayesoft'), __('ayesoft Ayarlar', 'ayesoft'), 6, basename(__FILE__), 'wp_ayesoft_admin');
- }
- function wp_ayesoft_admin_css()
- {
- echo '
- ';
- }
- function wp_ayesoft_admin()
- {
- global $ayesoft_options;
- if ($_POST['save_ayesoft_options']) {
- foreach ($ayesoft_options as $section) {
- foreach ($section[1] as $option) {
- update_option($option[0], stripslashes($_POST[$option[0]]));
- }
- }
- echo '<div id="message" class="updated fade"><p><strong>' . __('Ayarlarınız kaydedildi :)', 'ayesoft') . '</strong></p></div>';
- }
- echo '
- <div class="wrap">
- <h2>';
- _e('ayesoft Film Teması Yönetim Paneli', 'ayesoft');
- echo '</h2>
- <form method="post" action="admin.php?page=adminpaneli.php" id="ayesoft_form">
- ';
- foreach ($ayesoft_options as $section) {
- echo '<h3>' . $section[0] . '</h3><div class="ayesoft_section"><table cellspacing="0" cellpadding="0" class="form-table">';
- foreach ($section[1] as $option) {
- echo '<tr valign="top">';
- echo '<th><label for="' . $option[0] . '">' . $option[2] . '</label></th><td>';
- if ($option[4] == 'yesno') {
- $yes = '';
- $no = '';
- if (get_option($option[0]) == 'yes') {
- $yes = 'selected="selected"';
- } else {
- $no = 'selected="selected"';
- }
- echo '<select name="' . $option[0] . '">
- <option value="yes" ' . $yes . '>' . __('Evet', 'ayesoft') . '</option>
- <option value="no" ' . $no . '>' . __('Hayır', 'ayesoft') . '</option>
- </select>';
- } else {
- if ($option[4] == 'textarea') {
- echo '<textarea id="' . $option[0] . '" name="' . $option[0] . '" cols="40" rows="4">' . get_option($option[0]) . '</textarea>';
- } else {
- if ($option[4] == 'select_options') {
- $selected = '';
- echo '<select name="' . $option[0] . '">';
- $names = explode('|', $option[5]);
- $values = explode('|', $option[6]);
- $selected = get_option($option[0]);
- $loop = 14;
- if ($names) {
- foreach ($names as $name) {
- echo '<option value="' . $values[$loop] . '" ';
- if ($selected == $values[$loop]) {
- echo 'selected="selected"';
- }
- echo '>' . $name . '</option>';
- ++$loop;
- }
- }
- echo '</select>';
- } else {
- echo '<input type="text" id="' . $option[0] . '" name="' . $option[0] . '" size="50" value="' . get_option($option[0]) . '" />';
- }
- }
- }
- if ($option[3]) {
- echo '<br/><span class="setting-description">' . $option[3] . '</span>';
- }
- echo '</td></tr>';
- }
- echo '</table></div><br class="clear" />';
- }
- echo ' <p class="submit" style="text-align:right"><input type="submit" value="';
- _e('Kaydet', 'ayesoft');
- echo '" name="save_ayesoft_options" /></p>
- </form>
- </div>
- ';
- }
- add_action('admin_menu', 'wp_ayesoft_menu');
- $ayesoft_options = array(
- array(
- __('Tema Kullanım Ayarları', 'ayesoft'),
- array(
- array(
- 'logo',
- __('http://www.siteadresi.com/logo.png', 'ayesoft'),
- __('Logo Adresiniz', 'ayesoft'),
- '',
- ''
- ),
- array(
- 'bgurl',
- __('', 'ayesoft'),
- __('Arka Plan Resmi', 'ayesoft'),
- 'Default Ayarları Kullanmak İçin Boş Bırakınız',
- ''
- ),
- array(
- 'bgcl',
- __('', 'ayesoft'),
- __('Arka Plan Rengi ', 'ayesoft'),
- 'Arkaplan Resmi Kullanmak İstemiyorsanız Bu Alanı Doldurunuz. Default Ayarları Kullanmak İçin Boş Bırakınız - Örn : 333333',
- ''
- ),
- array(
- 'yerli',
- __('0', 'ayesoft'),
- __('Yerli Film Kategori ID', 'ayesoft'),
- '',
- ''
- ),
- array(
- 'yabanci',
- __('0', 'ayesoft'),
- __('Yabancı Film Kategori ID', 'ayesoft'),
- '',
- ''
- )
- )
- ),
- array(
- __('Reklam Kutusu', 'ayesoft'),
- array(
- array(
- 'enable_reklamkutusu',
- 'no',
- __('Film Öncesi Reklam', 'ayesoft'),
- __('Video Öncesi Reklam Aktif Olsun mu?', 'ayesoft'),
- 'yesno'
- ),
- array(
- 'videooncesi',
- __('', 'ayesoft'),
- __('Film Öncesi Reklam Kodlarınız', 'ayesoft'),
- '',
- 'textarea'
- ),
- array(
- 'videoalti',
- __('', 'ayesoft'),
- __('Video Altı Reklam Kodlarınız', 'ayesoft'),
- '',
- 'textarea'
- ),
- array(
- 'ustbanner',
- __('', 'ayesoft'),
- __('Üst Reklam Kodunuz:', 'ayesoft'),
- __('Banner alanında gösterilecek 468 x 60 reklam kodunuzu ekleyin.', 'ayesoft'),
- 'textarea'
- ),
- array(
- 'reklamsidebar',
- __('', 'ayesoft'),
- __('250-250 Sidebar Reklam Kodunuz:', 'ayesoft'),
- __('Sidebar 250 x 250 reklam kodunuzu buraya ekleyin.', 'ayesoft'),
- 'textarea'
- )
- )
- ),
- array(
- __('Özel Alan Ayarları', 'ayesoft'),
- array(
- array(
- 'resim',
- __('resim', 'ayesoft'),
- __('Resim Özel Alanı', 'ayesoft'),
- '',
- ''
- ),
- array(
- 'resimdefault',
- __('http://www.siteadresiniz.com/default.jpg', 'ayesoft'),
- __('Default Resim', 'ayesoft'),
- __('Resim Özel Alanını Boş Bıraktığınızda Görünecek Resim URL Adresi.', 'ayesoft'),
- ''
- ),
- array(
- 'tur',
- __('tur', 'ayesoft'),
- __('Dublaj Özel Alanı', 'ayesoft'),
- '',
- ''
- ),
- array(
- 'turdefault',
- __('td', 'ayesoft'),
- __('Default Dublaj', 'ayesoft'),
- __('Dublaj Özel Alanını Boş Bıraktığınızda Otomatik Olarak Seçilecek Tür.', 'ayesoft'),
- ''
- ),
- array(
- 'coz',
- __('coz', 'ayesoft'),
- __('Kalite Özel Alanı', 'ayesoft'),
- '',
- ''
- ),
- array(
- 'cozdefault',
- __('360', 'ayesoft'),
- __('Default Kalite', 'ayesoft'),
- __('Kalite Özel Alanını Boş Bıraktığınızda Otomatik Olarak Seçilecek Tür..', 'ayesoft'),
- ''
- ),
- array(
- 'aciklama',
- __('aciklama', 'ayesoft'),
- __('Açıklama Özel Alanı', 'ayesoft'),
- '',
- ''
- )
- )
- ),
- array(
- __('Sosyal Paylaşım', 'ayesoft'),
- array(
- array(
- 'facebook',
- __('', 'ayesoft'),
- __('Facebook Sayfa Adresiniz', 'ayesoft'),
- '',
- ''
- ),
- array(
- 'twitter',
- __('', 'ayesoft'),
- __('Twitter Sayfa Adresiniz', 'ayesoft'),
- '',
- ''
- ),
- array(
- 'google',
- __('', 'ayesoft'),
- __('Google Plus Sayfa Adresiniz', 'ayesoft'),
- '',
- ''
- )
- )
- ),
- array(
- __('Footer Ayarları', 'ayesoft'),
- array(
- array(
- 'copyright',
- __('', 'ayesoft'),
- __('Footer Açıklama:', 'ayesoft'),
- __('Footer Sol Açıklama Alanı.', 'ayesoft'),
- 'textarea'
- ),
- array(
- 'facesayfa',
- __('', 'ayesoft'),
- __('Facebook Sayfa:', 'ayesoft'),
- __('Facebook Sayfa Adresiniz', 'ayesoft'),
- ''
- ),
- array(
- 'sayac',
- __('', 'ayesoft'),
- __('Sayaç:', 'ayesoft'),
- __('Footer Sağ Sosyal Buton Altı Alan.', 'ayesoft'),
- 'textarea'
- )
- )
- )
- );
- foreach ($ayesoft_options as $section) {
- foreach ($section[1] as $option) {
- add_option($option[0], $option[1]);
- }
- }
- add_action('admin_head', 'wp_ayesoft_admin_css');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement