Ejemplo n.º 1
0
 function axiom_template_portfolio_add_scripts($style)
 {
     if (axiom_substr($style, 0, 10) == 'portfolio_' || axiom_substr($style, 0, 5) == 'grid_' || axiom_substr($style, 0, 7) == 'square_') {
         axiom_enqueue_script('isotope', axiom_get_file_url('js/jquery.isotope.min.js'), array(), null, true);
         axiom_enqueue_script('hoverdir', axiom_get_file_url('js/hover/jquery.hoverdir.js'), array(), null, true);
         axiom_enqueue_style('axiom-portfolio-style', axiom_get_file_url('css/core.portfolio.css'), array(), null);
     }
 }
Ejemplo n.º 2
0
 function axiom_shortcodes_vc_scripts_front()
 {
     if (axiom_vc_is_frontend()) {
         // Include CSS
         axiom_enqueue_style('shortcodes_vc-style', axiom_get_file_url('shortcodes/shortcodes_vc_front.css'), array(), null);
         // Include JS
         axiom_enqueue_script('shortcodes_vc-script', axiom_get_file_url('shortcodes/shortcodes_vc_front.js'), array(), null, true);
     }
 }
Ejemplo n.º 3
0
 function load_scripts()
 {
     if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'trx_emailer') {
         axiom_enqueue_style('trx-emailer-style', axiom_get_file_url('tools/emailer/emailer.css'), array(), null);
     }
     if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'trx_emailer') {
         axiom_enqueue_script('jquery-ui-core', false, array('jquery'), null, true);
         axiom_enqueue_script('jquery-ui-tabs', false, array('jquery', 'jquery-ui-core'), null, true);
         axiom_enqueue_script('trx-emailer-script', axiom_get_file_url('tools/emailer/emailer.js'), array('jquery'), null, true);
     }
 }
Ejemplo n.º 4
0
 function axiom_admin_load_scripts()
 {
     axiom_enqueue_script('axiom-debug-script', axiom_get_file_url('js/core.debug.js'), array('jquery'), null, true);
     //if (axiom_options_is_used()) {
     axiom_enqueue_style('axiom-admin-style', axiom_get_file_url('css/core.admin.css'), array(), null);
     //}
     if (axiom_strpos($_SERVER['REQUEST_URI'], 'widgets.php') !== false) {
         axiom_enqueue_style('axiom-fontello-style', axiom_get_file_url('css/fontello-admin/css/fontello-admin.css'), array(), null);
         axiom_enqueue_style('axiom-animations-style', axiom_get_file_url('css/fontello-admin/css/animation.css'), array(), null);
         axiom_enqueue_script('axiom-admin-script', axiom_get_file_url('js/core.admin.js'), array('jquery'), null, true);
     }
 }
