array( 'link' => esc_url( 'http://sagablog-light.wdvillage.com/' ), 'text' => __( '"SagaBlog Light" demo', 'sagablog-light' ), ), 'documents' => array( 'link' => esc_url( 'http://doc.wdvillage.com/docs/sagablog/' ), 'text' => __( '"SagaBlog" on-line documentation', 'sagablog-light' ), ), ); foreach ( $important_links as $important_link) { echo '

'; } } } if ( ! class_exists( 'WP_Customize_Control' ) ) { return NULL; } /** * A class to create a dropdown for all google fonts header */ class sagablog_Google_Font_Dropdown_Custom_Control_Header extends WP_Customize_Control { private $fonts = false; public function __construct($manager, $id, $args = array(), $options = array()) { $this->fonts = $this->get_fonts(); parent::__construct( $manager, $id, $args ); } /** * Render the content of the category dropdown * * @return HTML */ public function render_content() { if(!empty($this->fonts)&&!($this->fonts)==0) { ?> false) ); $responsecode = wp_remote_retrieve_response_code($fontContent); if ($responsecode===200){ $content = json_decode($fontContent['body']); set_transient( 'google-web-fonts', $content, WEEK_IN_SECONDS ); $items=$content->items; return $items; } else { return 0; } } } /** * A class to create a dropdown for all google fonts body */ class sagablog_Google_Font_Dropdown_Custom_Control_Body extends WP_Customize_Control { private $fonts = false; public function __construct($manager, $id, $args = array(), $options = array()) { $this->fonts = $this->get_fonts(); parent::__construct( $manager, $id, $args ); } /** * Render the content of the category dropdown * * @return HTML */ public function render_content() { if(!empty($this->fonts)&&!($this->fonts)==0) { ?> false) ); $responsecode = wp_remote_retrieve_response_code($fontContent); if ($responsecode===200){ $content = json_decode($fontContent['body']); set_transient( 'google-web-fonts', $content, WEEK_IN_SECONDS ); $items=$content->items; return $items; } else { return 0; } } }