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


PHP trailingslashit函数代码示例

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


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

示例1: genesis_404

/**
 * This function outputs a 404 "Not Found" error message
 *
 * @since 1.6
 */
function genesis_404()
{
    echo genesis_html5() ? '<article class="entry">' : '<div class="post hentry">';
    printf('<h1 class="entry-title">%s</h1>', apply_filters('genesis_404_entry_title', __('Not found, error 404', 'genesis')));
    echo '<div class="entry-content">';
    if (genesis_html5()) {
        echo apply_filters('genesis_404_entry_content', '<p>' . sprintf(__('The page you are looking for no longer exists. Perhaps you can return back to the site\'s <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it by using the search form below.', 'genesis'), trailingslashit(home_url())) . '</p>');
        get_search_form();
    } else {
        ?>

			<p><?php 
        printf(__('The page you are looking for no longer exists. Perhaps you can return back to the site\'s <a href="%s">homepage</a> and see if you can find what you are looking for. Or, you can try finding it with the information below.', 'genesis'), trailingslashit(home_url()));
        ?>
</p>



	<?php 
    }
    if (!genesis_html5()) {
        genesis_sitemap('h4');
    } elseif (genesis_a11y('404-page')) {
        echo '<h2>' . __('Sitemap', 'genesis') . '</h2>';
        genesis_sitemap('h3');
    }
    echo '</div>';
    echo genesis_html5() ? '</article>' : '</div>';
}
开发者ID:Oak86,项目名称:matthewbuttler.work,代码行数:34,代码来源:404.php

示例2: farmtoyou_paging_nav

    /**
     * Display navigation to next/previous set of posts when applicable.
     *
     * @since Farmtoyou 1.0
     *
     * @global WP_Query   $wp_query   WordPress Query object.
     * @global WP_Rewrite $wp_rewrite WordPress Rewrite object.
     */
    function farmtoyou_paging_nav()
    {
        global $wp_query, $wp_rewrite;
        // Don't print empty markup if there's only one page.
        if ($wp_query->max_num_pages < 2) {
            return;
        }
        $paged = get_query_var('paged') ? intval(get_query_var('paged')) : 1;
        $pagenum_link = html_entity_decode(get_pagenum_link());
        $query_args = array();
        $url_parts = explode('?', $pagenum_link);
        if (isset($url_parts[1])) {
            wp_parse_str($url_parts[1], $query_args);
        }
        $pagenum_link = remove_query_arg(array_keys($query_args), $pagenum_link);
        $pagenum_link = trailingslashit($pagenum_link) . '%_%';
        $format = $wp_rewrite->using_index_permalinks() && !strpos($pagenum_link, 'index.php') ? 'index.php/' : '';
        $format .= $wp_rewrite->using_permalinks() ? user_trailingslashit($wp_rewrite->pagination_base . '/%#%', 'paged') : '?paged=%#%';
        // Set up paginated links.
        $links = paginate_links(array('base' => $pagenum_link, 'format' => $format, 'total' => $wp_query->max_num_pages, 'current' => $paged, 'mid_size' => 1, 'add_args' => array_map('urlencode', $query_args), 'prev_text' => __('&larr; Previous', 'farmtoyou'), 'next_text' => __('Next &rarr;', 'farmtoyou')));
        if ($links) {
            ?>
	<nav class="navigation paging-navigation" role="navigation">
		<div class="pagination loop-pagination">
			<?php 
            echo $links;
            ?>
		</div><!-- .pagination -->
	</nav><!-- .navigation -->
	<?php 
        }
    }
开发者ID:abcode619,项目名称:wpstuff,代码行数:40,代码来源:template-tags.php

