HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/stoptube.com/wp-content/plugins/wordpress-seo/admin/class-opengraph-admin.php
<?php 

class WPSEO_OpenGraph_Admin {

	public function __construct() {
		// $options = get_wpseo_options();

		// add_action( 'wpseo_tab_header', array(&$this, 'tab_header'), 60 );
		// add_action( 'wpseo_tab_content', array(&$this, 'tab_content') );
		// 
		// add_filter( 'wpseo_save_metaboxes', array(&$this, 'save_meta_boxes' ), 10, 1 );
	}

	public function tab_header() {
		echo '<li class="tab opengraph"><a href="javascript:void(null);">'.__('OpenGraph').'</a></li>';
	}

	public function tab_content() {
		global $wpseo_metabox;
		
		foreach( $this->get_meta_boxes() as $meta_box) {
			$content .= $wpseo_metabox->do_meta_box( $meta_box );
		}
		$wpseo_metabox->do_tab( 'opengraph', __('OpenGraph'), $content );
	}
	
	public function get_meta_boxes( ) {
		$mbs = array();
		$options = get_option('wpseo');
		$stdgenre = ( isset( $options['newssitemap_default_genre'] ) ) ? $options['newssitemap_default_genre'] : 'blog';
		$mbs['opengraph-description'] = array(
			"name" => "opengraph-description",
			"type" => "textarea",
			"std" => "",
			"richedit" => false,
			"title" => __("OpenGraph Description"),
			"description" => __('If you don\'t want to use the meta description for sharing the post on Facebook but want another description there, write it here.')
		);
		return $mbs;
	}
	
	public function save_meta_boxes( $mbs ) {
		$mbs = array_merge( $mbs, $this->get_meta_boxes() );
		return $mbs;
	}
	
}

$wpseo_og = new WPSEO_OpenGraph_Admin();