• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP op_get_option函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: __construct

 /**
  * Initializes client object and fetches API KEY
  */
 public function __construct()
 {
     /*
      * Fetching API key from the wp_options table
      */
     $this->apiKey = op_get_option(self::OPTION_NAME_API_KEY);
 }
开发者ID:shahadat014,项目名称:geleyi,代码行数:10,代码来源:GetResponse.php


示例2: __construct

 function __construct()
 {
     global $wpdb;
     if (op_get_option('installed') == 'Y') {
         require_once OP_ASSETS . 'default.php';
         // This isn't used but it is causing unnecessary DB request
         // $assets = $wpdb->get_col( "SELECT name FROM `{$wpdb->prefix}optimizepress_assets`" );
         // if($assets){
         //  foreach($assets as $asset){
         //      $this->load_addon($asset);
         //  }
         // }
         add_action('wp_ajax_' . OP_SN . '-assets-folder-list', array($this, 'folder_list'));
         /*
          * Email marketing services integration hooks
          */
         add_action('wp_ajax_' . OP_SN . '-email-provider-list', array($this, 'providerList'));
         add_action('wp_ajax_' . OP_SN . '-email-provider-enabled', array($this, 'providerEnabled'));
         add_action('wp_ajax_' . OP_SN . '-email-provider-details', array($this, 'providerDetails'));
         add_action('wp_ajax_' . OP_SN . '-email-provider-items', array($this, 'providerItems'));
         add_action('wp_ajax_' . OP_SN . '-email-provider-item-fields', array($this, 'providerItemFields'));
         /**
          * Live search hooks
          */
         add_action('wp_ajax_' . OP_SN . '-live-search', array($this, 'liveSearch'));
         add_action('wp_ajax_nopriv_' . OP_SN . '-live-search', array($this, 'liveSearch'));
         add_action('the_content', array($this, 'removeContentFromSearchResults'));
         add_filter('the_content', array($this, 'fixptag'));
         /*
          * Content template
          */
         add_action('wp_ajax_' . OP_SN . '-content-layout-delete', array($this, 'deleteContentLayout'));
     }
 }
开发者ID:kyscastellanos,项目名称:arepa,代码行数:34,代码来源:assets.php


示例3: initalize_theme

 function initalize_theme()
 {
     $pages = array(OP_SN, OP_SN . '-setup-wizard');
     $reinit_theme = $reinit_page_theme = false;
     $disable_theme = false;
     if (isset($_GET['page'])) {
         if ($_GET['page'] == OP_SN || $_GET['page'] == OP_SN . '-setup-wizard') {
             $cur = op_get_option('theme', 'dir');
             if (isset($_GET['theme_switch']) && $_GET['theme_switch'] != $cur && ($conf = op_load_theme_config($_GET['theme_switch'])) !== false) {
                 $theme = array('name' => $conf['name'], 'screenshot' => $conf['screenshot'], 'screenshot_thumbnail' => $conf['screenshot_thumbnail'], 'description' => $conf['description'], 'dir' => $_GET['theme_switch']);
                 op_update_option('theme', $theme);
                 $reinit_theme = true;
             }
         } elseif ($_GET['page'] == OP_SN . '-page-builder') {
             $disable_theme = true;
         }
     } elseif (defined('DOING_AJAX')) {
         $action = '';
         if (!($action = op_get('action'))) {
             $action = op_post('action');
         }
         $chk = OP_SN . '-live-editor';
         if (is_string($action) && substr($action, 0, strlen($chk)) == $chk) {
             $disable_theme = true;
         }
     }
     if ($disable_theme === false) {
         op_init_theme();
         define('OP_REINIT_THEME', $reinit_theme);
         if ($reinit_theme) {
             define('OP_SHOW_THEME_MSG', $cur !== false);
             do_action(OP_SN . '-reinit_theme');
         }
     }
 }
开发者ID:shahadat014,项目名称:geleyi,代码行数:35,代码来源:init.php


示例4: __construct

 /**
  * Constructor, initializes $accessToken, $organizerKey and creates $client
  */
 public function __construct()
 {
     /*
      * Fetching values from wp_options table
      */
     $this->enabled = (bool) op_get_option(self::OPTION_NAME_ENABLED);
 }
开发者ID:shahadat014,项目名称:geleyi,代码行数:10,代码来源:OneShoppingCart.php