示例3: __construct

 /**
  * Constructor for the Anthologize class
  *
  * This constructor does the following:
  * - Checks minimum PHP and WP version, and bails if they're not met
  * - Includes Anthologize's main files
  * - Sets up the basic hooks that initialize Anthologize's post types and UI
  *
  * @since 0.7
  */
 public function __construct()
 {
     // Bail if PHP version is not at least 5.0
     if (!self::check_minimum_php()) {
         add_action('admin_notices', array('Anthologize', 'phpversion_nag'));
         return;
     }
     // Bail if WP version is not at least 3.3
     if (!self::check_minimum_wp()) {
         add_action('admin_notices', array('Anthologize', 'wpversion_nag'));
     }
     // If we've made it this far, start initializing Anthologize
     register_activation_hook(__FILE__, array($this, 'activation'));
     register_deactivation_hook(__FILE__, array($this, 'deactivation'));
     // @todo WP's functions plugin_basename() etc don't work
     //   correctly on symlinked setups, so I'm implementing my own
     $bn = explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
     $this->basename = array_pop($bn);
     $this->plugin_dir = plugin_dir_path(__FILE__);
     $this->plugin_url = plugin_dir_url(__FILE__);
     $this->includes_dir = trailingslashit($this->plugin_dir . 'includes');
     $upload_dir = wp_upload_dir();
     $this->cache_dir = trailingslashit($upload_dir['basedir'] . '/anthologize-cache');
     $this->cache_url = trailingslashit($upload_dir['baseurl'] . '/anthologize-cache');
     $this->setup_constants();
     $this->includes();
     $this->setup_hooks();
 }
开发者ID:webremote,项目名称:anthologize,代码行数:38,代码来源:anthologize.php

示例4: after

 function after()
 {
     if (empty($this->upgrader->result['destination_name'])) {
         return;
     }
     $theme_info = $this->upgrader->theme_info();
     if (empty($theme_info)) {
         return;
     }
     $name = $theme_info['Name'];
     $stylesheet = $this->upgrader->result['destination_name'];
     $template = !empty($theme_info['Template']) ? $theme_info['Template'] : $stylesheet;
     $preview_link = htmlspecialchars(add_query_arg(array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'preview_iframe' => 1, 'TB_iframe' => 'true'), trailingslashit(esc_url(get_option('home')))));
     $activate_link = wp_nonce_url("themes.php?action=activate&amp;template=" . urlencode($template) . "&amp;stylesheet=" . urlencode($stylesheet), 'switch-theme_' . $template);
     $install_actions = array('preview' => '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $name)) . '">' . __('Preview') . '</a>', 'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr(sprintf(__('Activate &#8220;%s&#8221;'), $name)) . '">' . __('Activate') . '</a>');
     if (is_network_admin() && current_user_can('manage_network_themes')) {
         $install_actions['network_enable'] = '<a href="' . esc_url(wp_nonce_url('themes.php?action=enable&amp;theme=' . $template, 'enable-theme_' . $template)) . '" title="' . esc_attr__('Enable this theme for all sites in this network') . '" target="_parent">' . __('Network Enable') . '</a>';
     }
     $install_actions['themes_page'] = '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Themes page') . '" target="_parent">' . __('View Installed Themes', 'wp-app-store') . '</a>';
     if (!$this->result || is_wp_error($this->result) || is_network_admin()) {
         unset($install_actions['activate'], $install_actions['preview']);
     }
     $install_actions = apply_filters('install_theme_complete_actions', $install_actions, $this->api, $stylesheet, $theme_info);
     if (!empty($install_actions)) {
         $this->feedback(implode(' | ', (array) $install_actions));
     }
 }
开发者ID:lcw07r,项目名称:productcampamsterdam.org,代码行数:27,代码来源:theme-upgrader-skin.php

示例5: my_simone_paging_nav

    /**
     * Display navigation to next/previous set of posts when applicable.
     *
     * @return void
     */
    function my_simone_paging_nav()
    {
        // Don't print empty markup if there's only one page.
        if ($GLOBALS['wp_query']->max_num_pages < 2) {
            return;
        }
        $paged = get_query_var('paged') ? intval(get_query_var('paged')) : 1;
        $pagenum_link = html_entity_decode(get_pagenum_link());
        $query_args = array();
        $url_parts = explode('?', $pagenum_link);
        if (isset($url_parts[1])) {
            wp_parse_str($url_parts[1], $query_args);
        }
        $pagenum_link = remove_query_arg(array_keys($query_args), $pagenum_link);
        $pagenum_link = trailingslashit($pagenum_link) . '%_%';
        $format = $GLOBALS['wp_rewrite']->using_index_permalinks() && !strpos($pagenum_link, 'index.php') ? 'index.php/' : '';
        $format .= $GLOBALS['wp_rewrite']->using_permalinks() ? user_trailingslashit('page/%#%', 'paged') : '?paged=%#%';
        // Set up paginated links.
        $links = paginate_links(array('base' => $pagenum_link, 'format' => $format, 'total' => $GLOBALS['wp_query']->max_num_pages, 'current' => $paged, 'mid_size' => 2, 'add_args' => array_map('urlencode', $query_args), 'prev_text' => __('← Previous', 'my-simone'), 'next_text' => __('Next →', 'my-simone'), 'type' => 'list'));
        if ($links) {
            ?>
	<nav class="navigation paging-navigation" role="navigation">
		<h1 class="screen-reader-text"><?php 
            _e('Posts navigation', 'my-simone');
            ?>
</h1>
			<?php 
            echo $links;
            ?>
	</nav><!-- .navigation -->
	<?php 
        }
    }
