예제 #1
0
    function novo($item = null)
    {
        if (isset($_POST['preview'])) {
            //$conteudo = highlight_string($t, true);
            //if(isset($_POST['salvar'])) $conteudo = strip_tags(str_replace('<?', '&lt;?',$_POST['conteudo']), '<p><a><h2><h3><h4><h5><b><pre><code><blockquote><img><iframe>');
            $cont = str_replace('<?', '&lt;?', $_POST['conteudo']);
            //$cont = $this->scaner($cont);
            if (isset($_POST['preview'])) {
                $conteudo = htmlentities($_POST['conteudo'], ENT_QUOTES, "UTF-8");
            }
            //_p($conteudo);
            $conteudo = addslashes($conteudo);
            //para salvar no banco de dados
        } elseif (isset($_POST['cancelar'])) {
            _go();
        } else {
            $cont = '';
            $conteudo = '<pre><?php
namespace Lib\\Db;
		
class Admin
	extends Base{
		
	function __construct(){ //verificando se tem acesso ao ADMIN
		$_SESSION["level"] = 2; //Desenvolvimento  - DELETAR
		if(!isset($_SESSION["level"]) || $_SESSION["level"] < 2 ) _go();
	}
		
	function novo($item = null){
		$conteudo = "Nenhum conteúdo précarregado!";
		if(isset($_POST["salvar"])) _p(htmlentities(str_replace("dt","code",$_POST["conteudo"])));
		if(isset($_POST["salvar"])) $conteudo = str_replace("dt","code",$_POST["conteudo"]);
		
			_view::val("data", date("d/m/Y"));
			_view::val("conteudo", $conteudo);
			_view::set("blog/admin/novo/artigo");
	}</pre>';
        }
        _view::val('data', date('d/m/Y'));
        _view::val('cont', '<pre>' . $cont . '</pre>');
        _view::val('conteudo', stripslashes($conteudo));
        _view::set('blog/admin/novo/artigo');
    }
예제 #2
0
function twitter_get_tweets($twitteruser)
{
    $cache = get_transient('revoke_twitter');
    if (is_array($cache) && array_key_exists($twitteruser, $cache)) {
        return $cache[$twitteruser];
    }
    $consumerkey = _go('twitter_consumerkey');
    $consumersecret = _go('twitter_consumersecret');
    $accesstoken = _go('twitter_accesstoken');
    $accesstokensecret = _go('twitter_accesstokensecret');
    if (empty($consumerkey) || empty($consumersecret) || empty($accesstoken) || empty($accesstokensecret)) {
        return null;
    }
    $connection = getConnectionWithAccessToken($consumerkey, $consumersecret, $accesstoken, $accesstokensecret);
    $tweets = $connection->get("https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=" . $twitteruser);
    if (!is_array($cache)) {
        $cache = array();
    }
    $cache[$twitteruser] = $tweets;
    set_transient('revoke_twitter', $cache, 60);
    return $tweets;
}
if (_go('error_title')) {
    _eo('error_title');
} else {
    _e('OOps! something went wrong', 'sevenfold');
}
?>
</h3>
                    <p><?php 
if (_go('error_message')) {
    _eo('error_message');
} else {
    _e('The page you are trying to access seems to no longer exists.', 'sevenfold');
}
?>
</p>
                    <?php 
get_search_form();
?>
                </div>
            </div>
            <div class="col-md-5">
                <div class="error-404-image"<?php 
if (_go('error_image')) {
    echo " style='background-image:url(\" " . _go('error_image') . "\");'";
}
?>
></div>
            </div>
        </div>
    </div>
</div>
예제 #4
0
">
        <div class="box-img"><span></span></div>
        
        <div class="container intro-center">
            <div class="row">
                <div class="col-md-6 col-md-offset-3">
                    <div class="text-center">
                        <?php 
echo balanceTags($tt_theme->lazy_img(_go('error_emblem')));
?>
                        <?php 
if (_go('404_error')) {
    ?>
                        	<div class="text-center">
                        		<?php 
    echo _go('404_error');
    ?>
                        	</div>
                        <?php 
} else {
    ?>
                            <h3 class="font-alpha uppercase"><?php 
    _e('Sorry, the page not found!', 'megalith');
    ?>
</h3>
                            <h6><?php 
    _e('Go to', 'megalith');
    ?>
 <a href="<?php 
    echo esc_url(home_url('/'));
    ?>
예제 #5
0
 public static function get_mailchimp_lists($custom_api_key = NULL)
 {
     $apikey = $custom_api_key ? $custom_api_key : _go('mailchimp_api_key');
     if (preg_match('@-(.*)@is', $apikey, $dc_matches)) {
         $dc = $dc_matches[1];
         $url = "https://{$dc}.api.mailchimp.com/2.0/lists/list";
         $post_data = array('apikey' => $apikey);
         $result = curl_mailchimp($url, $post_data, true, true);
     } else {
         $result = __('Not a valid mailchimp api key.', 'TeslaFramework');
     }
     return $result;
 }
?>
>
        <div class="error-content">
            <div class="error-head">
                <?php 
get_search_form();
?>
            </div>
            <h1><?php 
_e('404', 'sevenfold');
?>
</h1>
            <h3><?php 
if (_go('error_title')) {
    _eo('error_title');
} else {
    _e('OOps! something went wrong', 'sevenfold');
}
?>
</h3>
            <p><?php 
if (_go('error_message')) {
    _eo('error_message');
} else {
    _e('The page you are trying to access seems to no longer exists.', 'sevenfold');
}
?>
</p>
        </div>
    </div>
</div>
        <div class="header-logo">
            <a href="<?php 
echo home_url();
?>
" style="<?php 
_estyle_changer('logo_text');
?>
" >
                <?php 
if (_go('logo_text')) {
    ?>
                    <?php 
    _eo('logo_text');
    ?>
                <?php 
} elseif (_go('logo_image')) {
    ?>
                    <img src="<?php 
    _eo('logo_image');
    ?>
" alt="<?php 
    echo THEME_PRETTY_NAME;
    ?>
 logo">
                <?php 
} else {
    ?>
                    <?php 
    echo THEME_PRETTY_NAME;
    ?>
                <?php 
function tt_ajax_contact_form()
{
    $receiver_mail = _go('email_contact') ? _go('email_contact') : get_bloginfo('admin_email');
    if (!empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['message'])) {
        $subject = !empty($_POST['website']) ? $_POST['name'] . ' from ' . $_POST['website'] : ' from ' . get_bloginfo('name') . ' Contact form';
        $email = $_POST['email'];
        $message = $_POST['message'];
        $message = wordwrap($message, 70, "\r\n");
        $header[] = 'From: ' . $_POST['name'] . '<' . $_POST['email'] . '>';
        $header[] = 'Reply-To: ' . $email;
        if (wp_mail($receiver_mail, $subject, $message, $header)) {
            $result = __('Message successfully sent.', 'sevenfold');
        } else {
            $result = __('Message could not be sent.', 'sevenfold');
        }
    } else {
        $result = __('Please fill all the fields', 'sevenfold');
    }
    die($result);
}
예제 #9
0
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a><?php 
        if (is_sticky()) {
            echo '<span class="blogEntryTitleFeatured">' . __('featured', 'revoke') . '</span>';
        }
        ?>
</h2>

                <div class="entry blogEntryExcerpt">
                    <?php 
        if (!is_archive()) {
            if ('Content' === _go('blog_page_excerpt')) {
                the_content();
            } else {
                the_excerpt();
            }
        }
        ?>
                </div>
                <div class="blogEntryFooter">
                    <div class="blogEntryFooterDate">
                        <?php 
        echo get_the_date('d M Y');
        ?>
                    </div>
                    <div class="blogEntryFooterDelimiter">
                        /
예제 #10
0
global $tt_theme;
?>
    	
    	<footer class="main-footer">

			<?php 
do_action('tt_footer');
?>

			<div class="footer-copyright">
				<div class="container">
					<div class="row">
						<div class="col-md-9">
							<p class="copyright align-center text-center text-white">
								<?php 
echo _go('footer_info') ? _go('footer_info') . ' | ' : '';
?>
								<!-- <span> <?php 
_e('Designed by', 'megalith');
?>
</span>
								<a href="http://teslathemes.com"> Teslathemes</a>	
								 -->
								 Last Updated: <?php 
the_modified_time('F j, Y');
?>
 |
								 <a href="https://www.facebook.com/UFSFA"><i class="icon-182"></i></a>
								 <a href="https://twitter.com/UFSFA"><i class="icon-510"></i></a>
							</p>
						</div>
예제 #11
0
파일: PRAF.php 프로젝트: iasinDev/PRAF
function main()
{
    $text = get('t');
    $out = get('o');
    if ($text === '') {
        echo "Bad input";
        return false;
    }
    if (get('k') == 'e') {
        $memory = get('m');
        $oText = $text;
        $save = "false";
        $bin = "false";
        if ($m === '') {
            $memory = 1024;
        }
        if (get('b') === '1') {
            $text = base64_decode($text);
            $bin = "true";
        }
        $encoded = _go($text, false, $memory);
        if (get('v') === '1') {
            $id = __store($encoded[1], $encoded[2], 0);
            $save = "true";
        } else {
            $id = array(-1, _compact($encoded[2]));
        }
        $output = base64_encode($encoded[0]);
        if ($out === 'JSON') {
            echo '{"PRAF":{"input":{"kind":"encode","memory":' . $memory . ',"text":"' . $oText . '","save":' . $save . ',"binary":' . $bin . ',"output":"JSON"},"output":{"sorting":"' . $id[1] . '","filling":"' . $encoded[1] . '","id":' . $id[0] . ',"outputText":"' . $output . '"}}}';
        } elseif ($out === 'XML') {
            echo '<?xml version="1.0"?><PRAF><input><kind>encode</kind><memory>' . $memory . '</memory><text>' . $oText . '</text><save>' . $save . '</save><binary>' . $bin . '</binary><output>XML</output></input><output><sorting>' . $id[1] . '</sorting><filling>' . $encoded[1] . '</filling><id>' . $id[0] . '</id><outputText>' . $output . '</outputText></output></PRAF>';
        } else {
            echo $output . "<br />" . $encoded[1] . "<br />" . $id[1] . "<br />" . $id[0];
        }
    } elseif (get('k') == 'd') {
        $id = get('i');
        $save = "false";
        $bin = "false";
        if ($id === '') {
            echo "Bad input";
            return false;
        }
        if ($id === '0') {
            $temp = array(get('p'), get('s'));
        }
        $memory = get('m');
        if ($memory === '') {
            $memory = 1024;
        }
        if ($id > 0) {
            $temp = __get($id);
            $save = "true";
        }
        if ($temp[0] === '' || $temp[1] === '') {
            echo "Bad input";
            return false;
        }
        $plain = _undo(base64_decode($text), $temp[0], $temp[1]);
        $encoded = _go($plain, false, $memory);
        if ($id > 0) {
            $id = __store($encoded[1], $encoded[2], $id);
        } else {
            $id = array(-1, _compact($encoded[2]));
        }
        if (get('b') === '1') {
            $plain = base64_encode($plain);
            $bin = "true";
        }
        $output = base64_encode($encoded[0]);
        if ($out === 'JSON') {
            echo '{"PRAF":{"input":{"kind":"decode","memory":' . $memory . ',"id":' . $id[0] . ',"text":"' . $text . '","sorting":"' . $temp[1] . '","filling":"' . $temp[0] . '","save":' . $save . ',"binary":' . $bin . ',"output":"JSON"},"output":{"sorting":"' . $id[1] . '","filling":"' . $encoded[1] . '","id":' . $id[0] . ',"outputText":"' . $output . '"}}}';
        } elseif ($out === 'XML') {
            echo '<?xml version="1.0"?><PRAF><input><kind>decode</kind><memory>' . $memory . '</memory><id>' . $id[0] . '</id><text>' . $text . '</text><sorting>' . $temp[1] . '</sorting><filling>' . $temp[0] . '</filling><save>' . $save . '</save><binary>' . $bin . '<binary><output>XML</output></input><output><sorting>' . $id[1] . '</sorting><filling>' . $encoded[1] . '</filling><id>' . $id[0] . '</id><outputText>' . $output . '</outputText></output></PRAF>';
        } else {
            echo $plain . "<br />" . $output . "<br />" . $encoded[1] . "<br />" . $id[1] . "<br />" . $id[0];
        }
    } else {
        echo "Bad input";
        return false;
    }
}
    }
    ?>
                                            </li>
                                        <?php 
}
?>
                    </ul>
                    <?php 
