当前位置: 首页>>代码示例>>PHP>>正文


PHP inkthemes_get_option函数代码示例

本文整理汇总了PHP中inkthemes_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP inkthemes_get_option函数的具体用法?PHP inkthemes_get_option怎么用?PHP inkthemes_get_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了inkthemes_get_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: of_option_setup

function of_option_setup()
{
    //Update EMPTY options
    $of_array = array();
    add_option('of_options', $of_array);
    $template = inkthemes_get_option('of_template');
    $saved_options = inkthemes_get_option('of_options');
    $std = '';
    foreach ($template as $option) {
        if ($option['type'] != 'heading') {
            $id = $option['id'];
            if (isset($option['std'])) {
                $std = $option['std'];
            }
            $db_option = inkthemes_get_option($id);
            if (empty($db_option)) {
                if (is_array($option['type'])) {
                    foreach ($option['type'] as $child) {
                        $c_id = $child['id'];
                        $c_std = $child['std'];
                        inkthemes_update_option($c_id, $c_std);
                        $of_array[$c_id] = $c_std;
                    }
                } else {
                    inkthemes_update_option($id, $std);
                    $of_array[$id] = $std;
                }
            } else {
                //So just store the old values over again.
                $of_array[$id] = $db_option;
            }
        }
    }
    inkthemes_update_option('of_options', $of_array);
}
开发者ID:lu-inc,项目名称:growingminds,代码行数:35,代码来源:admin-functions.php

示例2: inkthemes_optionsframework_uploader_function

function inkthemes_optionsframework_uploader_function($id, $std, $mod)
{
    //$uploader .= '<input type="file" id="attachement_'.$id.'" name="attachement_'.$id.'" class="upload_input"></input>';
    //$uploader .= '<span class="submit"><input name="save" type="submit" value="Upload" class="button upload_save" /></span>';
    $uploader = '';
    $upload = inkthemes_get_option($id);
    if ($mod != 'min') {
        $val = $std;
        if (inkthemes_get_option($id) != "") {
            $val = inkthemes_get_option($id);
        }
        $uploader .= '<input class="of-input" readonly name="' . esc_attr($id) . '" id="' . esc_attr($id) . '_upload" type="text" value="' . esc_attr($val) . '" />';
    }
    $uploader .= '<div class="upload_button_div"><span class="button image_upload_button" id="' . esc_attr($id) . '">' . __('Upload Image', 'colorway') . '</span>';
    if (!empty($upload)) {
        $hide = '';
    } else {
        $hide = 'hide';
    }
    $uploader .= '<span class="button image_reset_button ' . $hide . '" id="reset_' . esc_attr($id) . '" title="' . esc_attr($id) . '">' . __('Remove', 'colorway') . '</span>';
    $uploader .= '</div>' . "\n";
    $uploader .= '<div class="clear"></div>' . "\n";
    if (!empty($upload)) {
        $uploader .= '<a class="of-uploaded-image" href="' . $upload . '">';
        $uploader .= '<img class="of-option-image" id="image_' . esc_attr($id) . '" src="' . $upload . '" alt="" />';
        $uploader .= '</a>';
    }
    $uploader .= '<div class="clear"></div>' . "\n";
    return $uploader;
}
开发者ID:ggxyjs,项目名称:yanjiusuo,代码行数:30,代码来源:admin-interface.php

示例3: inkthemes_of_head_css

function inkthemes_of_head_css()
{
    $output = '';
    $custom_css = inkthemes_get_option('inkthemes_customcss');
    if ($custom_css != '') {
        $output .= $custom_css . "\n";
    }
    // Output styles
    if ($output != '') {
        $output = "<!-- Custom Styling -->\n<style type=\"text/css\">\n" . $output . "</style>\n";
        echo $output;
    }
}
开发者ID:ComEnYns,项目名称:Web-Projects,代码行数:13,代码来源:inkthemes-functions.php