开发者ID:sintija,项目名称:wordpress_backup,代码行数:38,代码来源:template-tags.php

示例6: beans_define_constants

/**
 * Define constants.
 *
 * @ignore
 */
function beans_define_constants()
{
    // Define version.
    define('BEANS_VERSION', '1.2.4');
    // Define paths.
    define('BEANS_THEME_PATH', wp_normalize_path(trailingslashit(get_template_directory())));
    define('BEANS_PATH', BEANS_THEME_PATH . 'lib/');
    define('BEANS_ASSETS_PATH', BEANS_PATH . 'assets/');
    define('BEANS_LANGUAGES_PATH', BEANS_PATH . 'languages/');
    define('BEANS_RENDER_PATH', BEANS_PATH . 'render/');
    define('BEANS_TEMPLATES_PATH', BEANS_PATH . 'templates/');
    define('BEANS_STRUCTURE_PATH', BEANS_TEMPLATES_PATH . 'structure/');
    define('BEANS_FRAGMENTS_PATH', BEANS_TEMPLATES_PATH . 'fragments/');
    // Define urls.
    define('BEANS_THEME_URL', trailingslashit(get_template_directory_uri()));
    define('BEANS_URL', BEANS_THEME_URL . 'lib/');
    define('BEANS_ASSETS_URL', BEANS_URL . 'assets/');
    define('BEANS_LESS_URL', BEANS_ASSETS_URL . 'less/');
    define('BEANS_JS_URL', BEANS_ASSETS_URL . 'js/');
    define('BEANS_IMAGE_URL', BEANS_ASSETS_URL . 'images/');
    // Define admin paths.
    define('BEANS_ADMIN_PATH', BEANS_PATH . 'admin/');
    // Define admin url */
    define('BEANS_ADMIN_URL', BEANS_URL . 'admin/');
    define('BEANS_ADMIN_ASSETS_URL', BEANS_ADMIN_URL . 'assets/');
    define('BEANS_ADMIN_JS_URL', BEANS_ADMIN_ASSETS_URL . 'js/');
}
开发者ID:MatRouault,项目名称:Beans,代码行数:32,代码来源:init.php

示例7: init

 public static function init()
 {
     global $wp_filesystem;
     // Windows-proof constants: replace backward by forward slashes. Thanks to: @peterbouwmeester
     self::$_dir = trailingslashit(Redux_Helpers::cleanFilePath(dirname(__FILE__)));
     $wp_content_dir = trailingslashit(Redux_Helpers::cleanFilePath(WP_CONTENT_DIR));
     $wp_content_dir = trailingslashit(str_replace('//', '/', $wp_content_dir));
     $relative_url = str_replace($wp_content_dir, '', self::$_dir);
     self::$wp_content_url = trailingslashit(Redux_Helpers::cleanFilePath(is_ssl() ? str_replace('http://', 'https://', WP_CONTENT_URL) : WP_CONTENT_URL));
     self::$_url = self::$wp_content_url . $relative_url;
     // See if Redux is a plugin or not
     if (strpos(Redux_Helpers::cleanFilePath(__FILE__), Redux_Helpers::cleanFilePath(get_stylesheet_directory())) !== false) {
         self::$_is_plugin = false;
     }
     // Create our private upload directory
     Redux_Functions::initWpFilesystem();
     self::$_upload_dir = trailingslashit($wp_filesystem->wp_content_dir()) . '/redux/';
     self::$_upload_url = trailingslashit(content_url()) . '/redux/';
     if (function_exists('sys_get_temp_dir')) {
         $tmp = sys_get_temp_dir();
         if (empty($tmp)) {
             $tmpDir = self::$_upload_url . 'tmp';
             if (file_exists($tmpDir)) {
                 Redux_Helpers::rmdir($tmpDir);
             }
             putenv('TMPDIR=' . self::$_upload_dir . 'tmp');
         }
     }
     // Ensure it exists
     if (!is_dir(self::$_upload_dir)) {
         // Create the directory
         $wp_filesystem->mkdir(self::$_upload_dir);
     }
 }