tt_share();
?>
                </div>
            </div>
        </div>
    </div>
    <?php 
if (_go('show_related_projects') && count($slide['related'])) {
    ?>

        <div class="releated-products">
            <h4><?php 
    _e('Related products', 'sevenfold');
    ?>
</h4>
            <div class="filter-area">
                <div class="row" data-tesla-plugin="masonry">
                    <?php 
    foreach ($slide['related'] as $nr => $related) {
        if ($nr >= 4) {
            break;
        }
        ?>
<?php

get_header();
$sidebar = get_post_meta(get_the_id(), 'sevenfold_sidebar_position', true);
$share = get_post_meta(get_the_id(), 'sevenfold_page_share', true);
$sidebar = $sidebar === '' ? 'full_width' : $sidebar;
if (get_post_meta(get_the_id(), 'sevenfold_show_breadcrumbs', true)) {
    ?>

<?php 
} else {
    ?>
	<div class="breadcrumbs"<?php 
    if (_go('breadcrumbs_image')) {
        echo " style='background-image:url(" . _go('breadcrumbs_image') . ")'";
    }
    ?>
>
	    <div class="container">
	        <h1><?php 
    the_title();
    ?>
</h1>
	    </div>
	</div>
	<style>
		.page-template-default .content {
			padding-top: 0;
		}
	</style>
<?php 
예제 #14
0
 /**
  *   Global social networks
  */
 public function global_socials()
 {
     $networks = array('182' => 'facebook', '510' => 'twitter', '298' => 'linkedin', '397' => 'rss', '158' => 'dribbble', '244' => 'google');
     $social_buttons = '';
     foreach ($networks as $icon => $item) {
         $network = _go('social_platforms_' . $item);
         if (!empty($network)) {
             $social_buttons .= sprintf('<li class="%s-network"><a href="%s"><i class="icon-%s"></i></a></li>', $item, _go('social_platforms_' . $item), $icon);
         }
     }
     if (!empty($social_buttons)) {
         return sprintf('<ul class="inline-list social-networks align-center text-white">%s</ul>', $social_buttons);
     }
 }
<?php

get_header();
$error_type = _go('error_type') ? _go('error_type') : 1;
get_template_part('theme_includes/404', $error_type);
get_footer();
예제 #16
0
if (empty($logo)) {
    $logo = _go('logo_image');
    if (empty($logo)) {
        $logo = get_template_directory_uri() . '/images/logo.png';
    }
    echo '<div class="logo"><a href="' . home_url() . '"><img src="' . $logo . '" alt="logo" /></a></div>';
} else {
    $text_color = _go('logo_text_color');
    if (empty($text_color)) {
        $text_color = '#fe5113';
    }
    echo '<div class="logo" style="margin-top:0;"><a href="' . home_url() . '"><span style="line-height:43px;font-family:' . _go('logo_text_font') . ';color:' . $text_color . ';font-size:' . _go('logo_text_size') . 'px;">' . $logo . '</span></a></div>';
}
?>
                    <?php 
$revoke_social = array('facebook' => _go('social_platforms_facebook'), 'twitter' => _go('social_platforms_twitter'), 'google' => _go('social_platforms_google'), 'pinterest' => _go('social_platforms_pinterest'), 'linkedin' => _go('social_platforms_linkedin'), 'dribble' => _go('social_platforms_dribbble'), 'behance' => _go('social_platforms_behance'), 'youtube' => _go('social_platforms_youtube'), 'flickr' => _go('social_platforms_flickr'), 'instagram' => _go('social_platforms_instagram'));
$revoke_social_values = array_values($revoke_social);
$revoke_social_filtered = array_filter($revoke_social_values);
if (!empty($revoke_social_filtered)) {
    ?>
                    <div class="social">
                        <?php 
    if (!empty($revoke_social['facebook'])) {
        ?>
                        <a href="<?php 
        echo $revoke_social['facebook'];
        ?>
" target="_blank">
                            <img src="<?php 
        echo get_template_directory_uri();
        ?>
예제 #17
0
function biznex_social($atts, $content = null)
{
    extract(shortcode_atts(array('style' => ''), $atts));
    $content = biznex_shortcode_fix(do_shortcode($content));
    if ('' !== $style) {
        $style = ' style="' . htmlspecialchars($style) . '" ';
    }
    $output = '';
    $social = array('facebook' => _go('social_platforms_facebook'), 'twitter' => _go('social_platforms_twitter'), 'google-plus' => _go('social_platforms_google'), 'linkedin' => _go('social_platforms_linkedin'), 'dribbble' => _go('social_platforms_dribbble'), 'pinterest' => _go('social_platforms_pinterest'), 'instagram' => _go('social_platforms_instagram'));
    $social_custom = _go_repeated('Custom Icons');
    $social_filtered = array_filter($social);
    $output .= '<div class="social-icons align-center" ' . $style . ' >';
    foreach ($social_filtered as $social_key => $social_value) {
        $output .= '<a href="' . htmlspecialchars($social_value) . '"><img src="' . tesla_locate_uri('img/social-' . $social_key . '.png') . '" alt="social" /></a>';
    }
    foreach ($social_custom as $social_custom_icon) {
        if ('' !== $social_custom_icon['custom_social_url'] && '' !== $social_custom_icon['custom_social_image']) {
            $output .= '<a href="' . htmlspecialchars($social_custom_icon['custom_social_url']) . '"><img src="' . htmlspecialchars($social_custom_icon['custom_social_image']) . '" alt="social" /></a>';
        }
    }
    $output .= '</div>';
    return $output;
}
예제 #18
0
function _esocial_platforms($social_platforms = array('facebook', 'twitter', 'pinterest', 'flickr', 'dribbble', 'behance', 'google', 'linkedin', 'youtube', 'rss'), $prefix = '', $suffix = '', $fa = false)
{
    foreach ($social_platforms as $platform) {
        if (_go('social_platforms_' . $platform)) {
            ?>
            <li>
                <a href="<?php 
            _eo('social_platforms_' . $platform);
            ?>
" target="_blank">
                    <?php 
            if ($fa) {
                ?>
                        <i class="fa fa-<?php 
                echo esc_attr($platform);
                ?>
"></i>
                    <?php 
            } else {
                ?>
                        <img src="<?php 
                echo TT_THEME_URI;
                ?>
/images/socials/<?php 
                echo esc_attr($prefix . $platform . $suffix);
                ?>
.png" alt="<?php 
                echo esc_attr($platform);
                ?>
" />
                    <?php 
            }
            ?>
                </a>
            </li>
        <?php 
        }
    }
}
예제 #19
0
<?php

return array('revoke_main' => array('name' => 'Слайдер', 'term' => 'slide', 'term_plural' => 'slides', 'order' => 'ASC', 'options' => array('description' => array('type' => 'text', 'description' => 'Enter description of the slide', 'title' => 'Description'), 'image' => array('type' => 'image', 'description' => 'Image of the slide', 'title' => 'Image', 'default' => 'holder.js/960x407/auto'), 'url' => array('type' => 'line', 'description' => '(Optional) URL applied to the title', 'title' => 'URL', 'default' => '')), 'output_default' => 'main', 'output' => array('main' => array('shortcode' => 'tesla_main_slider', 'view' => 'views/main_slider_view', 'shortcode_defaults' => array('style' => '', 'speed' => 4, 'pause' => 8, 'toggle_caption' => true))), 'icon' => '../images/favicon.ico'), 'revoke_clients' => array('name' => 'Приятели Slider', 'term' => 'slide', 'term_plural' => 'slides', 'order' => 'ASC', 'options' => array('image' => array('type' => 'image', 'description' => 'Снимки/лога', 'title' => 'Image', 'default' => 'holder.js/144x65/auto'), 'url' => array('type' => 'line', 'description' => '(Optional) URL for the image', 'title' => 'URL', 'default' => ''), 'url' => array('type' => 'line', 'description' => '(Optional) URL for the image', 'title' => 'URL', 'default' => '')), 'output_default' => 'main', 'output' => array('main' => array('shortcode' => 'tesla_clients_slider', 'view' => 'views/clients_slider_view', 'shortcode_defaults' => array('title' => __('АЙляк Приятели', 'revoke'), 'style' => 'style', 'target' => ''))), 'icon' => '../images/favicon.ico'), 'revoke_secondary' => array('name' => 'Secondary Slider', 'term' => 'slide', 'term_plural' => 'slides', 'order' => 'ASC', 'options' => array('image' => array('type' => 'image', 'description' => 'Image of the slide', 'title' => 'Image', 'default' => 'holder.js/682x330/auto')), 'output_default' => 'main', 'output' => array('main' => array('shortcode' => 'tesla_secondary_slider', 'view' => 'views/secondary_slider_view', 'shortcode_defaults' => array('style' => '', 'speed' => 4, 'pause' => 8))), 'icon' => '../images/favicon.ico'), 'revoke_portfolio' => array('name' => 'Галерия', 'term' => 'portfolio item', 'term_plural' => 'portfolio items', 'has_single' => true, 'order' => 'DESC', 'url' => _go('portfolio_url'), 'options' => array('small_description' => array('type' => 'text', 'description' => 'Enter the small description of the portfolio item', 'title' => 'Small Description (shown in the Grid View)'), 'big_description' => array('type' => 'text', 'description' => 'Enter the big description of the portfolio item', 'title' => 'Big Description (shown in the List View)'), 'related_description' => array('type' => 'text', 'description' => 'Enter the description shown in the related slider', 'title' => 'Related Slider Description (shown on a related Single Project Page in the Related Slider)'), 'small_image' => array('type' => 'image', 'description' => 'Small image of the portoflio item', 'title' => 'Small Image (shown in the Grid View)', 'default' => 'holder.js/240x240/auto'), 'big_image' => array('type' => 'image', 'description' => 'Big image of the portfolio item', 'title' => 'Big Image (shown in the List View)', 'default' => 'holder.js/445x215/auto'), 'video' => array('type' => 'line', 'description' => 'Paste the embedded video code here. This video will be displayed in the portfolio shortcode. Settings this option will disable "Small Description", "Small Image" and "Big Image" optons.', 'title' => 'Embedded Video (optional)'), 'related_image' => array('type' => 'image', 'description' => 'Image for related slider', 'title' => 'Related Slider Image (shown on a related Single Project Page in the Related Slider)', 'default' => 'holder.js/193x132/auto'), 'slider' => array('type' => array('image' => array('type' => 'image', 'description' => 'Select an image.', 'title' => 'Image', 'default' => 'holder.js/627x330/auto'), 'video' => array('type' => 'line', 'description' => 'Paste the embedded video code here.', 'title' => 'Video')), 'description' => 'Set either an image or a video for each slider.', 'title' => 'Project Slider (shown on the Single Project Page)', 'multiple' => true, 'group' => false), 'slider_speed' => array('type' => 'line', 'description' => 'Set the nr of seconds until the next slide is shown. Default is 4.', 'title' => 'Slider speed interval (optional)', 'default' => '4'), 'slider_resume' => array('type' => 'line', 'description' => 'Set the nr of second after the slider will resume autoplay. The autoplay is paused when the user hovers the cursor over the slider. Default is 8.', 'title' => 'Slider resume interval (optional)', 'default' => '8'), 'info' => array('title' => 'Project Description (shown on the Single Project Page)', 'description' => '', 'type' => array('title' => array('title' => 'Заглавие', 'description' => '', 'type' => 'line'), 'content' => array('title' => 'Съдържание', 'description' => '', 'type' => array('text' => array('title' => 'Text', 'description' => '', 'type' => 'text'), 'fields' => array('title' => 'Fields', 'description' => '', 'type' => array('name' => array('title' => 'Field name', 'description' => '', 'type' => 'line'), 'value' => array('title' => 'Field value', 'description' => '', 'type' => 'line')), 'multiple' => true)), 'group' => false)), 'multiple' => true), 'more' => array('type' => 'line', 'description' => '(Optional) Enter a custom URL instead of the default link to single project page', 'title' => 'Read More URL', 'default' => '')), 'output_default' => 'main', 'output' => array('main' => array('shortcode' => 'tesla_portfolio', 'view' => 'views/portfolio_view', 'shortcode_defaults' => array('no_more' => false, 'default_view' => 'default', 'nr' => 0, 'title' => __('Галерия:', 'revoke'), 'categories_filter' => '')), 'single' => array('view' => 'views/portfolio_single_view')), 'icon' => '../images/favicon.ico'), 'revoke_testimonial' => array('name' => 'Отзиви', 'term' => 'testimonial', 'term_plural' => 'testimonials', 'order' => 'ASC', 'options' => array('testimonial' => array('type' => 'text', 'description' => 'Enter text of the testimonial', 'title' => 'Testimonial'), 'image' => array('type' => 'image', 'description' => 'Author\'s image', 'title' => 'Author\' Image', 'default' => 'holder.js/126x126/auto'), 'author' => array('type' => 'line', 'description' => 'Author of the testimonial (Ex. John Doe)', 'title' => 'Author\'s Name', 'default' => ''), 'url' => array('type' => 'line', 'description' => '(Optional) url to the author\'s page', 'title' => 'Author\'s Url', 'default' => '')), 'output_default' => 'main', 'output' => array('main' => array('shortcode' => 'tesla_testimonial', 'view' => 'views/testimonial_view', 'shortcode_defaults' => array('wide' => true, 'class' => '', 'speed' => 4, 'pause' => 8)), 'alt' => array('shortcode' => 'tesla_testimonials', 'view' => 'views/testimonial_view', 'shortcode_defaults' => array('wide' => true, 'class' => '', 'speed' => 4, 'pause' => 8))), 'icon' => '../images/favicon.ico'));
예제 #20
0
<?php

$revoke_footer_company = _go('footer_company');
if (empty($revoke_footer_company)) {
    $revoke_footer_company = 'teslathemes';
    $revoke_footer_url = 'http://teslathemes.com/';
} else {
    $revoke_footer_url = _go('footer_url');
}
?>
            </div>
        </div><!-- CONTENTS END -->
        
        <?php 
if (is_active_sidebar('footer-sidebar')) {
    ?>
        
        <div class="footerbg"><!-- FOOTER START -->
            <div class="wrapper">
                <div class="footer textcolor5">
                    <?php 
    dynamic_sidebar('footer-sidebar');
    ?>
                </div>
            </div>
        </div><!-- FOOTER END -->
        
        <?php 
}
?>
        
예제 #21
0
function _gmap()
{
    global $tt_maps;
    if (!empty($tt_maps)) {
        foreach ($tt_maps as $map) {
            extract($map);
            $zoom_lvl = _go($tt_map_id . '_zoom') != '' ? _go($tt_map_id . '_zoom') : 4;
            $coords = _go($tt_map_id . '_coords') != '' ? _go($tt_map_id . '_coords') : "42.60,-41.16";
            $marker_coords = _go($tt_map_id . '_marker_coords') != '' ? _go($tt_map_id . '_marker_coords') : "";
            $icon = _go($tt_map_id . '_icon') != '' ? _go($tt_map_id . '_icon') : "";
            $styles = _go($tt_map_id . '_mapOptions') != '' ? _go($tt_map_id . '_mapOptions') : "";
            $func_name = str_replace("-", '_', $tt_container_id);
            echo "<script type='text/javascript'>\n              jQuery(document).ready(function(\$){\n\n                if (document.getElementById('{$tt_container_id}')) {\n\n                  function initialize_" . $func_name . "() {\n                    var mapOptions_" . $func_name . " = {\n                              center: new google.maps.LatLng({$coords}),\n                              zoom:{$zoom_lvl},\n                              mapTypeId: google.maps.MapTypeId.ROADMAP,\n                              scrollwheel: {$tt_scrollzoom},\n                              {$styles}\n                            };\n                    var map_" . $func_name . " = new google.maps.Map(document.getElementById('{$tt_container_id}'),mapOptions_" . $func_name . ");\n                    var marker_" . $func_name . " = new google.maps.Marker({\n                              map:map_" . $func_name . ",\n                              animation: google.maps.Animation.DROP,\n                              position: new google.maps.LatLng({$marker_coords}),\n                              icon:'{$icon}'\n                            });\n                  }\n                  google.maps.event.addDomListener(window, 'load', initialize_" . $func_name . ");\n                }\n              })\n              </script>\n              <style type='text/css' scoped>\n                .gmnoprint img{\n                  max-width: none;\n                }\n              </style>";
        }
    }
}
            </div>
            <!-- ======================================================================
                                            END CONTENT
            ======================================================================= -->
            <?php 
$footer_type = _go('footer_type') ? _go('footer_type') : '1';
get_template_part('theme_includes/footer', $footer_type);
?>
        </div><!-- /#boxed -->
        <!-- ======================================================================
                                        START SCRIPTS
        ======================================================================= -->
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
        <?php 
_eo('tracking_code');
?>
        <?php 
wp_footer();
?>
    </body>
</html>
}
if (!empty($input['multiple'])) {
    echo ' multiple_select';
}
?>
"
    <?php 
if (!empty($input['multiple'])) {
    echo ' multiple';
}
?>
    >
    <?php 
if ($input['mailchimp']) {
    if (_go('mailchimp_api_key')) {
        if (!_go('mailchimp_lists')) {
            $mailchimp_lists = TT_Subscription::get_mailchimp_lists();
        } else {
            $mailchimp_lists = $input['options'];
        }
        if (!empty($mailchimp_lists)) {
            $input['options'] = array();
            foreach ($mailchimp_lists as $key => $list) {
                $input['options'][$list->name] = $list->id;
            }
        }
    }
}
?>
    <?php 
if (!empty($input['range']) && $input['range_type'] == 'digit') {
예제 #24
0
function revoke_contact_ajax()
{
    $receiver_mail = _go('email_contact');
    if (!empty($receiver_mail)) {
        $mail_title_prefix = _go('email_prefix');
        if (empty($mail_title_prefix)) {
            $mail_title_prefix = '';
        }
        if (!empty($_POST['input-name']) && !empty($_POST['input-email']) && !empty($_POST['input-message'])) {
            $subject = $mail_title_prefix . __(' съобщение от ', 'revoke') . $_POST['input-name'] . ' (' . $_POST['input-email'] . ')';
            $reply_to = is_email($_POST['input-email']);
            if (false !== $reply_to) {
                $reply_to = $_POST['input-name'] . '<' . $reply_to . '>';
                $headers = '';
                $headers .= 'MIME-Version: 1.0' . "\r\n";
                $headers .= 'Content-type: text/plain; charset=utf-8' . "\r\n";
                $headers .= 'Reply-to: ' . $reply_to . "\r\n";
                $message = 'Име: ' . $_POST['input-name'] . "\r\n" . 'E-mail: ' . $_POST['input-email'] . "\r\n" . 'Съобщение: ' . $_POST['input-message'];
                if (wp_mail($receiver_mail, $subject, $message, $headers)) {
                    $result = __("Вашето съобщение е изпратено успешно.", 'revoke');
                    $result_error = false;
                } else {
                    $result = __("Съобщението не може да бъде изпратено.", 'revoke');
                    $result_error = true;
                }
            } else {
                $result = __("Грешно въведен e-mail адрес.", 'revoke');
                $result_error = true;
            }
        } else {
            $result = __("Моля попълнете всички задължителни полета.", 'revoke');
            $result_error = true;
        }
    } else {
        $result = __('Грешка! Грешна конфигурация!', 'revoke');
        $result_error = true;
    }
    echo json_encode(array('message' => $result, 'error' => $result_error));
    die;
}
        <div class="content-path-1">
            <h1><?php 
    echo $shortcode['title'];
    ?>
</h1>
        </div>
    <?php 
}
?>
    <div class="filter-area">
        <?php 
if (empty($shortcode['no_filters'])) {
    ?>
            <div class="filter-box">
                <ul class="filter tesla_filters" data-tesla-plugin="filters"<?php 
    if (_go('portfolio_filters_single')) {
        echo ' data-tesla-multiple="false"';
    }
    ?>
>
                    <li><a data-category="" class="active" href="#"><?php 
    _e('All', 'sevenfold');
    ?>
</a></li>
                    <?php 
    foreach ($all_categories as $category_slug => $category_name) {
        ?>
                        <li>
                            <a href="#" data-category="<?php 
        echo $category_slug;
        ?>
	<!-- Favicon -->
	<?php 
if (_go('favicon')) {
    ?>
		<link rel="shortcut icon" href="<?php 
    _eo('favicon');
    ?>
">
	<?php 
}
?>
	<?php 
wp_head();
?>
</head>
<body <?php 
body_class($body_class);
?>
>
    <div class="boxed-fluid">
        <!-- ======================================================================
                                        START HEADER
        ======================================================================= -->
        <?php 
$header_type = _go('header_type') ? _go('header_type') : '1';
get_template_part('theme_includes/header', $header_type);
?>
        <!-- ======================================================================
                                        START CONTENT
        ======================================================================= -->
        <div class="content">
                </div>
                <?php 
tt_gmap('contact_map', 'google-map', 'google-map', 'false');
?>
            </div>            
            <div class="footer-bottom-line">
                <div class="container">
                    <ul class="all-socials">
                        <?php 
$social_platforms = array('facebook', 'twitter', 'linkedin', 'youtube', 'vimeo', 'pinterest', 'google', 'dribble', 'rss');
foreach ($social_platforms as $platform) {
    if (_go('social_platforms_' . $platform)) {
        ?>
                                    <li>
                                        <a href="<?php 
        echo _go('social_platforms_' . $platform);
        ?>
"><i class="socials-<?php 
        echo $platform;
        ?>
" title="<?php 
        echo $platform;
        ?>
"></i></a>
                                    </li>
                                <?php 
    }
}
?>
    
                    </ul>
예제 #28
0
<?php

if (!is_archive() && !is_404()) {
    $post_id = get_queried_object() && get_queried_object()->ID && get_post_meta(get_queried_object()->ID, THEME_NAME . '_footer_back', true) ? get_queried_object()->ID : get_option('page_for_posts');
    $get_footer_background = get_post_meta($post_id, THEME_NAME . '_footer_back', true);
} else {
    $get_footer_background = '';
}
$footer_back = is_archive() || is_404() && _go('back_footer') ? 'background-image: url(' . _go('back_footer') . ');' : ($get_footer_background ? 'background-image: url(' . $get_footer_background['url'] . ');' : '');
?>



<!-- ================================= START FOOTER === -->
<section class="section section-footer">
    <footer class="main-footer">
        <div class="big-footer padding-top-60" style="<?php 
echo $footer_back;
?>
">
            <?php 
get_sidebar('footer');
?>
        </div>

        <div class="small-footer">
            <div class="container">
                <div class="row aligncenter margin-top-50">
                    <p>2015 &copy;CocinandoConJuana. Diseñado por <a href="http://hsnyc.co" target="_blank">HSNYC</a>. Servicio de hosting por <a href="http://hsny.co/get-siteground" target="_blank">SiteGround</a>.</p>
                </div>
            </div>