About 55 results: "php link repo:alniko009/magic"
Page 1 of 3
Filter Results
Sources
Languages
Filter Results
Try Search On





options.php in magic https://github.com/alniko009/magic.git | 934 lines | PHP
  1. 				$icon = (!isset($section['icon'])) ? '<img src="' . $this->url . 'img/glyphicons/glyphicons_019_cogwheel.png" /> ' : '<img src="' . $section['icon'] . '" /> ';
  2. 				echo '<li id="' . $k . '_section_group_li" class="nhp-opts-group-tab-link-li">';
  3. 				echo '<a href="javascript:void(0);" id="' . $k . '_section_group_li_a" class="nhp-opts-group-tab-link-a" data-rel="' . $k . '">' . $icon . '<span>' . $section['title'] . '</span></a>';
  4. 				echo '</li>';
  5. 			if (true === $this->args['show_import_export']) {
  6. 				echo '<li id="import_export_default_section_group_li" class="nhp-opts-group-tab-link-li">';
  7. 				echo '<a href="javascript:void(0);" id="import_export_default_section_group_li_a" class="nhp-opts-group-tab-link-a" data-rel="import_export_default"><img src="' . $this->url . 'img/glyphicons/glyphicons_082_roundabout.png" /> <span>' . __('Import / Export', 'nhp-opts') . '</span></a>';
  8. 				echo '</li>';
  9. 				$icon = (!isset($tab['icon'])) ? '<img src="' . $this->url . 'img/glyphicons/glyphicons_019_cogwheel.png" /> ' : '<img src="' . $tab['icon'] . '" /> ';
  10. 				echo '<li id="' . $k . '_section_group_li" class="nhp-opts-group-tab-link-li">';
  11. 				echo '<a href="javascript:void(0);" id="' . $k . '_section_group_li_a" class="nhp-opts-group-tab-link-a custom-tab" data-rel="' . $k . '">' . $icon . '<span>' . $tab['title'] . '</span></a>';
  12. 				echo '</li>';
  13. 			if (true === $this->args['dev_mode']) {
  14. 				echo '<li id="dev_mode_default_section_group_li" class="nhp-opts-group-tab-link-li">';
  15. 				echo '<a href="javascript:void(0);" id="dev_mode_default_section_group_li_a" class="nhp-opts-group-tab-link-a custom-tab" data-rel="dev_mode_default"><img src="' . $this->url . 'img/glyphicons/glyphicons_195_circle_info.png" /> <span>' . __('Dev Mode Info', 'nhp-opts') . '</span></a>';

ctNHP_Options.class.php in magic https://github.com/alniko009/magic.git | 381 lines | PHP
  1. 						$icon = (!isset($section['icon'])) ? '<img src="' . $this->url . 'img/glyphicons/glyphicons_019_cogwheel.png" /> ' : '<img src="' . $section['icon'] . '" /> ';
  2. 						echo '<li id="' . $k . '_section_group_li" class="nhp-opts-group-tab-link-li">';
  3. 						echo '<a href="javascript:void(0);" id="' . $k . '_section_group_li_a" class="nhp-opts-group-tab-link-a" data-rel="' . $k . '">' . $icon . '<span>' . $section['title'] . '</span></a>';
  4. 
                        
  5. 				echo '<p><a href="javascript:void(0);" id="nhp-opts-import-code-button" class="button-secondary">Import from file</a> <a href="javascript:void(0);" id="nhp-opts-import-link-button" class="button-secondary">Import from URL</a></p>';
  6. 
                        
  7. 				echo '<div id="nhp-opts-import-link-wrapper">';
  8. 
                        
  9. 				echo '<p class="description" id="import-link-description">' . apply_filters('nhp-opts-import-link-description', __('Input the URL to another sites options set and hit Import to load the options from that site.', 'nhp-opts')) . '</p>';
  10. 
                        
  11. 				echo '<input type="text" id="import-link-value" name="' . $this->args['opt_name'] . '[import_link]" class="large-text" value="" />';
  12. 				echo '<div class="nhp-opts-section-desc">';
  13. 				echo '<p class="description">' . apply_filters('nhp-opts-backup-description', __('Here you can copy/download your themes current option settings. Keep this safe as you can use it as a backup should anything go wrong. Or you can use it to restore your settings on this site (or any other site). You also have the handy option to copy the link to yours sites settings. Which you can then use to duplicate on another site', 'nhp-opts')) . '</p>';
  14. 
                        
  15. 				echo '<p><a href="javascript:void(0);" id="nhp-opts-export-code-copy" class="button-secondary">Copy</a> <a href="' . add_query_arg(array('feed' => 'nhpopts-' . $this->args['opt_name'], 'action' => 'download_options', 'secret' => md5(AUTH_KEY . SECURE_AUTH_KEY)), site_url()) . '" id="nhp-opts-export-code-dl" class="button-primary">Download</a> <a href="javascript:void(0);" id="nhp-opts-export-link" class="button-secondary">Copy Link</a></p>';
  16. 				echo '</textarea>';
  17. 				echo '<input type="text" class="large-text" id="nhp-opts-export-link-value" value="' . add_query_arg(array('feed' => 'nhpopts-' . $this->args['opt_name'], 'secret' => md5(AUTH_KEY . SECURE_AUTH_KEY)), site_url()) . '" />';




builder.php in magic https://github.com/alniko009/magic.git | 1133 lines | PHP
  1. 	</div>
  2. 	<div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle">
  3. 		<a href="#screen-options-wrap" id="show-settings-link" class="show-settings">Screen Options</a>
  4. 					<td>
  5. 						<select name="easing" data-help="<?php _e('The timing function of the animation, with it you can manipualte the movement of the animated object. Please click on the link next to this select field to open easings.net for more information and real-time examples.', 'LayerSlider') ?>">
  6. 					<td>
  7. 						<select name="easing" data-help="<?php _e('The timing function of the animation, with it you can manipualte the movement of the animated object. Please click on the link next to this select field to open easings.net for more information and real-time examples.', 'LayerSlider') ?>">
  8. 					<td>
  9. 						<select name="easing" data-help="<?php _e('The timing function of the animation, with it you can manipualte the movement of the animated object. Please click on the link next to this select field to open easings.net for more information and real-time examples.', 'LayerSlider') ?>">
  10. 										<?php $tr['before']['easing'] = isset($tr['before']['easing']) ? $tr['before']['easing'] : 'easeInOutBack' ?>
  11. 										<select name="easing" data-help="<?php _e('The timing function of the animation, with it you can manipualte the movement of the animated object. Please click on the link next to this select field to open easings.net for more information and real-time examples.', 'LayerSlider') ?>">
  12. 										<?php $tr['after']['easing'] = isset($tr['after']['easing']) ? $tr['after']['easing'] : 'easeInOutBack' ?>
  13. 										<select name="easing" data-help="<?php _e('The timing function of the animation, with it you can manipualte the movement of the animated object. Please click on the link next to this select field to open easings.net for more information and real-time examples.', 'LayerSlider') ?>">
  14. 									<td>
  15. 										<select name="easing" data-help="<?php _e('The timing function of the animation, with it you can manipualte the movement of the animated object. Please click on the link next to this select field to open easings.net for more information and real-time examples.', 'LayerSlider') ?>">

ctTwitterShortcodeBase.class.php in magic https://github.com/alniko009/magic.git | 229 lines | PHP
  1. 	/**
  2. 	 * returns the follow link
  3. 	 */
  4. 	protected function getFollowLink($user){
  5. 					foreach ($tweetInfo['entities']['urls'] as $url) {
  6. 						$orgLink = $url['url'];
  7. 						$displayLink = $parseurl == 'display' ? $url['display_url'] : $orgLink;
  8. 						$content = str_replace($orgLink, '<a target="_blank" href="' . $orgLink . '">' . $displayLink . '</a>', $content);
  9. 					}
  10. 					foreach ($tweetInfo['entities']['media'] as $url) {
  11. 						$orgLink = $url['url'];
  12. 						$displayLink = $parsemedia == 'expanded' ? $url['expanded_url'] : ($parsemedia == 'display' ? $url['display_url'] : $orgLink);
  13. 	    $i = 0;
  14. 	    $simpleTags=array('br'=>true,'hr'=>true,'input'=>true,'image'=>true,'link'=>true,'meta'=>true);
  15. 			'parseurl' => array('label' => __('parse url', 'ct_theme'), 'default' => 'short', 'type' => 'select', 'choices' => array('plain' => __('plain text', 'ct_theme'), 'short' => __('short link', 'ct_theme'), 'display' => __('display link', 'ct_theme')), 'help' => __("You can display links from the content as plain text, short html links or full html links", 'ct_theme')),
  16. 			'parsemedia' => array('label' => __('parse media', 'ct_theme'), 'default' => 'short', 'type' => 'select', 'choices' => array('plain' => __('plain text', 'ct_theme'), 'short' => __('short link', 'ct_theme'), 'display' => __('display link', 'ct_theme'), 'expanded' => __('expanded link', 'ct_theme')), 'help' => __("You can display media links from the content as plain text or 3 types of html links", 'ct_theme')),
  17. 			'parseid' => array('label' => __('parse user id?', 'ct_theme'), 'default' => 'yes', 'type' => 'select', 'choices' => array('yes' => __('yes', 'ct_theme'), 'no' => __('no', 'ct_theme')), 'help' => __("Display user @ids as plain text or links", 'ct_theme')),


ctButtonShortcode.class.php in magic https://github.com/alniko009/magic.git | 104 lines | PHP
  1. 		$class = $class ? ' ' . $class : '';
  2. 		$link = $link ? ' href="' . $link . '"' : '';
  3. 		} else {
  4. 			$button = ' btn-link';
  5. 
                        
  6. 		$content = '<' . $tag . $id . $link . $width . ' class="' . apply_filters('theme_css_class', 'btn') . ' ' . $size . $color . $button . $class . '"' . $follow_tag . '>' . $leftIconHtml . trim($content) . $rightIconHtml . '</' . $tag . '>';
  7. 			'size' => array('label' => __('size', 'ct_theme'), 'default' => 'medium', 'type' => 'select', 'choices' => array('mini' => __('mini', 'ct_theme'), 'small' => __('small', 'ct_theme'), 'medium' => __('medium', 'ct_theme'), 'large' => __('large', 'ct_theme'), 'block' => __('block', 'ct_theme')), 'help' => __("Button size",'ct_theme')),
  8. 			'link' => array('label' => __('link', 'ct_theme'),'help' => __("ex. http://www.google.com",'ct_theme')),
  9. 			'color' => array('label' => __('color', 'ct_theme'),'default' => 'default', 'type' => "select", 'choices' => array('default' => __('Default','ct_theme'), 'inactive' => __('inactive', 'ct_theme'), 'inverse' => __('inverse', 'ct_theme'), 'info' => __('info', 'ct_theme'), 'success' => __('success', 'ct_theme'), 'warning' => __('warning', 'ct_theme'), 'danger' => __('danger', 'ct_theme'))),
  10. 			'icon' => array('label' => __('icon', 'ct_theme'),'type' => "icon", 'default' => '','link'=>CT_THEME_ASSETS.'/shortcode/awesome/index.html'),
  11. 			'iconplace' => array('label' => __('icon place', 'ct_theme'), 'default' => 'left', 'type' => 'select', 'choices' => array('left' => __('left', 'ct_theme'), 'right' => __('right', 'ct_theme'))),
  12. 			'button' => array('label' => __('is button', 'ct_theme'), 'default' => 'yes', 'type' => 'select', 'choices' => array('yes' => __('yes', 'ct_theme'), 'no' => __('no', 'ct_theme')), 'help' => __("Draw button or link",'ct_theme')),







Back to Top