开发者ID:Ahmed-dawoud,项目名称:care4u,代码行数:34,代码来源:framework.php

示例8: default_site_options

 /**
  *
  * add filter for Site option defaults
  *
  */
 public static function default_site_options()
 {
     //global
     add_site_option('backwpup_version', '0.0.0');
     //job default
     add_site_option('backwpup_jobs', array());
     //general
     add_site_option('backwpup_cfg_showadminbar', 1);
     add_site_option('backwpup_cfg_showfoldersize', 0);
     add_site_option('backwpup_cfg_protectfolders', 1);
     //job
     $max_execution_time = 0;
     if (strstr(PHP_SAPI, 'cgi')) {
         $max_execution_time = (int) ini_get('max_execution_time');
     }
     add_site_option('backwpup_cfg_jobmaxexecutiontime', $max_execution_time);
     add_site_option('backwpup_cfg_jobziparchivemethod', '');
     add_site_option('backwpup_cfg_jobstepretry', 3);
     add_site_option('backwpup_cfg_jobrunauthkey', substr(md5(BackWPup::get_plugin_data('hash')), 11, 8));
     add_site_option('backwpup_cfg_loglevel', 'normal_translated');
     add_site_option('backwpup_cfg_jobwaittimems', 0);
     add_site_option('backwpup_cfg_jobdooutput', 0);
     //Logs
     add_site_option('backwpup_cfg_maxlogs', 30);
     add_site_option('backwpup_cfg_gzlogs', 0);
     $upload_dir = wp_upload_dir();
     $logs_dir = trailingslashit(str_replace('\\', '/', $upload_dir['basedir'])) . 'backwpup-' . BackWPup::get_plugin_data('hash') . '-logs/';
     $content_path = trailingslashit(str_replace('\\', '/', WP_CONTENT_DIR));
     $logs_dir = str_replace($content_path, '', $logs_dir);
     add_site_option('backwpup_cfg_logfolder', $logs_dir);
     //Network Auth
     add_site_option('backwpup_cfg_httpauthuser', '');
     add_site_option('backwpup_cfg_httpauthpassword', '');
 }
开发者ID:demochko-ol,项目名称:hezy,代码行数:39,代码来源:class-option.php

示例9: __construct

 /**
  * Constructor for the gateway.
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     $this->id = 'ecpay';
     $this->icon = apply_filters('woocommerce_ecpay_icon', plugins_url('icon/green_log_40.gif', __FILE__));
     $this->has_fields = false;
     $this->method_title = __('ecpay', 'woocommerce');
     // Load the form fields.
     $this->init_form_fields();
     // Load the settings.
     $this->init_settings();
     // Define user set variables
     $this->title = $this->settings['title'];
     $this->description = $this->settings['description'];
     $this->mer_id = $this->settings['mer_id'];
     $this->check_code = $this->settings['check_code'];
     $this->notify_url = trailingslashit(home_url());
     $this->gateway = "https://ecpay.com.tw/form_Sc_to5.php";
     // Actions
     add_action('woocommerce_update_options_payment_gateways_' . $this->id, array($this, 'process_admin_options'));
     add_action('woocommerce_thankyou_ecpay', array($this, 'thankyou_page'));
     //需與id名稱大小寫相同
     add_action('woocommerce_receipt_ecpay', array($this, 'receipt_page'));
     //add_action('init', array(&$this, 'check_ecpay_response'));
     // Customer Emails
     //add_action('woocommerce_email_before_order_table', array(&$this, 'email_instructions'), 10, 2);
 }
开发者ID:aaron1102,项目名称:ecbank,代码行数:32,代码来源:class-ecpay.php

示例10: wpef7_upload_dir

function wpef7_upload_dir($type = false)
{
    $siteurl = get_option('siteurl');
    $upload_path = trim(get_option('upload_path'));
    if (empty($upload_path)) {
        $dir = WP_CONTENT_DIR . '/uploads';
    } else {
        $dir = $upload_path;
    }
    $dir = path_join(ABSPATH, $dir);
    if (!($url = get_option('upload_url_path'))) {
        if (empty($upload_path) || $upload_path == $dir) {
            $url = WP_CONTENT_URL . '/uploads';
        } else {
            $url = trailingslashit($siteurl) . $upload_path;
        }
    }
    if (defined('UPLOADS')) {
        $dir = ABSPATH . UPLOADS;
        $url = trailingslashit($siteurl) . UPLOADS;
    }
    if ('dir' == $type) {
        return $dir;
    }
    if ('url' == $type) {
        return $url;
    }
    return array('dir' => $dir, 'url' => $url);
}
开发者ID:simcop2387,项目名称:Farnsworth,代码行数:29,代码来源:functions.php

示例11: load_post_meta_boxes

 /**
  * Loads custom meta boxes on the "Add New Testimonial" and "Edit Testimonial" screens.
  *
  * @since 1.0.0
  */
 public function load_post_meta_boxes()
 {
     $screen = get_current_screen();
     if (!empty($screen->post_type) && 'testimonial' === $screen->post_type) {
         require_once trailingslashit(CHERRY_TESTI_DIR) . 'admin/includes/class-cherry-testimonials-meta-boxes.php';
     }
 }