示例4: inkthemes_get_option

  
                    <div class="bg-img bg-img-2">
                        <?php 
        if (inkthemes_get_option('colorway_slideimage2') != '') {
            ?>
                            <a href="<?php 
            if (inkthemes_get_option('colorway_slidelink2') != '') {
                echo inkthemes_get_option('colorway_slidelink2');
            }
            ?>
" >
                                <img  src="<?php 
            echo inkthemes_get_option('colorway_slideimage2');
            ?>
" alt="<?php 
            echo inkthemes_get_option('inkthemes_sliderheading2');
            ?>
"/></a>
                        <?php 
        } else {
            ?>
                        <?php 
        }
        ?>
                    </div>
                <?php 
    }
    ?>
            </div>
        <?php 
} else {
开发者ID:Germey,项目名称:WonderBlog,代码行数:30,代码来源:slit_slider.php

示例5: get_template_directory_uri

    ?>
"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/stumbleupon.png" alt="stumble" title="stumble"/></a>
                <?php 
} else {
    ?>
                <?php 
}
?>
                <?php 
if (inkthemes_get_option('colorway_digg') != '') {
    ?>
                    <a href="<?php 
    echo inkthemes_get_option('colorway_digg');
    ?>
"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/digg.png" alt="digg" title="digg"/></a>
                <?php 
} else {
    ?>
                <?php 
}
?>
                <p><a href="<?php 
echo esc_url('mailto:hexuefengnuaa@hotmail.com');
?>
"><?php 
开发者ID:ggxyjs,项目名称:yanjiusuo,代码行数:31,代码来源:footer.php

示例6: get_template_directory_uri

                        <img class="widget_img" src="<?php 
    echo get_template_directory_uri();
    ?>
/images/widget-area.png" />
                    </div>
<?php 
}
?>
            </div>
        </div>
        <div class="clear"></div>
        <?php 
