Files
Testing/tbs/wp-content/themes/dt-nimble/functions/options/options-socials.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

83 lines
2.9 KiB
PHP

<?php
/**
* Social options.
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }
// page
$options[] = array(
"page_title" => _x('Social Links and Like Buttons', 'theme-options page title', LANGUAGE_ZONE),
"menu_title" => _x('Social Links and Like Buttons', 'theme-options menu title', LANGUAGE_ZONE),
"menu_slug" => "of-socials-menu",
"type" => "page"
);
$options[] = array( "name" => _x('Socials', 'theme-options', LANGUAGE_ZONE), "type" => "heading" );
$options[] = array( "name" => _x('Socials', 'theme-options', LANGUAGE_ZONE), "type" => "block_begin" );
$soc_ico_arr = dt_get_fonts_in( 'images/soc-ico' );
$options[] = array(
'id' => 'social_icons',
'type' => 'social_icon',
'std' => '',
'options' => array(
'fields' => $soc_ico_arr,
'ico_height' => 20,
'ico_width' => 20
)
);
$options[] = array( "type" => "block_end");
/*
* Like buttons
*/
$options[] = array( "name" => _x('Like buttons', 'theme-options', LANGUAGE_ZONE), "type" => "heading" );
$options[] = array( "name" => _x('Enable like buttons in ...', 'theme-options', LANGUAGE_ZONE), "type" => "block_begin" );
$like_places = array(
'post' => array( 'desc' => _x('Post', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 ),
'portfolio' => array( 'desc' => _x('Portfolio', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 ),
'catalog' => array( 'desc' => _x('Catalog', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 ),
'gallery' => array( 'desc' => _x('Gallery', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 ),
'photo' => array( 'desc' => _x('Photo', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 ),
'video' => array( 'desc' => _x('Video', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 )
);
foreach( $like_places as $place=>$opts ) {
$options[] = array(
"name" => '',
"desc" => $opts['desc'],
"id" => "social-like_". $place,
"std" => $opts['std'],
"type" => "checkbox"
);
}
$options[] = array( "type" => "block_end");
$options[] = array( "name" => _x('Like buttons', 'theme-options', LANGUAGE_ZONE), "type" => "block_begin" );
$like_buttons = array(
'google_plus' => array( 'desc' => _x('Google Plus', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 ),
'twitter' => array( 'desc' => _x('Twitter', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 ),
'faceboock' => array( 'desc' => _x('Facebook', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 ),
'pinterest' => array( 'desc' => _x('Pinterest', 'backend like buttons', LANGUAGE_ZONE), 'std' => 1 ),
);
foreach( $like_buttons as $button=>$opts ) {
$options[] = array(
"name" => '',
"desc" => $opts['desc'],
"id" => "social-like_button_". $button,
"std" => $opts['std'],
"type" => "checkbox"
);
}
$options[] = array( "type" => "block_end");