开发者ID:xav335,项目名称:sfnettoyage,代码行数:12,代码来源:class-cherry-testimonials-admin.php

示例12: __construct

 /**
  * __construct function.
  *
  * @access public
  * @return void
  * @since 1.0.0
  */
 public function __construct($file)
 {
     // Default values
     $this->plugin_url = trailingslashit(plugins_url('', $file));
     $this->plugin_path = plugin_dir_path($file);
     $this->token = 'sensei-certificate-templates';
     // Setup post type
     add_action('init', array($this, 'setup_certificate_templates_post_type'), 110);
     /**
      * FRONTEND
      */
     add_action('sensei_additional_styles', array($this, 'enqueue_styles'));
     /**
      * BACKEND
      */
     if (is_admin()) {
         // Admin section
         include $this->plugin_path . 'admin/woothemes-sensei-certificate-templates-admin-init.php';
         // Custom Write Panel Columns
         add_filter('manage_edit-course_columns', array($this, 'add_column_headings'), 11, 1);
         add_action('manage_posts_custom_column', array($this, 'add_column_data'), 11, 2);
     }
     // End If Statement
     // Preview Template
     add_filter('single_template', array($this, 'certificate_templates_locate_preview_template'));
 }
开发者ID:bramburn,项目名称:sensei-certificates,代码行数:33,代码来源:class-woothemes-sensei-certificate-templates.php

示例13: members_admin_enqueue_scripts

/**
 * Loads the admin JavaScript for the required pages based off the $hook_suffix parameter.
 *
 * @since 0.2.0
 * @param string $hook_suffix The hook for the current page in the admin.
 */
function members_admin_enqueue_scripts($hook_suffix)
{
    $pages = array('users_page_roles', 'users_page_role-new');
    if (in_array($hook_suffix, $pages)) {
        wp_enqueue_script('members-admin', trailingslashit(MEMBERS_URI) . 'js/admin.js', array('jquery'), '20110525', true);
    }
}
开发者ID:venamax,项目名称:trixandtrax-cl,代码行数:13,代码来源:admin.php

示例14: filter_the_content

 public function filter_the_content($content)
 {
     $ww_problem = false;
     if (is_page('webwork')) {
         $ww_problem = true;
     } else {
         $ww_problem = get_query_var('ww_problem');
     }
     if ($ww_problem) {
         $content = '<div id="webwork-app"></div>';
         wp_enqueue_script('webwork-app', plugins_url() . '/webwork/build/index.js');
         $route_base = get_option('home');
         $route_base = preg_replace('|https?://[^/]+/|', '', $route_base);
         // @todo Centralize this logic.
         $main_site_url = get_blog_option(1, 'home');
         $rest_api_endpoint = trailingslashit($main_site_url) . 'wp-json/webwork/v1/';
         // @todo Abstract.
         $post_data = null;
         $ww_problem_text = '';
         if (!empty($_GET['post_data_key'])) {
             $post_data = get_blog_option(1, $_GET['post_data_key']);
             $ww_problem_text = base64_decode($post_data['pg_object']);
         }
         // @todo This is awful.
         $clients = get_blog_option(1, 'webwork_clients');
         $remote_course_url = array_search(get_current_blog_id(), $clients);
         wp_localize_script('webwork-app', 'WWData', array('problem_id' => $ww_problem, 'problem_text' => $ww_problem_text, 'remote_course_url' => $remote_course_url, 'rest_api_nonce' => wp_create_nonce('wp_rest'), 'rest_api_endpoint' => $rest_api_endpoint, 'route_base' => trailingslashit($route_base) . 'webwork/', 'user_can_ask_question' => is_user_logged_in(), 'user_can_post_response' => is_user_logged_in(), 'user_can_vote' => is_user_logged_in()));
         wp_enqueue_style('webwork-app', plugins_url() . '/webwork/assets/css/app.css');
         wp_register_script('webwork-mathjax-loader', WEBWORK_PLUGIN_URL . '/assets/js/webwork-mathjax-loader.js');
         $webwork_mathjax_loader_strings = array('mathjax_src' => esc_url('https://cdn.mathjax.org/mathjax/latest/unpacked/MathJax.js?config=TeX-MML-AM_HTMLorMML-full'));
         wp_localize_script('webwork-mathjax-loader', 'WeBWorK_MathJax', $webwork_mathjax_loader_strings);
         wp_enqueue_script('webwork-mathjax-loader');
     }
     return $content;
 }