示例5: __construct

 function __construct()
 {
     global $wpdb;
     if (op_get_option('installed') == 'Y') {
         require_once OP_ASSETS . 'default.php';
         $assets = $wpdb->get_col("SELECT name FROM `{$wpdb->prefix}optimizepress_assets`");
         if ($assets) {
             foreach ($assets as $asset) {
                 $this->load_addon($asset);
             }
         }
         add_action('wp_ajax_' . OP_SN . '-assets-folder-list', array($this, 'folder_list'));
         /*
          * Email marketing services integration hooks
          */
         add_action('wp_ajax_' . OP_SN . '-email-provider-list', array($this, 'providerList'));
         add_action('wp_ajax_' . OP_SN . '-email-provider-details', array($this, 'providerDetails'));
         /**
          * Live search hooks
          */
         add_action('wp_ajax_' . OP_SN . '-live-search', array($this, 'liveSearch'));
         add_action('wp_ajax_nopriv_' . OP_SN . '-live-search', array($this, 'liveSearch'));
         add_filter('the_content', array($this, 'fixptag'));
     }
 }
开发者ID:shahadat014,项目名称:geleyi,代码行数:25,代码来源:assets.php


示例6: __construct

 /**
  * Initializes client object and fetches API KEY
  */
 public function __construct(OptimizePress_Modules_Email_LoggerInterface $logger)
 {
     $this->apiKey = op_get_option(self::OPTION_NAME_API_KEY);
     /*
      * Initializing logger
      */
     $this->logger = $logger;
 }
开发者ID:kyscastellanos,项目名称:arepa,代码行数:11,代码来源:Egoi.php


示例7: __construct

 /**
  * Constructor, initializes $username and $password
  */
 public function __construct()
 {
     /*
      * Fetching values from wp_options table
      */
     $this->username = op_get_option(self::OPTION_NAME_USERNAME);
     $this->password = op_get_option(self::OPTION_NAME_PASSWORD);
 }
开发者ID:shahadat014,项目名称:geleyi,代码行数:11,代码来源:Icontact.php


示例8: __construct

 /**
  * Constructor, initializes $accessToken, $organizerKey and creates $client
  */
 public function __construct()
 {
     /*
      * Fetching values from wp_options table
      */
     $this->accessToken = op_get_option(self::OPTION_NAME_OAUTH_ACCESS_TOKEN);
     $this->organizerKey = op_get_option(self::OPTION_NAME_OAUTH_ORGANIZER_KEY);
     $this->apiKey = op_get_option(self::OPTION_NAME_OAUTH_API_KEY);
 }
开发者ID:shahadat014,项目名称:geleyi,代码行数:12,代码来源:GoToWebinar.php


示例9: __construct

 /**
  * Initializes client object and fetches API KEY
  */
 public function __construct(OptimizePress_Modules_Email_LoggerInterface $logger)
 {
     $this->accountID = op_get_option(self::OPTION_NAME_ACCOUNT_ID);
     $this->publicKey = op_get_option(self::OPTION_NAME_PUBLIC_KEY);
     $this->privateKey = op_get_option(self::OPTION_NAME_PRIVATE_KEY);
     /*
      * Initializing logger
      */
     $this->logger = $logger;
 }
开发者ID:JalpMi,项目名称:v2contact,代码行数:13,代码来源:Emma.php


示例10: __construct

 /**
  * Constructor
  */
 public function __construct(OptimizePress_Modules_Email_LoggerInterface $logger)
 {
     /*
      * Fetching values from wp_options table
      */
     $this->enabled = (bool) op_get_option(self::OPTION_NAME_ENABLED);
     /*
      * Initializing logger
      */
     $this->logger = $logger;
 }
开发者ID:kyscastellanos,项目名称:arepa,代码行数:14,代码来源:OneShoppingCart.php


示例11: __construct

 /**
  * Constructor, initializes $username and $password
  */
 public function __construct(OptimizePress_Modules_Email_LoggerInterface $logger)
 {
     /*
      * Fetching values from wp_options table
      */
     $this->username = op_get_option(self::OPTION_NAME_USERNAME);
     $this->password = op_get_option(self::OPTION_NAME_PASSWORD);
     /*
      * Initializing logger
      */
     $this->logger = $logger;
 }
开发者ID:JalpMi,项目名称:v2contact,代码行数:15,代码来源:Icontact.php