if (inkthemes_get_option('inkthemes_testimonial') != '') {
    ?>
            <blockquote class="home_blockquote"><?php 
    echo inkthemes_get_option('inkthemes_testimonial');
    ?>
</blockquote>
            <?php 
} else {
    ?>
            <blockquote class="home_blockquote"><?php 
    _e('Theme from InkThemes.com are based on P3+ Technology, giving high speed, easiness to built &amp; power of SEO for lending trustworthiness and experience to a customer. The Themes are really one of the best we saw everywhere.<br />
                Neeraj Agarwal', 'colorway');
    ?>
</blockquote>
<?php 
}
?>
    </div>
    <div class="clear"></div>
开发者ID:brock8282,项目名称:Bowl-Pickem,代码行数:31,代码来源:home.php

示例7: colorway_migrate_option

function colorway_migrate_option()
{
    if (get_option('inkthemes_options') && !get_option('colorway_migrate_option')) {
        $theme_option = array('colorway_logo', 'colorway_favicon', 'colorway_slideimage1', 'colorway_slideimage2', 'inkthemes_fimg1', 'inkthemes_fimg2', 'inkthemes_fimg3', 'inkthemes_fimg4', 'inkthemes_testimonial_img', 'inkthemes_testimonial_img_2', 'inkthemes_testimonial_img_3');
        $wp_upload_dir = wp_upload_dir();
        require ABSPATH . 'wp-admin/includes/image.php';
        foreach ($theme_option as $option) {
            $option_value = inkthemes_get_option($option);
            if ($option_value && $option_value != '') {
                $filetype = wp_check_filetype(basename($option_value), null);
                $image_name = preg_replace('/\\.[^.]+$/', '', basename($option_value));
                $new_image_url = $wp_upload_dir['path'] . '/' . $image_name . '.' . $filetype['ext'];
                colorway_import_file($new_image_url);
            }
        }
        update_option('colorway_migrate_option', true);
    }
}
开发者ID:eratri,项目名称:proyekakhir,代码行数:18,代码来源:functions.php

示例8: of_options

 function of_options()
 {
     // VARIABLES
     $themename = get_theme_data(STYLESHEETPATH . '/style.css');
     $themename = $themename['Name'];
     $shortname = "of";
     // Populate OptionsFramework option in array for use in theme
     global $of_options;
     $of_options = inkthemes_get_option('of_options');
     // Background Defaults
     $background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     //Stylesheet Reader
     $alt_stylesheets = array("default" => "default", "black" => "black", "blue" => "blue", "green" => "green", "brown" => "brown", "deeppink" => "deeppink", "orange" => "orange", "purple" => "purple", "red" => "red", "forrestgreen" => "forrestgreen", "yellow" => "yellow");
     // 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 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_stylesheet_directory_uri() . '/images/';
     $options = array();
     $options[] = array("name" => "General Settings", "type" => "heading");
     $options[] = array("name" => "Custom Logo", "desc" => "Choose your own logo. Optimal Size: 300px Wide by 90px Height.", "id" => "inkthemes_logo", "type" => "upload");
     $options[] = array("name" => "Custom Favicon", "desc" => "Specify a 16px x 16px image that will represent your website's favicon.", "id" => "inkthemes_favicon", "type" => "upload");
     $options[] = array("name" => "Body Background Image", "desc" => "Select image to change your website background", "id" => "inkthemes_bodybg", "std" => "", "type" => "upload");
     $options[] = array("name" => "Tracking Code", "desc" => "Paste your Google Analytics (or other) tracking code here.", "id" => "inkthemes_analytics", "std" => "", "type" => "textarea");
     //Home Page Slider Setting
     $options[] = array("name" => "Slider Settings", "type" => "heading");
     //First Slider
     $options[] = array("name" => "Slider Image1", "desc" => "Choose your image for first slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage1", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 1 Link", "desc" => "Enter yout link url for slide1", "id" => "inkthemes_slidelink1", "std" => "", "type" => "text");
     //Second Slider
     $options[] = array("name" => "Slider Image2", "desc" => "Choose your image for second slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage2", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 2 Link", "desc" => "Enter yout link url for slide2", "id" => "inkthemes_slidelink2", "std" => "", "type" => "text");
     $options[] = array("name" => "Slider Image3", "desc" => "Choose your image for third slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage3", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 3 Link", "desc" => "Enter yout link for url slide3", "id" => "inkthemes_slidelink3", "std" => "", "type" => "text");
     //Fourth Slider
     $options[] = array("name" => "Slider Image4", "desc" => "Choose your image for fourth slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage4", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 4 Link", "desc" => "Enter yout link url for slide4", "id" => "inkthemes_slidelink4", "std" => "", "type" => "text");
     //Fifth Slider
     $options[] = array("name" => "Slider Image5", "desc" => "Choose your image for sixth slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage5", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 5 Link", "desc" => "Enter yout link url for slide5", "id" => "inkthemes_slidelink5", "std" => "", "type" => "text");
     //Sixth Slider
     $options[] = array("name" => "Slider Image6", "desc" => "Choose your image for sixth slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage6", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 6 Link", "desc" => "Enter yout link url for slide6", "id" => "inkthemes_slidelink6", "std" => "", "type" => "text");
     //Homepage Feature Area
     $options[] = array("name" => "Homepage Feature Area", "type" => "heading");
     //Page Heading
     $options[] = array("name" => "Main Feature Heading", "desc" => "Enter your text for Page Heading.", "id" => "inkthemes_page_heading", "std" => "", "type" => "textarea");
     //Right Feature Separetor
     $options[] = array("name" => "Feature Section Starts From Here.", "type" => "saperate", "class" => "saperator");
     //Right Feature Area
     $options[] = array("name" => "Homepage Feature Area First Image", "desc" => "Choose your image for homepage feature area first image.", "id" => "inkthemes_featureimg1", "std" => "", "type" => "upload");
     $options[] = array("name" => "First Feature Heading", "desc" => "Enter your text for first col heading.", "id" => "inkthemes_firsthead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "First Feature Description", "desc" => "Enter your text for first col description.", "id" => "inkthemes_firstdesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "First Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link1", "std" => "", "type" => "text");
     //Second Feature Separetor
     $options[] = array("name" => "Second Feature Starts From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Homepage Feature Area Second Image", "desc" => "Choose your image for homepage Feature area second image.", "id" => "inkthemes_featureimg2", "std" => "", "type" => "upload");
     $options[] = array("name" => "Second Feature Heading", "desc" => "Enter your text for second col heading.", "id" => "inkthemes_secondhead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Second Col Description", "desc" => "Enter your text for second col description.", "id" => "inkthemes_seconddesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Second Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link2", "std" => "", "type" => "text");
     //Third Feature Separetor
     $options[] = array("name" => "Third Feature Starts From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Homepage Third Feature  Image", "desc" => "Choose your image for homepage Feature area third image.", "id" => "inkthemes_featureimg3", "std" => "", "type" => "upload");
     $options[] = array("name" => "Third Feature Heading", "desc" => "Enter your text for second col heading.", "id" => "inkthemes_thirdhead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Third Feature Description", "desc" => "Enter your text for Third Feature description.", "id" => "inkthemes_thirddesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Third Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link3", "std" => "", "type" => "text");
     //Fourth Feature Separetor
     $options[] = array("name" => "Fourth Feature Starts From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Homepage Fourth Feature Area", "desc" => "Choose your image for homepage Feature Area fourth image. ", "id" => "inkthemes_featureimg4", "std" => "", "type" => "upload");
     $options[] = array("name" => "Fourth Feature  Heading", "desc" => "Enter your text for Fourh Feature Area heading.", "id" => "inkthemes_fourthhead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Fourh Feature Area Description", "desc" => "Enter your text for first col description.", "id" => "inkthemes_fourthdesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Fourth Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link4", "std" => "", "type" => "text");
     //Home Page Bottom Setting
     $options[] = array("name" => "Home Page Bottom Settings", "type" => "heading");
     $options[] = array("name" => "Tagline Text", "desc" => "Enter your text Tagline Section.", "id" => "inkthemes_tagline_text", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Feature Button Text", "desc" => "Enter your link url for feature button section.", "id" => "inkthemes_tagline_button", "std" => "", "type" => "text");
     $options[] = array("name" => "Feature Button Link URL", "desc" => "Enter your link url for feature button section.", "id" => "inkthemes_tagline_button_link", "std" => "", "type" => "text");
     //Bottom Feature Separetor
     $options[] = array("name" => "Bottom Feature Start From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Bottom Left Heading", "desc" => "Enter your text bottom left Section.", "id" => "inkthemes_bottomleft_heading", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Bottom Left Text", "desc" => "Enter your text bottom left Section.", "id" => "inkthemes_bottomleft_description", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Enter Your Blog Heading", "desc" => "Enter your text for blog heading.", "id" => "inkthemes_bottom_blog", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Testimonial Heading", "desc" => "Enter your text Testimonial Heading.", "id" => "inkthemes_testimonial", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Testimonial Text", "desc" => "Enter your text or code", "id" => "inkthemes_testimonial_text", "std" => "", "type" => "textarea");
     //****=============================================================================****//
     //****-----------This code is used for creating color styleshteet options----------****//
     //****=============================================================================****//
     $options[] = array("name" => "Styling Options", "type" => "heading");
     $options[] = array("name" => "Theme Stylesheet", "desc" => "Select your themes alternative color scheme.", "id" => "inkthemes_altstylesheet", "std" => "black", "type" => "select", "options" => $alt_stylesheets);
     $options[] = array("name" => "Custom CSS", "desc" => "Quickly add some CSS to your theme by adding it to this block.", "id" => "inkthemes_customcss", "std" => "", "type" => "textarea");
//.........这里部分代码省略.........
开发者ID:lu-inc,项目名称:growingminds,代码行数:101,代码来源:theme-options.php

示例9: inkthemes_get_option

                            <li><a href="<?php 
    echo inkthemes_get_option('inkthemes_rss');
    ?>
" title="Rss Feed"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/rss.png" /></a></li>
                        <?php 
}
?>
  
            <?php 
if (inkthemes_get_option('inkthemes_google') != '') {
    ?>
                            <li><a href="<?php 
    echo inkthemes_get_option('inkthemes_google');
    ?>
" title="Gtalk"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/sms.png" /></a></li>
                        <?php 
}
?>
       
        </ul>
      </div>  
        <div class="eight columns omega">
        <div class="top-search">
          <?php 
get_search_form();
开发者ID:lu-inc,项目名称:growingminds,代码行数:31,代码来源:header.php

示例10: _e

</a></h1>
     <?php 
} else {
    ?>
     <h1><a href="#"><?php 
    _e('The best thing is that.', 'golden_eagle');
    ?>
</a></h1>
   <?php 
}
?>
      <?php 
if (inkthemes_get_option('inkthemes_fourthdesc') != '') {
    ?>
                    <p><?php 
    echo stripslashes(inkthemes_get_option('inkthemes_fourthdesc'));
    ?>
</p>
                <?php 
} else {
    ?>
                    <p><?php 
    _e('The ease with the help of which you can convert your Website.', 'golden_eagle');
    ?>
</p>
                <?php 
}
?>
 
      </div>
</div>
开发者ID:lu-inc,项目名称:growingminds,代码行数:31,代码来源:front-page.php

示例11: array

<div id="slider" class="sl-slider-wrapper">
    <div class="sl-slider">				
        <div class="sl-slide" data-orientation="horizontal" data-slice1-rotation="-25" data-slice2-rotation="-25" data-slice1-scale="2" data-slice2-scale="2">
            <div class="sl-slide-inner">	
				<?php 
$sliders = array('slider1' => array('img' => inkthemes_get_option('colorway_slideimage1'), 'heading' => inkthemes_get_option('colorway_slideheading1'), 'link' => inkthemes_get_option('colorway_slidelink1'), 'desc' => inkthemes_get_option('colorway_slidedescription1')), 'slider2' => array('img' => inkthemes_get_option('colorway_slideimage2'), 'heading' => inkthemes_get_option('colorway_slideheading2'), 'link' => inkthemes_get_option('colorway_slidelink2'), 'desc' => inkthemes_get_option('colorway_slidedescription2')));
$slider1 = $sliders['slider1']['img'];
$slider2 = $sliders['slider2']['img'];
$value_img = array('.jpg', '.png', '.jpeg', '.gif', '.bmp', '.tiff', '.tif');
?>
                <div class="salesdetails">
					<?php 
if ($sliders['slider1']['heading'] != '') {
    ?>
						<h1><a href="<?php 
    echo $sliders['slider1']['link'];
    ?>
"><?php 
    echo $sliders['slider1']['heading'];
    ?>
</a></h1>
					<?php 
} elseif ($slider1 == '') {
    ?>
						<h1><a href="#"><?php 
    _e('Your Site is faster to build.', 'colorway');
    ?>
</a></h1>
					<?php 
}
?>
开发者ID:eratri,项目名称:proyekakhir,代码行数:31,代码来源:slit_slider.php

示例12: inkthemes_add_stylesheet

function inkthemes_add_stylesheet()
{
    wp_enqueue_style('coloroptions', get_template_directory_uri() . "/color/" . inkthemes_get_option('inkthemes_altstylesheet') . ".css", '', '', 'all');
    wp_enqueue_style('shortcodes', get_template_directory_uri() . "/css/shortcode.css", '', '', 'all');
}
开发者ID:lu-inc,项目名称:growingminds,代码行数:5,代码来源:functions.php

示例13: inkthemes_optionsframework_uploader_function

function inkthemes_optionsframework_uploader_function($id, $std, $mod)
{
    //$uploader .= '<input type="file" id="attachement_'.$id.'" name="attachement_'.$id.'" class="upload_input"></input>';
    //$uploader .= '<span class="submit"><input name="save" type="submit" value="Upload" class="button upload_save" /></span>';
    $uploader = '';
    $upload = inkthemes_get_option($id);
    if ($mod != 'min') {
        $val = $std;
        if (inkthemes_get_option($id) != "") {
            $val = inkthemes_get_option($id);
        }
        $uploader .= '<input class=\'of-input\' name=\'' . $id . '\' id=\'' . $id . '_upload\' type=\'text\' value=\'' . str_replace("'", "", $val) . '\' />';
    }
    $uploader .= '<div class="upload_button_div"><span class="button image_upload_button" id="' . $id . '">Upload Image</span>';
    if (!empty($upload)) {
        $hide = '';
    } else {
        $hide = 'hide';
    }
    $uploader .= '<span class="button image_reset_button ' . $hide . '" id="reset_' . $id . '" title="' . $id . '">Remove</span>';
    $uploader .= '</div>' . "\n";
    $uploader .= '<div class="clear"></div>' . "\n";
    $findme = 'wp-content/uploads';
    $imgvideocheck = strpos($upload, $findme);
    if (!empty($upload) && $imgvideocheck === true) {
        $uploader .= '<a class="of-uploaded-image" href="' . $upload . '">';
        $uploader .= '<img class="of-option-image" id="image_' . $id . '" src="' . $upload . '" alt="" />';
        $uploader .= '</a>';
    }
    $uploader .= '<div class="clear"></div>' . "\n";
    return $uploader;
}
开发者ID:brock8282,项目名称:Bowl-Pickem,代码行数:32,代码来源:admin-interface.php

示例14: add_action

    }
}
add_action('wp_enqueue_scripts', 'inkthemes_wp_enqueue_scripts');
/**
 * Enqueues the javascript for comment replys 
 * 
 * */
function inkthemes_enqueue_scripts()
{
    if (is_singular() and get_site_option('thread_comments')) {
        wp_print_scripts('comment-reply');
    }
}
add_action('wp_enqueue_scripts', 'inkthemes_enqueue_scripts');
//Front Page Rename
$get_status = inkthemes_get_option('re_nm');
$get_file_ac = get_template_directory() . '/front-page.php';
$get_file_dl = get_template_directory() . '/front-page-hold.php';
//True Part
if ($get_status === 'off' && file_exists($get_file_ac)) {
    rename("{$get_file_ac}", "{$get_file_dl}");
}
//False Part
if ($get_status === 'on' && file_exists($get_file_dl)) {
    rename("{$get_file_dl}", "{$get_file_ac}");
}
/**
 * Load plugin notification file
 */
require_once get_template_directory() . '/functions/plugin-activation.php';
require_once get_template_directory() . '/functions/inkthemes-plugin-notify.php';
开发者ID:blueyedQT,项目名称:Arizona-Team-One.com,代码行数:31,代码来源:functions.php

示例15: get_template_directory_uri

} else {
    ?>
	
                            <img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/testimonial.jpg" />
                        <?php 
}
?>
                        <div class="testimonial_name_wrapper">  
                            <?php 
if (inkthemes_get_option('inkthemes_testimonial_name_3') != '') {
    ?>
                                <span><?php 
    echo stripslashes(inkthemes_get_option('inkthemes_testimonial_name_3'));
    ?>
</span>
                            <?php 
} else {
    ?>
	
                                <span><?php 
    _e('Jex Polack', 'colorway');
    ?>
</span>
                            <?php 
}
?>
                        </div>
                    </div>
开发者ID:Germey,项目名称:WonderBlog,代码行数:31,代码来源:home.php


注:本文中的inkthemes_get_option函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。