开发者ID:livinglab,项目名称:webwork-for-wordpress,代码行数:35,代码来源:Client.php

示例15: get_style

 function get_style()
 {
     /*
      * Shared settings and properties
      */
     $config = array('settings' => array('membership' => 'YjowOw==', 'theme' => 'YToyOntzOjQ6InR5cGUiO3M6NzoibGFuZGluZyI7czozOiJkaXIiO3M6MToiMiI7fQ==', 'header_layout' => 'YjowOw==', 'feature_area' => 'YTozOntzOjQ6InR5cGUiO2k6MTtzOjc6ImVuYWJsZWQiO3M6MToiWSI7czo4OiJzZXR0aW5ncyI7YTo1OntzOjEwOiJ0aXRsZV9sb2dvIjthOjE6e3M6NToidGl0bGUiO3M6MDoiIjt9czo3OiJjb250ZW50IjthOjI6e3M6NToidGl0bGUiO3M6MDoiIjtzOjc6ImNvbnRlbnQiO3M6MDoiIjt9czo1OiJvcHRpbiI7YTo0OntzOjc6ImVuYWJsZWQiO3M6MToiTiI7czo5OiJmb3JtX2h0bWwiO2E6MjM6e3M6MTA6ImVtYWlsX2RhdGEiO3M6MDoiIjtzOjEzOiJlbWFpbF9hZGRyZXNzIjtzOjA6IiI7czoxMjoicmVkaXJlY3RfdXJsIjtzOjA6IiI7czoxMjoiZXh0cmFfZmllbGRzIjtzOjA6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vdGVyX25vdGUiO2E6MDp7fX19fQ==', 'feature_title' => 'YjowOw==', 'footer_area' => 'YTo3OntzOjc6ImVuYWJsZWQiO3M6MToiTiI7czozOiJuYXYiO3M6MDoiIjtzOjExOiJmb250X3NoYWRvdyI7czowOiIiO3M6MTE6ImZvbnRfd2VpZ2h0IjtzOjA6IiI7czo5OiJmb250X3NpemUiO3M6MDoiIjtzOjExOiJmb250X2ZhbWlseSI7czoxNToiU291cmNlIFNhbnMgUHJvIjtzOjE3OiJmb290ZXJfZGlzY2xhaW1lciI7YToyOntzOjc6ImVuYWJsZWQiO3M6MToiTiI7czo3OiJtZXNzYWdlIjtzOjA6IiI7fX0=', 'color_scheme_template' => 'YjowOw==', 'typography' => 'YToyOntzOjEzOiJmb250X2VsZW1lbnRzIjthOjk6e3M6MTA6InNpdGVfdGl0bGUiO2E6NDp7czo0OiJzaXplIjtzOjI6IjE3IjtzOjQ6ImZvbnQiO3M6MTU6IlNvdXJjZSBTYW5zIFBybyI7czo1OiJzdHlsZSI7czo2OiJub3JtYWwiO3M6NToiY29sb3IiO3M6NDoiIzQ0NCI7fXM6NzoidGFnbGluZSI7YTo0OntzOjQ6InNpemUiO3M6MjoiMTciO3M6NDoiZm9udCI7czoxNToiU291cmNlIFNhbnMgUHJvIjtzOjU6InN0eWxlIjtzOjY6Im5vcm1hbCI7czo1OiJjb2xvciI7czo0OiIjNDQ0Ijt9czo3OiJkZWZhdWx0IjthOjQ6e3M6NDoic2l6ZSI7czoyOiIxNyI7czo0OiJmb250IjtzOjE1OiJTb3VyY2UgU2FucyBQcm8iO3M6NToic3R5bGUiO3M6Njoibm9ybWFsIjtzOjU6ImNvbG9yIjtzOjQ6IiM0NDQiO31zOjI6ImgxIjthOjQ6e3M6NDoic2l6ZSI7czoyOiIxNyI7czo0OiJmb250IjtzOjE1OiJTb3VyY2UgU2FucyBQcm8iO3M6NToic3R5bGUiO3M6Njoibm9ybWFsIjtzOjU6ImNvbG9yIjtzOjQ6IiM0NDQiO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jA6IiI7fX0=', 'color_scheme_advanced' => 'YjowOw==', 'mobile_redirect' => 'YjowOw==', 'seo' => 'YjowOw==', 'scripts' => 'YjowOw==', 'fb_share' => 'YjowOw==', 'lightbox' => 'YjowOw==', 'exit_redirect' => 'YjowOw==', 'one_time_offer' => 'YjowOw==', 'launch_gateway' => 'YjowOw==', 'launch_funnel' => 'YjowOw==', 'landing_bg' => 'YToxOntzOjU6ImltYWdlIjtzOjA6IiI7fQ=='), 'settings_images' => 'YTowOnt9');
     /*
      * Custom settings and properties
      */
     switch ($this->style) {
         case 'A':
             $config['settings']['size_color'] = 'YTozOntzOjk6ImJveF93aWR0aCI7czozOiIzMDAiO3M6MTU6ImJveF9jb2xvcl9zdGFydCI7czo3OiIjZjlmOWY5IjtzOjEzOiJib3hfY29sb3JfZW5kIjtzOjc6IiNkYWRhZGEiO30=';
             $config['layouts'] = 'YToxOntzOjQ6ImJvZHkiO2E6MTp7aTowO2E6NDp7czo5OiJyb3dfY2xhc3MiO3M6MjY6InJvdyBvbmUtY29sIGNmIHVpLXNvcnRhYmxlIjtzOjk6InJvd19zdHlsZSI7czowOiIiO3M6MTQ6InJvd19kYXRhX3N0eWxlIjtzOjA6IiI7czo4OiJjaGlsZHJlbiI7YToxOntpOjA7YToyOntzOjk6ImNvbF9jbGFzcyI7czoxNToib25lIGNvbHVtbiBjb2xzIjtzOjg6ImNoaWxkcmVuIjthOjQ6e2k6MDthOjQ6e3M6NDoidHlwZSI7czo3OiJlbGVtZW50IjtzOjY6Im9iamVjdCI7czoxNjU6IltpbWFnZXMgc3R5bGU9IjAiIGltYWdlPSJ7b3BfZmlsZW5hbWU9IndwLWNvbnRlbnQvdXBsb2Fkcy8yMDEzLzEwL1NhbXBsZUxvZ28tRGFyay5wbmcifSIgd2lkdGg9IjI2MyIgYWxpZ249ImNlbnRlciIgdG9wX21hcmdpbj0iMCIgYm90dG9tX21hcmdpbj0iNTAiIGZ1bGxfd2lkdGg9IlkiXSI7czoxMzoiZWxlbW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ntzOjQ2OiJ3cC1jb250ZW50L3VwbG9hZHMvMjAxMy8xMC9TYW1wbGVMb2dvLURhcmsucG5nIjtzOjE5OiJTYW1wbGVMb2dvLURhcmsucG5nIjt9';
             break;
         case 'B':
             $config['settings']['size_color'] = 'YTozOntzOjk6ImJveF93aWR0aCI7czozOiIzMDAiO3M6MTU6ImJveF9jb2xvcl9zdGFydCI7czo3OiIjMDAwMDAwIjtzOjEzOiJib3hfY29sb3JfZW5kIjtzOjc6IiMwMDAwMDAiO30=';
             $config['layouts'] = 'YToxOntzOjQ6ImJvZHkiO2E6MTp7aTowO2E6NDp7czo5OiJyb3dfY2xhc3MiO3M6MjY6InJvdyBvbmUtY29sIGNmIHVpLXNvcnRhYmxlIjtzOjk6InJvd19zdHlsZSI7czowOiIiO3M6MTQ6InJvd19kYXRhX3N0eWxlIjtzOjA6IiI7czo4OiJjaGlsZHJlbiI7YToxOntpOjA7YToyOntzOjk6ImNvbF9jbGFzcyI7czoxNToib25lIGNvbHVtbiBjb2xzIjtzOjg6ImNoaWxkcmVuIjthOjQ6e2k6MDthOjQ6e3M6NDoidHlwZSI7czo3OiJlbGVtZW50IjtzOjY6Im9iamVjdCI7czoxNjY6IltpbWFnZXMgc3R5bGU9IjAiIGltYWdlPSJ7b3BfZmlsZW5hbWU9IndwLWNvbnRlbnQvdXBsb2Fkcy8yMDEzLzEwL1NhbXBsZUxvZ28tTGlnaHQucG5nIn0iIHdpZHRoPSIyNjMiIGFsaWduPSJjZW50ZXIiIHRvcF9tYXJnaW49IjAiIGJvdHRvbV9tYXJnaW49IjUwIiBmdWxsX3dpZHRoPSJZIl0iO3M6MTM6ImVsZW1lbnRfY2xhc3MiO3M6MjA6ImVsZW1lbnQtY29udGFpbmVyIGNmIjtzOjE4OiJlbGVtZW50X2RhdGFfc3R5bGUiO3M6MDoiIjt9aToxO2E6NDp7czo0OiJ0eXBlIjtzOjc6ImVsZW1lbnQiO3M6Njoib2JqZWN0IjtzOjEyODoiW2hlYWRsaW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N0eWxlPSJkaXNwbGF5Om5vbmUiPjwvZGl2Plsvb3B0aW5fYm94X2NvZGVdW29wdGluX2JveF9maWVsZCBuYW1lPSJoZWFkbGluZSJdSGVyZSdzIFRoZSBIZWFkbGluZSBGb3IgVGhlIEJveFsvb3B0aW5fYm94X2ZpZWxkXVtvcHRpbl9ib3hfZmllbGQgbmFtZT0icGFyYWdyYXBoIl1URzl5WlcwZ2FYQnpkVzBnWkc5c2IzSWdjMmwwSUdGdFpYUXNJR052Ym5ObFkzUmxkSFZ5SUdGa2FYQnBjMk5wYm1jZ1pXeHBkQzRnUkc5dVpXTWdkbVZzSUc1MWJtTWdibTl1SUd4aFkzVnpJSFpsYm1WdVlYUnBjeUJqYjIxdGIyUnZMZz09Wy9vcHRpbl9ib3hfZmllbGRdW29wdGluX2JveF9maWVsZCBuYW1lPSJwcml2YWN5Il1XZSB2YWx1ZSB5b3VyIHByaXZhY3kgYW5kIHdvdWxkIG5ldmVyIHNwYW0geW91Wy9vcHRpbl9ib3hfZmllbGRdW29wdGluX2JveF9maWVsZCBuYW1lPSJ0b3BfY29sb3IiXXVuZGVmaW5lZFsvb3B0aW5fYm94X2ZpZWxkXVtvcHRpbl9ib3hfYnV0dG9uIHR5cGU9IjAiIGJ1dHRvbl9iZWxvdz0iWSJdR2V0IEluc3RhbnQgQWNjZXNzIVsvb3B0aW5fYm94X2J1dHRvbl0gWy9vcHRpbl9ib3hdIjtzOjEzOiJlbGVtZW50X2NsYXNzIjtzOjIwOiJlbGVtZW50LWNvbnRhaW5lciBjZiI7czoxODoiZWxlbWVudF9kYXRhX3N0eWxlIjtzOjA6IiI7fX19fX19fQ==';
             $config['images'] = 'YToxOntzOjQ3OiJ3cC1jb250ZW50L3VwbG9hZHMvMjAxMy8xMC9TYW1wbGVMb2dvLUxpZ2h0LnBuZyI7czoyMDoiU2FtcGxlTG9nby1MaWdodC5wbmciO30=';
             break;
         default:
             return;
     }
     /*
      * Fixing image paths, switching {op_filename:"wp-content/uploads/10/SampleLogo-Dark.png"} with
      * path to real file location (inside of page image collection)
      */
     $config = $this->fix_image_paths($config, trailingslashit(OP_PAGES_URL . 'landing/2/styles'));
     $settings = op_get_var($config, 'settings', array());
     $settings = base64_encode(serialize($settings));
     $this->config->settings = $settings;
     $this->config->layouts = op_get_var($config, 'layouts', array());
     op_page_set_saved_settings($this->config, array());
 }
开发者ID:kyscastellanos,项目名称:arepa,代码行数:34,代码来源:feature_area.php


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