示例12: __construct

 /**
  * Initializes client object and fetches API KEY
  */
 public function __construct(OptimizePress_Modules_Email_LoggerInterface $logger)
 {
     /*
      * Fetching API key from the wp_options table
      */
     $this->accountId = op_get_option(self::OPTION_NAME_ACCOUNT_ID);
     $this->authToken = op_get_option(self::OPTION_NAME_AUTH_TOKEN);
     /*
      * Initializing logger
      */
     $this->logger = $logger;
 }
开发者ID:kyscastellanos,项目名称:arepa,代码行数:15,代码来源:Maropost.php


示例13: __construct

 /**
  * Initializes client object and fetches API KEY
  */
 public function __construct(OptimizePress_Modules_Email_LoggerInterface $logger)
 {
     /*
      * Fetching API key from the wp_options table
      */
     $this->apiKey = op_get_option(self::OPTION_NAME_API_KEY);
     $this->apiUrl = op_get_option(self::OPTION_NAME_API_URL);
     /*
      * Initializing logger
      */
     $this->logger = $logger;
 }
开发者ID:JalpMi,项目名称:v2contact,代码行数:15,代码来源:GetResponse.php


示例14: __construct

 /**
  * Constructor, initializes $accessToken, $organizerKey and creates $client
  */
 public function __construct(OptimizePress_Modules_Email_LoggerInterface $logger)
 {
     /*
      * Fetching values from wp_options table
      */
     $this->accessToken = op_get_option(self::OPTION_NAME_OAUTH_ACCESS_TOKEN);
     $this->organizerKey = op_get_option(self::OPTION_NAME_OAUTH_ORGANIZER_KEY);
     $this->apiKey = op_get_option(self::OPTION_NAME_OAUTH_API_KEY);
     /*
      * Initializing logger
      */
     $this->logger = $logger;
 }
开发者ID:JalpMi,项目名称:v2contact,代码行数:16,代码来源:GoToWebinar.php


示例15: _e

<div class="op-bsw-grey-panel-content op-bsw-grey-panel-no-sidebar cf">
    <label class="form-title"><?php 
_e('AWeber API connection', 'optimizepress');
?>
</label>
    <?php 
if (op_get_option('aweber_access_token') === false || op_get_option('aweber_access_secret') === false) {
    ?>
    <p class="op-micro-copy"><?php 
    _e('AWeber is disconnected.', 'optimizepress');
    ?>
 <a href="<?php 
    echo admin_url('admin.php?action=' . OP_AWEBER_AUTH_URL);
    ?>
"><?php 
    _e('Connect', 'optimizepress');
    ?>
</a></p>
	<?php 
} else {
    ?>
	<p class="op-micro-copy"><?php 
    _e('AWeber is connected.', 'optimizepress');
    ?>
 <a href="<?php 
    echo admin_url('admin.php?action=' . OP_AWEBER_AUTH_URL);
    ?>
&disconnect=1"><?php 
    _e('Disconnect', 'optimizepress');
    ?>
</a></p>
开发者ID:kyscastellanos,项目名称:arepa,代码行数:31,代码来源:aweber.php


示例16: esc_attr

</td>
            <td align="center">
                <input type="checkbox" name="op[sections][le_external_plugins][css][]" data-type="css" value="<?php 
        echo esc_attr($pluginId);
        ?>
" <?php 
        checked(true, is_array(op_get_option('op_le_external_plugins_css')) && in_array($pluginId, op_get_option('op_le_external_plugins_css')));
        ?>
 />
            </td>
            <td align="center">
                <input type="checkbox" name="op[sections][le_external_plugins][js][]" data-type="js" value="<?php 
        echo esc_attr($pluginId);
        ?>
" <?php 
        checked(true, is_array(op_get_option('op_le_external_plugins_js')) && in_array($pluginId, op_get_option('op_le_external_plugins_js')));
        ?>
 />
            </td>
        </tr>
        <?php 
    }
    ?>
    </table>
    <?php 
}
?>

    <?php 