Ejemplo n.º 5
0
    /**
     * Displays the widget settings controls on the widget panel.
     * Make use of the get_field_id() and get_field_name() function
     * when creating your form elements. This handles the confusing stuff.
     */
    function form($instance)
    {
        /* Widget admin side css */
        axiom_enqueue_style('widget-qrcode-style', axiom_get_file_url('widgets/qrcode/qrcode-admin.css'), array(), null);
        axiom_enqueue_script('jquery-ui-tabs', false, array('jquery', 'jquery-ui-core'), null, true);
        axiom_enqueue_script('widget-qrcode-script', axiom_get_file_url('widgets/qrcode/jquery.qrcode-0.6.0.min.js'), array(), null, false);
        //axiom_enqueue_style('color-picker',        axiom_get_file_url('js/colorpicker/colorpicker.css'), array(), null);
        //axiom_enqueue_script('color-picker',       axiom_get_file_url('js/colorpicker/colorpicker.js'), array('jquery'),null,true);
        /* Set up some default widget settings. */
        $address = explode(',', axiom_get_theme_option('user_address'));
        $defaults = array('title' => '', 'description' => __('QR Code Generator (for your vcard)', 'axiom'), 'ulname' => '', 'ufname' => '', 'ucompany' => '', 'uaddr' => '', 'ucity' => '', 'upostcode' => '', 'ucountry' => '', 'uemail' => '', 'usite' => '', 'uphone' => '', 'uid' => md5(microtime()), 'urev' => date('Y-m-d'), 'image' => '', 'show_personal' => 0, 'show_what' => 1, 'auto_draw' => 0, 'width' => 160, 'text' => '', 'color' => '#000000', 'bg' => '');
        $instance = wp_parse_args((array) $instance, $defaults);
        ?>

		<div class="widget_qrcode">
        	<div class="qrcode_tabs">
                <ul class="tabs">
                    <li class="first"><a href="#tab_settings"><?php 
        _e('Settings', 'axiom');
        ?>
</a></li>
                    <li><a href="#tab_fields" onmousedown="axiom_qrcode_init()"><?php 
        _e('Personal Data', 'axiom');
        ?>
</a></li>
                    <li><a href="#tab_text" onmousedown="axiom_qrcode_init()"><?php 
        _e('Any Text', 'axiom');
        ?>
</a></li>
                </ul>
                <div id="tab_settings" class="tab_content tab_settings">
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
"><?php 
        _e('Title:', 'axiom');
        ?>
</label>
                        <input class="fld_title" onfocus="axiom_qrcode_init()" id="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('title'));
        ?>
" value="<?php 
        echo esc_attr($instance['title']);
        ?>
" style="width:100%;" />
                    </p>
                    <p>
                        <label><?php 
        _e('Show as QR Code:', 'axiom');
        ?>
</label><br />
                        <input class="fld_show_what" onfocus="axiom_qrcode_init()" id="<?php 
        echo esc_attr($this->get_field_id('show_what'));
        ?>
_1" name="<?php 
        echo esc_attr($this->get_field_name('show_what'));
        ?>
" value="1" type="radio" <?php 
        echo $instance['show_what'] == 1 ? 'checked="checked"' : '';
        ?>
 />
                        <label for="<?php 
        echo esc_attr($this->get_field_id('show_what'));
        ?>
_1"> <?php 
        _e('Personal VCard', 'axiom');
        ?>
</label>
                        <input class="fld_show_what" onfocus="axiom_qrcode_init()" id="<?php 
        echo esc_attr($this->get_field_id('show_what'));
        ?>
_0" name="<?php 
        echo esc_attr($this->get_field_name('show_what'));
        ?>
" value="0" type="radio" <?php 
        echo $instance['show_what'] == 0 ? 'checked="checked"' : '';
        ?>
 />
                        <label for="<?php 
        echo esc_attr($this->get_field_id('show_what'));
        ?>
_0"> <?php 
        _e('Any text', 'axiom');
        ?>
</label>
                    </p>
                    <p>
                        <input class="fld_show_personal" onfocus="axiom_qrcode_init()" id="<?php 
        echo esc_attr($this->get_field_id('show_personal'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('show_personal'));
        ?>
" value="1" type="checkbox" <?php 
        echo $instance['show_personal'] == 1 ? 'checked="checked"' : '';
        ?>
 />
                        <label for="<?php 
        echo esc_attr($this->get_field_id('show_personal'));
        ?>
"><?php 
        _e('Show data under QR Code:', 'axiom');
        ?>
</label>
                    </p>
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('width'));
        ?>
"><?php 
        _e('Width:', 'axiom');
        ?>
</label>
                        <input onmousedown="axiom_qrcode_init()" onfocus="axiom_qrcode_init()" id="<?php 
        echo esc_attr($this->get_field_id('width'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('width'));
        ?>
" value="<?php 
        echo esc_attr($instance['width']);
        ?>
" style="width:100%;" class="fld_width" />
                    </p>
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('color'));
        ?>
"><?php 
        _e('Color:', 'axiom');
        ?>
</label>
                        <input onmousedown="axiom_qrcode_init()" onfocus="axiom_qrcode_init()" id="<?php 
        echo esc_attr($this->get_field_id('color'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('color'));
        ?>
" value="<?php 
        echo esc_attr($instance['color']);
        ?>
" style="width:100%; background-color:<?php 
        echo esc_attr($instance['color']);
        ?>
" class="iColorPicker fld_color" />
                    </p>
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('bg'));
        ?>
"><?php 
        _e('Bg color:', 'axiom');
        ?>
</label>
                        <input onmousedown="axiom_qrcode_init()" onfocus="axiom_qrcode_init()" id="<?php 
        echo esc_attr($this->get_field_id('bg'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('bg'));
        ?>
" value="<?php 
        echo esc_attr($instance['bg']);
        ?>
" style="width:100%; background-color:<?php 
        echo esc_attr($instance['bg']);
        ?>
" class="iColorPicker fld_bg" />
                    </p>
                </div>
                <div id="tab_fields" class="tab_content tab_personal">
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('ulname'));
        ?>
"><?php 
        _e('Last name:', 'axiom');
        ?>
</label>
                        <input class="fld_ulname" id="<?php 
        echo esc_attr($this->get_field_id('ulname'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('ulname'));
        ?>
" value="<?php 
        echo esc_attr($instance['ulname']);
        ?>
" style="width:100%;" />
                    </p>
                    
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('ufname'));
        ?>
"><?php 
        _e('First name:', 'axiom');
        ?>
</label>
                        <input class="fld_ufname" id="<?php 
        echo esc_attr($this->get_field_id('ufname'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('ufname'));
        ?>
" value="<?php 
        echo esc_attr($instance['ufname']);
        ?>
" style="width:100%;" />
                    </p>
                    
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('ucompany'));
        ?>
"><?php 
        _e('Company:', 'axiom');
        ?>
</label>
                        <input class="fld_ucompany" id="<?php 
        echo esc_attr($this->get_field_id('ucompany'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('ucompany'));
        ?>
" value="<?php 
        echo esc_attr($instance['ucompany']);
        ?>
" style="width:100%;" />
                    </p>
                    
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('uphone'));
        ?>
"><?php 
        _e('Phone:', 'axiom');
        ?>
</label>
                        <input class="fld_uphone" id="<?php 
        echo esc_attr($this->get_field_id('uphone'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('uphone'));
        ?>
" value="<?php 
        echo esc_attr($instance['uphone']);
        ?>
" style="width:100%;" />
                    </p>
           
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('uaddr'));
        ?>
"><?php 
        _e('Address:', 'axiom');
        ?>
</label>
                        <input class="fld_uaddr" id="<?php 
        echo esc_attr($this->get_field_id('uaddr'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('uaddr'));
        ?>
" value="<?php 
        echo esc_attr($instance['uaddr']);
        ?>
" style="width:100%;" />
                    </p>
                    
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('ucity'));
        ?>
"><?php 
        _e('City:', 'axiom');
        ?>
</label>
                        <input class="fld_ucity" id="<?php 
        echo esc_attr($this->get_field_id('ucity'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('ucity'));
        ?>
" value="<?php 
        echo esc_attr($instance['ucity']);
        ?>
" style="width:100%;" />
                    </p>
                    
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('upostcode'));
        ?>
"><?php 
        _e('Post code:', 'axiom');
        ?>
</label>
                        <input class="fld_upostcode" id="<?php 
        echo esc_attr($this->get_field_id('upostcode'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('upostcode'));
        ?>
" value="<?php 
        echo esc_attr($instance['upostcode']);
        ?>
" style="width:100%;" />
                    </p>
                    
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('ucountry'));
        ?>
"><?php 
        _e('Country:', 'axiom');
        ?>
</label>
                        <input class="fld_ucountry" id="<?php 
        echo esc_attr($this->get_field_id('ucountry'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('ucountry'));
        ?>
" value="<?php 
        echo esc_attr($instance['ucountry']);
        ?>
" style="width:100%;" />
                    </p>
            
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('uemail'));
        ?>
"><?php 
        _e('E-mail:', 'axiom');
        ?>
</label>
                        <input class="fld_uemail" id="<?php 
        echo esc_attr($this->get_field_id('uemail'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('uemail'));
        ?>
" value="<?php 
        echo esc_attr($instance['uemail']);
        ?>
" style="width:100%;" />
                    </p>
            
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('usite'));
        ?>
"><?php 
        _e('Web Site URL:', 'axiom');
        ?>
</label>
                        <input class="fld_usite" id="<?php 
        echo esc_attr($this->get_field_id('usite'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('usite'));
        ?>
" value="<?php 
        echo esc_attr($instance['usite']);
        ?>
" style="width:100%;" />
                    </p>
				</div>
                <div id="tab_text" class="tab_content tab_text">
                    <p>
                        <label for="<?php 
        echo esc_attr($this->get_field_id('fld_text'));
        ?>
"><?php 
        _e('Text to show as QR Code:', 'axiom');
        ?>
</label>
                        <textarea class="fld_text" id="<?php 
        echo esc_attr($this->get_field_id('text'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('text'));
        ?>
" style="width:100%;"><?php 
        echo esc_html($instance['text']);
        ?>
</textarea>
                    </p>
				</div>
                    
            </div>            
            <input class="fld_uid" id="<?php 
        echo esc_attr($this->get_field_id('uid'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('uid'));
        ?>
" value="<?php 
        echo esc_attr($instance['uid']);
        ?>
" type="hidden" />
            <input class="fld_urev" id="<?php 
        echo esc_attr($this->get_field_id('urev'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('urev'));
        ?>
" value="<?php 
        echo esc_attr($instance['urev']);
        ?>
" type="hidden" />
    
            <p>
                <input class="fld_button_draw" id="<?php 
        echo esc_attr($this->get_field_id('button_draw'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('button_draw'));
        ?>
" value="<?php 
        echo esc_attr(__('Update', 'axiom'));
        ?>
" type="button" />
                <input class="fld_auto_draw" id="<?php 
        echo esc_attr($this->get_field_id('auto_draw'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('auto_draw'));
        ?>
" value="1" type="checkbox" <?php 
        echo $instance['auto_draw'] == 1 ? 'checked="checked"' : '';
        ?>
 />
                <label for="<?php 
        echo esc_attr($this->get_field_id('auto_draw'));
        ?>
"> <?php 
        _e('Auto', 'axiom');
        ?>
</label>
            </p>
            <input class="fld_image" id="<?php 
        echo esc_attr($this->get_field_id('image'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('image'));
        ?>
" value="" type="hidden" />
            <div id="<?php 
        echo esc_attr($this->get_field_id('qrcode_image'));
        ?>
" class="qrcode_image"><img src="<?php 
        echo $instance['image'];
        ?>
" alt="" /></div>
            <div id="<?php 
        echo esc_attr($this->get_field_id('qrcode_data'));
        ?>
" class="qrcode_data">
<?php 
        if ($instance['show_personal'] == 1) {
            ?>
                <ul>
				<?php 
            if ($instance['show_what'] == 1) {
                ?>
                    <li class="user_name odd first"><?php 
                echo __('Name:', 'axiom') . ' ' . $instance['ufname'] . ' ' . $instance['ulname'];
                ?>
</li>
                    <?php 
                echo ($instance['ucompany'] ? '<li class="user_company even">' . __('Company:', 'axiom') . ' ' . $instance['ucompany'] . '</li>' : '') . ($instance['uphone'] ? '<li class="user_phone odd">' . __('Phone:', 'axiom') . ' ' . $instance['uphone'] . '</li>' : '') . ($instance['uemail'] ? '<li class="user_email even">' . __('E-mail:', 'axiom') . ' ' . '<a href="' . esc_url('mailto:' . $instance['uemail']) . '">' . $instance['uemail'] . '</a></li>' : '') . ($instance['usite'] ? '<li class="user_site odd">' . __('Site:', 'axiom') . ' ' . '<a href="' . esc_url($instance['usite']) . '" target="_blank">' . $instance['usite'] . '</a></li>' : '');
                ?>
				<?php 
            } else {
                ?>
                    <li class="text odd first"><?php 
                echo $instance['text'];
                ?>
</li>
				<?php 
            }
            ?>
                </ul>
<?php 
        }
        ?>
            </div>
		</div>

        <script type="text/javascript">
            jQuery(document).ready(function(){
				axiom_qrcode_init();
				axiom_color_picker();
            });
			function axiom_qrcode_init() {
				jQuery('#widgets-right .widget_qrcode:not(.inited)').each(function() {
					var widget = jQuery(this).addClass('inited');
					widget.find('input.iColorPicker:not(.colored)').each(function() {
						var obj = jQuery(this);
						if (obj.attr('id').indexOf('__i__') < 0) {
							obj.addClass('colored');
							axiom_set_color_picker(obj.attr('id'));
						}
					});
					widget.find('div.qrcode_tabs').tabs();
					widget.find('.fld_button_draw').click(function() {
						axiom_qrcode_update(widget);
					});
					widget.parents('form').find('.widget-control-save').click(function() {
						axiom_qrcode_update(widget);
					});
					widget.find('.tab_personal input,.tab_text textarea,.fld_auto_draw,.iColorPicker').change(function () {
						if (widget.find('.fld_auto_draw').attr('checked')=='checked') {
							widget.find('.fld_button_draw').hide();
							axiom_qrcode_update(widget);
						} else 
							widget.find('.fld_button_draw').show();
					});
					if (widget && widget.find('.fld_auto_draw').attr('checked')=='checked')
						widget.find('.fld_button_draw').hide();
				});
			}
            function axiom_qrcode_update(widget) {
				axiom_qrcode_show(widget, {
                        ufname:		widget.find('.fld_ufname').val(),
                        ulname:		widget.find('.fld_ulname').val(),
                        ucompany:	widget.find('.fld_ucompany').val(),
                        usite:		widget.find('.fld_usite').val(),
                        uemail:		widget.find('.fld_uemail').val(),
                        uphone:		widget.find('.fld_uphone').val(),
                        //ufax:		widget.find('.fld_ufax').val(),
                        uaddr:		widget.find('.fld_uaddr').val(),
                        ucity:		widget.find('.fld_ucity').val(),
                        upostcode:	widget.find('.fld_upostcode').val(),
                        ucountry:	widget.find('.fld_ucountry').val(),
                        //unote:	widget.find('.fld_unote').val(),
                        //ucats:	widget.find('.fld_ucats').val(),
                        uid:		widget.find('.fld_uid').val(),
                        urev:		widget.find('.fld_urev').val(),
                        text: 		widget.find('.fld_text').val()
                    }, 
                    {
                        qrcode: widget.find('.qrcode_image').eq(0),
                        personal: widget.find('.qrcode_data'),
                        show_personal: widget.find('.fld_show_personal').attr('checked')=='checked',
                        show_what: widget.find('.fld_show_what').attr('checked')=='checked' ? 1 : 0,
                        width: widget.find('.fld_width').val(),
                        color: widget.find('.fld_color').val(),
                        bg: widget.find('.fld_bg').val()
                    }
                );
				var image = widget.find('.qrcode_image canvas').get(0).toDataURL('image/png');
				widget.find('.fld_image').val(image);
				widget.find('.qrcode_image img').attr('src', image);
            }
			function axiom_qrcode_show(widget, vc, opt) {
				if (opt.show_what==1) {
					var text = 'BEGIN:VCARD\n'
						+ 'VERSION:3.0\n'
						+ 'FN:' + vc.ufname + ' ' + vc.ulname + '\n'
						+ 'N:' + vc.ulname + ';' + vc.ufname + '\n'
						+ (vc.ucompany ? 'ORG:' + vc.ucompany + '\n' : '')
						+ (vc.uphone ? 'TEL;TYPE=cell, pref:' + vc.uphone + '\n' : '')
						+ (vc.ufax ? 'TEL;TYPE=fax, pref:' + vc.ufax + '\n' : '')
						+ (vc.uaddr || vc.ucity || vc.ucountry ? 'ADR;TYPE=dom, home, postal, parcel:;;' + vc.uaddr + ';' + vc.ucity + ';;' + vc.upostcode + ';' + vc.ucountry + '\n' : '')
						+ (vc.usite ? 'URL:' + vc.usite + '\n' : '')
						+ (vc.uemail ? 'EMAIL;TYPE=INTERNET:' + vc.uemail + '\n' : '')
						+ (vc.ucats ? 'CATEGORIES:' + vc.ucats + '\n' : '')
						+ (vc.unote ? 'NOTE:' + vc.unote + '\n' : '')
						+ (vc.urev ? 'NOTE:' + vc.urev + '\n' : '')
						+ (vc.uid ? 'UID:' + vc.uid + '\n' : '')
						+ 'END:VCARD';
				} else {
					var text = vc.text;
				}
				opt.qrcode
					.empty()
					.qrcode({
						'text': text,
						'color': opt.color,
						'bgColor': opt.bg!='' ? opt.bg : null,
						'width': opt.width,
						'height': opt.width,
						'size': opt.width
					});
				if (opt.show_personal == 0)
					opt.personal.empty().hide(); 
				else
					opt.personal.html(
						'<ul>'
							+ (opt.show_what==1 
								? '<li class="user_name odd first">' + vc.ufname + ' ' + vc.ulname + '</li>'
									+ (vc.ucompany ? '<li class="user_company even">' + vc.ucompany + '</li>' : '')
									+ (vc.uphone ? '<li class="user_phone odd">' + vc.uphone + '</li>' : '')
									+ (vc.uemail ? '<li class="user_email even"><a href="mailto:' + vc.uemail + '">' + vc.uemail + '</a></li>' : '')
									+ (vc.usite ? '<li class="user_site odd"><a href="' + vc.usite + '" target="_blank">' + vc.usite + '</a></li>' : '')
								: '<li class="text odd first">' + vc.text + '</li>')
						+ '</ul>'
					).show();
			}
			
			if (!window.axiom_set_color_picker) {
				function axiom_set_color_picker(id_picker) {
					jQuery('#'+id_picker).click(function (e) {
						"use strict";
						axiom_color_picker_show(null, jQuery(this), function(fld, clr) {
							"use strict";
							fld.css('backgroundColor', clr).val(clr);
						});
					});
				}
			}
        </script>
	<?php 
    }
Ejemplo n.º 6
0
 function axiom_buddypress_frontend_scripts()
 {
     axiom_enqueue_style('buddypress-style', axiom_get_file_url('css/buddypress-style.css'), array(), null);
 }
Ejemplo n.º 7
0
 function axiom_enqueue_custom_styles()
 {
     // Custom stylesheet
     $custom_css = '';
     //axiom_get_custom_option('custom_stylesheet_url');
     axiom_enqueue_style('axiom-custom-style', $custom_css ? $custom_css : axiom_get_file_url('css/custom-style.css'), array(), null);
     // Custom inline styles
     wp_add_inline_style('axiom-custom-style', axiom_prepare_custom_styles());
 }
Ejemplo n.º 8
0
 function axiom_options_load_scripts()
 {
     // WP Color Picker
     axiom_enqueue_style('wp-color-picker', false, array(), null);
     // AxiomThemes fontello styles
     axiom_enqueue_style('axiom-fontello-admin-style', axiom_get_file_url('css/fontello-admin/css/fontello-admin.css'), array(), null);
     axiom_enqueue_style('axiom-fontello-style', axiom_get_file_url('css/fontello/css/fontello.css'), array(), null);
     // AxiomThemes options styles
     axiom_enqueue_style('axiom-options-style', axiom_get_file_url('core/core.options/css/core.options.css'), array(), null);
     axiom_enqueue_style('axiom-options-datepicker-style', axiom_get_file_url('core/core.options/css/core.options-datepicker.css'), array(), null);
     // WP core scripts
     wp_enqueue_media();
     axiom_enqueue_script('wp-color-picker', false, array('jquery'), null, true);
     // Input masks for text fields
     axiom_enqueue_script('jquery-input-mask', axiom_get_file_url('core/core.options/js/jquery.maskedinput.1.3.1.min.js'), array('jquery'), null, true);
     // AxiomThemes core scripts
     axiom_enqueue_script('axiom-core-utils-script', axiom_get_file_url('js/core.utils.js'), array(), null, true);
     // AxiomThemes options scripts
     axiom_enqueue_script('axiom-options-script', axiom_get_file_url('core/core.options/js/core.options.js'), array('jquery', 'jquery-ui-core', 'jquery-ui-tabs', 'jquery-ui-accordion', 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-datepicker'), null, true);
     axiom_enqueue_script('axiom-options-custom-script', axiom_get_file_url('core/core.options/js/core.options-custom.js'), array('axiom-options-script'), null, true);
     axiom_enqueue_messages();
     axiom_enqueue_popup();
 }
Ejemplo n.º 9
0
Archivo: skin.php Proyecto: pcuervo/odc
 function axiom_action_add_responsive_education()
 {
     if (file_exists(axiom_get_file_dir('skins/default/skin-responsive.css'))) {
         axiom_enqueue_style('theme-skin-responsive-style', axiom_get_file_url('skins/default/skin-responsive.css'), array(), null);
     }
 }
Ejemplo n.º 10
0
 function axiom_tribe_events_frontend_scripts()
 {
     global $wp_styles;
     $wp_styles->done[] = 'tribe-events-custom-jquery-styles';
     axiom_enqueue_style('tribe-style', axiom_get_file_url('css/tribe-style.css'), array(), null);
 }
Ejemplo n.º 11
0
if (axiom_get_custom_option('show_slider') == 'yes') {
    $slider = axiom_get_custom_option('slider_engine');
    $slider_alias = $slider_ids = $slider_html = '';
    if ($slider == 'revo' && axiom_exists_revslider()) {
        $slider_alias = axiom_get_custom_option('slider_alias');
        if (!empty($slider_alias)) {
            $slider_html = do_shortcode('[rev_slider ' . esc_attr($slider_alias) . ']');
        }
    } else {
        if ($slider == 'royal' && axiom_exists_royalslider()) {
            $slider_alias = get_new_royalslider($slider_alias);
            if (!empty($slider_alias)) {
                $slider_html = do_shortcode('[rev_slider ' . esc_attr($slider_alias) . ']');
            }
            axiom_enqueue_style('new-royalslider-core-css', NEW_ROYALSLIDER_PLUGIN_URL . 'lib/royalslider/royalslider.css', array(), null);
            axiom_enqueue_script('new-royalslider-main-js', NEW_ROYALSLIDER_PLUGIN_URL . 'lib/royalslider/jquery.royalslider.min.js', array('jquery'), NEW_ROYALSLIDER_WP_VERSION, true);
        } else {
            if ($slider == 'swiper') {
                $slider_pagination = axiom_get_custom_option("slider_pagination");
                $slider_alias = axiom_get_custom_option("slider_category");
                $slider_orderby = axiom_get_custom_option("slider_orderby");
                $slider_order = axiom_get_custom_option("slider_order");
                $slider_count = $slider_ids = axiom_get_custom_option("slider_posts");
                if (axiom_strpos($slider_ids, ',') !== false) {
                    $slider_alias = '';
                    $slider_count = 0;
                } else {
                    $slider_ids = '';
                    if (empty($slider_count)) {
                        $slider_count = 3;
Ejemplo n.º 12
0
 function axiom_woocommerce_frontend_scripts()
 {
     if (axiom_is_woocommerce_page() || axiom_get_custom_option('show_cart') == 'always') {
         axiom_enqueue_style('axiom-woo-style', axiom_get_file_url('css/woo-style.css'), array(), null);
     }
 }
Ejemplo n.º 13
0
<?php

//====================================== Editor area ========================================
if ($post_data['post_edit_enable']) {
    wp_register_script('wp-color-picker', get_site_url() . '/wp-admin/js/color-picker.min.js', array('jquery'), '1.0', true);
    axiom_enqueue_style('fontello-admin', axiom_get_file_url('css/fontello-admin/css/fontello-admin.css'), array(), null);
    axiom_enqueue_style('frontend-editor-style', axiom_get_file_url('js/core.editor/core.editor.css'), array(), null);
    axiom_enqueue_script('frontend-editor', axiom_get_file_url('js/core.editor/core.editor.js'), array(), null, true);
    axiom_enqueue_messages();
    axiom_options_load_scripts();
    axiom_options_prepare_scripts($post_data['post_type']);
    axiom_sc_load_scripts();
    axiom_sc_prepare_scripts();
    ?>
	<div id="frontend_editor">
		<div id="frontend_editor_inner">
			<form method="post">
				<label id="frontend_editor_post_title_label" for="frontend_editor_post_title"><?php 
    _e('Title', 'axiom');
    ?>
</label>
				<input type="text" name="frontend_editor_post_title" id="frontend_editor_post_title" value="<?php 
    echo esc_attr($post_data['post_title']);
    ?>
" />
				<?php 
    wp_editor($post_data['post_content_original'], 'frontend_editor_post_content', array('wpautop' => true, 'textarea_rows' => 16));
    ?>
				<label id="frontend_editor_post_excerpt_label" for="frontend_editor_post_excerpt"><?php 
    _e('Excerpt', 'axiom');
    ?>