if (false === $hasActive) {
    ?>
开发者ID:kyscastellanos,项目名称:arepa,代码行数:31,代码来源:plugins.php


示例17: array

<?php

if (($theme_dir = op_get_option('theme', 'dir')) === false && count($themes) > 0) {
    $theme_dir = $themes[0]['dir'];
}
?>
<h2><?php 
_e('Theme Style', OP_SN);
?>
</h2>
<!--<?php 
op_help_vid('theme');
?>
-->
<div class="clear"></div>
<p><?php 
_e('Use the options below to choose a look and feel for your blog.', OP_SN);
?>
</p>
<?php 
$sel_text = __('Selected', OP_SN);
$prev_text = __('Preview', OP_SN);
$previews = array();
$img = op_img('', true);
foreach ($themes as $key => $theme) {
    $field_id = 'op_theme_' . $theme['dir'];
    $selected = $theme_dir == $theme['dir'];
    /*$get_theme = (isset($_GET['theme_switch']) ? $_GET['theme_switch'] : 1);
    	$selected = ($get_theme==($key+1) ? true : false);*/
    $li_class = $input_attr = '';
    if ($selected) {
开发者ID:shahadat014,项目名称:geleyi,代码行数:31,代码来源:themes.php


示例18: empty

        ?>
		<li>
			<label for="<?php 
        echo $tmp_id;
        ?>
size" class="form-title"><?php 
        echo $title;
        ?>
</label>
			 <?php 
        echo empty($help) ? '' : '<p class="op-micro-copy">' . $help . '</p>';
        ?>
			<div class="font-chooser cf">
			<?php 
        $opt_array = array('typography', 'font_elements', $element);
        $opts = op_get_option($opt_array);
        echo op_font_size_dropdown($tmp_field . '[size]', op_default_option($opt_array, 'size'), $tmp_id . 'size');
        echo op_font_dropdown($tmp_field . '[font]', op_default_option($opt_array, 'font'), $tmp_id . 'font');
        echo op_font_style_dropdown($tmp_field . '[style]', op_default_option($opt_array, 'style'), $tmp_id . 'style');
        // echo "<div class='clear'></div>";
        op_color_picker($tmp_field . '[color]', op_default_option($opt_array, 'color'), $tmp_id . 'color');
        ?>
				<a href="#reset" class="reset-link"><?php 
        _e('Reset', OP_SN);
        ?>
</a>
			</div>

		</li>
	<?php 
    }
开发者ID:JalpMi,项目名称:v2contact,代码行数:31,代码来源:typography.php


示例19: _e

<div class="op-bsw-grey-panel-content op-bsw-grey-panel-no-sidebar cf">
    <label for="op_sections_email_marketing_services_convertkit_api_key" class="form-title"><?php 
_e('API Key', OP_SN);
?>
</label>
    <?php 
op_text_field('op[sections][email_marketing_services][convertkit_api_key]', op_get_option('convertkit_api_key'));
?>
</div>
开发者ID:kyscastellanos,项目名称:arepa,代码行数:9,代码来源:convertkit.php


示例20: op_opengraph_meta

function op_opengraph_meta()
{
    /*$metas = array(
    		//'og:url' => get_bloginfo('wpurl'),
    		'og:type' => 'article',
    	);
    	$site_title = '';
    	if(!$site_title = op_get_option('seo','title')){
    		$site_title = get_bloginfo('name');
    		$site_description = get_bloginfo( 'description', 'display' );
    		if ( $site_description && ( is_home() || is_front_page() ) )
    			$site_title .= ' &mdash; '.$site_description;
    	}
    	$metas['og:site_name'] = $site_title;
    	if(is_single()){
    		global $post;
    		while(have_posts()){
    			the_post();
    
    			$metas['og:url'] = get_permalink($post->ID);
    
    			$seo = get_post_meta($post->ID,'op_seo',true);
    			$seo = is_array($seo) ? $seo : array();
    			$title = op_get_var($seo,'title');
    			$description = op_get_var($seo,'description');
    
    
    			$metas['og:title'] = empty($title) ? $post->post_title : $title;
    			$metas['og:description'] = empty($description) ? wp_trim_excerpt($post->post_excerpt) : $description;
    			if(has_post_thumbnail($post->ID)){
    				$thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID),'list-image');
    				$metas['og:image'] = $thumbnail[0];
    			}
    		}
    		rewind_posts();
    	}*/
    $metas = array();
    $appId = op_get_option('comments', 'facebook', 'id');
    if (!empty($appId)) {
        $metas['fb:app_id'] = op_get_option('comments', 'facebook', 'id');
        if ($notify = op_get_option('comments', 'facebook', 'notify') && !empty($notify)) {
            $metas['fb:admins'] = $notify;
        }
    }
    //$metas = apply_filters('op_meta_tags',$metas);
    foreach ($metas as $property => $content) {
        echo '
			<meta property="' . $property . '" content="' . esc_attr($content) . '" />
		';
    }
}
开发者ID:shahadat014,项目名称:geleyi,代码行数:51,代码来源:scripts.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP op_get_var函数代码示例发布时间:2022-05-15
下一篇:
PHP op_format_date函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap