当前位置: 首页>>代码示例>>PHP>>正文


PHP domain函数代码示例

本文整理汇总了PHP中domain函数的典型用法代码示例。如果您正苦于以下问题:PHP domain函数的具体用法?PHP domain怎么用?PHP domain使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了domain函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: baseaddress

function baseaddress()
{
    $www_required = www_required();
    if ($www_required) {
        $www = 'www.';
    } else {
        $www = '';
    }
    return 'http://' . $www . domain() . basepath();
}
开发者ID:laiello,项目名称:bz-owl,代码行数:10,代码来源:siteinfo.php

示例2: enhanceTweet

 public function enhanceTweet($tweet)
 {
     $imgs = array();
     $links = findURLs($tweet['text']);
     foreach ($links as $link => $l) {
         if (is_array($l) && array_key_exists("host", $l) && array_key_exists("path", $l)) {
             $domain = domain($l['host']);
             $imgid = imgid($l['path']);
             if ($imgid) {
                 if ($domain == "twitpic.com") {
                     $imgs[$link] = "http://twitpic.com/show/thumb/" . $imgid;
                 }
                 if ($domain == "yfrog.com" || $domain == "yfrog.us") {
                     $imgs[$link] = "http://yfrog.com/" . $imgid . ".th.jpg";
                 }
                 if ($domain == "tweetphoto.com" || $domain == "pic.gd" || $domain == "plixi.com") {
                     $imgs[$link] = "http://tweetphotoapi.com/api/TPAPI.svc/imagefromurl?size=thumbnail&url=" . $link;
                 }
                 if ($domain == "twitgoo.com") {
                     $values = simplexml_load_string(getURL("http://twitgoo.com/api/message/info/" . $imgid));
                     $imgs[$link] = (string) $values->thumburl;
                 }
                 if ($domain == "img.ly") {
                     $imgs[$link] = "http://img.ly/show/thumb/" . $imgid;
                 }
                 if ($domain == "pict.mobi") {
                     $imgs[$link] = "http://pict.mobi/show/thumb/" . $imgid;
                 }
                 if ($domain == "imgur.com") {
                     $imgs[$link] = "http://i.imgur.com/" . $imgid . "s.jpg";
                 }
                 if ($domain == "twitvid.com") {
                     $imgs[$link] = "http://images.twitvid.com/" . $imgid . ".jpg";
                 }
                 if ($domain == "instagr.am") {
                     $html = (string) getURL($link);
                     preg_match('/<meta property="og:image" content="[^"]+"\\/>/i', $html, $matches);
                     if (isset($matches[0])) {
                         $imgs[$link] = substr($matches[0], 35, -3);
                     }
                 }
             }
         }
     }
     if (count($imgs) > 0) {
         $tweet['extra']['imgs'] = $imgs;
     }
     return $tweet;
 }
开发者ID:JKLFA,项目名称:tweetnest,代码行数:49,代码来源:images.php

示例3: header_load

function header_load($doc = null)
{
  $id = '';
  $onload = '';
  if($doc != null) 
  {
    $timestamp = time();
    $id = $doc->getId();
    $sig = Vuzit_Service::signature("show", $doc->getId(), $timestamp, get("p"));
    $onload = "initialize()";
  }
?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
      <title>Vuzit <?php echo get("c") ?> Command Example</title>
      <link href="<?php echo Vuzit_Service::getServiceUrl(); ?>/stylesheets/Vuzit-2.9.css" 
            rel="Stylesheet" type="text/css" />
      <script src="<?php echo Vuzit_Service::getServiceUrl(); ?>/javascripts/Vuzit-2.9.js" 
              type="text/javascript"></script>
      <script type="text/javascript">
        // Called when the page is loaded.  
        function initialize()  {
          vuzit.Base.apiKeySet("<?php echo Vuzit_Service::getPublicKey(); ?>"); 
          vuzit.Base.webServerSet({ host: '<?php echo domain(); ?>', port: '80' });
          vuzit.Base.imageServerSet({ host: '<?php echo domain(); ?>', port: '80' });

          var options = { signature: '<?php echo rawurlencode($sig); ?>', 
                          <?php if(get("p") != null) { ?>
                          includedPages: '<?php echo get("p"); ?>', 
                          <?php } ?>
                          timestamp: '<?php echo $timestamp ?>'}
          var viewer = vuzit.Viewer.fromId("<?php echo $id; ?>", options);
          
          viewer.display(document.getElementById("vuzit_viewer"), { zoom: 1 });
        }
      </script>
    </head>

    <body onload="<?php echo $onload; ?>"> 

    <h2>Command: <?php echo get("c"); ?></h2>
<?php
}
开发者ID:hotgulabjamun,项目名称:vuzitphp,代码行数:46,代码来源:test.php

示例4: enhanceTweet

 public function enhanceTweet($tweet)
 {
     $imgs = array();
     $links = findURLs($tweet['text']);
     foreach ($links as $link => $l) {
         if (is_array($l) && array_key_exists("host", $l) && array_key_exists("path", $l)) {
             $domain = domain($l['host']);
             $imgid = imgid($l['path']);
             if ($imgid) {
                 if ($domain == "twitpic.com") {
                     $imgs[$link] = "http://twitpic.com/show/thumb/" . $imgid;
                 }
                 if ($domain == "yfrog.com") {
                     $imgs[$link] = "http://yfrog.com/" . $imgid . ".th.jpg";
                 }
                 if ($domain == "tweetphoto.com" || $domain == "pic.gd") {
                     $imgs[$link] = "http://tweetphotoapi.com/api/TPAPI.svc/imagefromurl?size=thumbnail&url=" . $link;
                 }
                 if ($domain == "twitgoo.com") {
                     $values = simplexml_load_string(getURL("http://twitgoo.com/api/message/info/" . $imgid));
                     $imgs[$link] = (string) $values->thumburl;
                 }
                 if ($domain == "img.ly") {
                     $imgs[$link] = "http://img.ly/show/thumb/" . $imgid;
                 }
                 if ($domain == "imgur.com") {
                     $imgs[$link] = "http://i.imgur.com/" . $imgid . "s.jpg";
                 }
                 if ($domain == "twitvid.com") {
                     $imgs[$link] = "http://images.twitvid.com/" . $imgid . ".jpg";
                 }
             }
         }
     }
     if (count($imgs) > 0) {
         $tweet['extra']['imgs'] = $imgs;
     }
     return $tweet;
 }
开发者ID:ngpestelos,项目名称:tweetnest,代码行数:39,代码来源:images.php

示例5: pb_og

function pb_og($call = null, $data = null)
{
    $openGraphPages = array('feed', 'products', 'questions', 'discussions', 'comments', 'tags', 'users', 'images', 'notify', 'smartsearch');
    $return = null;
    if ($call == 'token') {
        if ($data === null) {
            $data = OG_APP;
        }
        $data = explode(':', $data);
        $return = pb_graph_token($data[0], $data[1]);
    }
    if ($call == 'access_token') {
        $data = explode(':', $data);
        $token = pb_time('token:' . $data[0], array('expire' => $data[1], 'key' => md5($data[1])));
        $return = array('token' => $token, 'expire' => $data[1], 'key' => md5($data[1]));
    }
    if ($call == 'site') {
        $return = domain($data);
    }
    if (in_array($call, $openGraphPages)) {
        $return = pb_og_fgc($call, 'q=' . $data);
    }
    return $return;
}
开发者ID:JosephsPlace,项目名称:PccBay,代码行数:24,代码来源:_pb_og.php

示例6: create_user

 public function create_user($user_item, $config = array())
 {
     $timestamp = now();
     $config = array_merge(array('auto' => FALSE), $config);
     $auth = $this->auth_model->pass_gen($user_item['pass']);
     $email = array('email' => $user_item['email'], 'default' => 1, 'c_timestamp' => $timestamp);
     $language = $this->db->get_where('languages', array('code' => 'ENG'), 1)->row_array();
     $country = $this->db->get_where('countries', array('code' => 'GB'), 1)->row_array();
     $user = array('language_id' => $language['language_id'], 'country_id' => $country['country_id'], 'username' => $user_item['username'], 'timezone' => 'UTC', 'salt' => $auth['salt'], 'pass' => $auth['pass'], 'c_timestamp' => $timestamp);
     $color_hsl = color_hex_to_hsl(color_random_hex());
     $user['color_hex'] = color_hsl_to_hex($color_hsl['h'], $this->color_hsl['s'], $this->color_hsl['l']);
     if (isset($user_item['base_id'])) {
         $user['base_id'] = $user_item['base_item'];
     }
     if (isset($user_item['name'])) {
         $user['name'] = $user_item['name'];
     }
     if (isset($user_item['bio'])) {
         $user['bio'] = $user_item['bio'];
     }
     if (isset($user_item['location'])) {
         $user['location'] = $user_item['location'];
     }
     if (isset($user_item['site_url'])) {
         $user['site_url'] = $user_item['site_url'];
     }
     if (isset($user_item['media_loc'])) {
         $user['media_loc'] = $user_item['media_loc'];
     }
     if (isset($user_item['color_hex'])) {
         $user['color_hex'] = $user_item['color_hex'];
     }
     if (isset($user_item['status_count'])) {
         $user['status_count'] = $user_item['status_count'];
     }
     if (isset($user_item['following_count'])) {
         $user['following_count'] = $user_item['following_count'];
     }
     if (isset($user_item['followers_count'])) {
         $user['followers_count'] = $user_item['followers_count'];
     }
     if (isset($user_item['vote_count'])) {
         $user['vote_count'] = $user_item['vote_count'];
     }
     if (isset($user_item['base_timestamp'])) {
         $user['basetimestamp'] = $user_item['base_timestamp'];
     }
     if (isset($user_item['c_timestamp'])) {
         $user['c_timestamp'] = $user_item['c_timestamp'];
     }
     if (isset($user_item['u_timestamp'])) {
         $user['u_timestamp'] = $user_item['u_timestamp'];
     }
     $email_item = array('email' => $user_item['email']['email'], 'c_timestamp' => $timestamp);
     if (isset($user_item['email']['default'])) {
         $email_item['default'] = $user_item['email']['default'];
     }
     if (isset($user_item['email']['verified'])) {
         $email_item['verified'] = $user_item['email']['verified'];
     }
     $this->db->trans_start();
     $this->db->insert('users', $user);
     $user_id = $this->db->insert_id();
     $email_item['user_id'] = $user_id;
     $email_verification = $this->create_email($email_item);
     $this->db->trans_complete();
     if ($this->db->trans_status() === FALSE) {
         return FALSE;
     }
     if ($email_verification === TRUE) {
         return $user_id;
     }
     $this->email->to($email['email']);
     $this->email->from('blackhole@' . domain(base_url()), 'alt');
     $this->email->subject('You\'ve Signed Yourself Up!');
     $message = $this->load->view('email/templates/header', array(), TRUE);
     $message .= $this->load->view('email/auth/verify', array('name' => $user['username'], 'code' => $email_verification['code']), TRUE);
     $message .= $this->load->view('email/templates/footer', array(), TRUE);
     return $user_id;
 }
开发者ID:EpicKris,项目名称:alt,代码行数:80,代码来源:User_model.php

示例7: woocmmatl

function woocmmatl()
{
    global $wp_version;
    $address = $_SERVER['HTTP_HOST'];
    if (check_domainIP($address) == false) {
        $parsed_url = parse_url($address);
        $check = esip($parsed_url['host']);
        $host = $parsed_url['host'];
        if ($check == FALSE) {
            if ($host != "") {
                if (substr(domain($host), 0, 1) == '.') {
                    $host = str_replace('www.', '', substr(domain($host), 1));
                } else {
                    $host = str_replace('www.', '', domain($host));
                }
            } else {
                if (substr(domain($address), 0, 1) == '.') {
                    $host = str_replace('www.', '', substr(domain($address), 1));
                } else {
                    $host = str_replace('www.', '', domain($address));
                }
            }
        }
    } else {
        $host = $address;
    }
    $valuexg = get_option('wccmkelizn32aunique');
    if (strpos($_SERVER['REQUEST_URI'], 'License_check_slug') || strpos($_SERVER['REQUEST_URI'], 'woocommerce-checkout-manager-pro.php')) {
        if (substr($_SERVER['REMOTE_ADDR'], 0, 3) == "127" || $_SERVER['REMOTE_ADDR'] == "1" || $_SERVER['REMOTE_ADDR'] == "::1") {
            return true;
        } else {
            if (!empty($valuexg)) {
                $api_url = 'http://www.trottyzone.com/wp-content/plugins/wp-licensing/auth/verify.php';
                $request_string = array('body' => array('key' => $valuexg, 'domain' => $host, 'product' => 'woocommerce-checkout-manager-pro'), 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo('url'));
                $result['valid'] = 'true';
                if (is_wp_error($result)) {
                    update_option('errfafvetcgrt6434cwooccminfo15907833', 'connection_error');
                } else {
                    $result = json_decode($result, true);
                    if ($result['valid'] == 'true') {
                        update_option('errfafvetcgrt6434cwooccminfo15907833', 'clear');
                    } elseif ($result['info']['domain'] !== 'NA' && $result['valid'] == 'false') {
                        update_option('errfafvetcgrt6434cwooccminfo15907833', 'change_site');
                    } elseif ($result['info']['domain'] == 'NA') {
                        update_option('errfafvetcgrt6434cwooccminfo15907833', 'not_exsit');
                    }
                }
                if ($result['valid'] == 'true') {
                    return true;
                }
            }
        }
    }
    return false;
}
开发者ID:etondeengole,项目名称:Store_Application,代码行数:55,代码来源:dislawooccm.php

示例8: tournament_civicrm_navigationMenu

/**
 * Implements hook_civicrm_navigationMenu().
 *
 * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_navigationMenu
 */
function tournament_civicrm_navigationMenu(&$menu)
{
    $domain = array('domain' => domain());
    $path = path();
    $name = $path;
    // This inserts a menu at the end the bar. TODO: How to insert at beginning?
    _tournament_civix_insert_navigation_menu($menu, NULL, array('label' => ts('Tournament', $domain), 'name' => $name, 'url' => ''));
    $path = $name;
    $name = 'tournament_dashboard';
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Dashboard', $domain), 'name' => $name, 'url' => 'civicrm', 'permission' => 'access Contact Dashboard'));
    $name = 'individual_profile';
    $billing_contact = billing_contact_get();
    $billing_contact_id = $billing_contact["id"];
    $record = named_profile_get("Billing Individual Profile");
    $gid = $record["id"];
    $delim = '?';
    $HREF = contact_profile_HREF_data($billing_contact, $record, $delim);
    $label = $HREF['title'];
    $url = $HREF['relativeURL'];
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts($label, $domain), 'name' => $name, 'url' => $url, 'permission' => 'edit my contact'));
    $name = 'organization_profile';
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts("Organizations", $domain), 'name' => $name, 'url' => ''));
    $path .= "/{$name}";
    $profile = named_profile_get("Billing Organization Profile");
    $billing_organizations = billing_organizations_get($billing_contact_id);
    if (count($billing_organizations) > 0) {
        foreach ($billing_organizations as $org) {
            $HREF = contact_profile_HREF_data($org, $profile, $delim);
            $label = $HREF['title'];
            $url = $HREF['relativeURL'];
            _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts($label, $domain), 'name' => "{$name}_{$organization_name}", 'url' => $url, 'permission' => 'access contact reference fields'));
        }
    }
    $path = path();
    $name = 'Profiles';
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Your players, coaches, etc.', $domain), 'name' => $name, 'permission' => 'profile edit', 'separator' => 1));
    $path .= "/{$name}";
    // add a menu item for each of the session billing contact's profiles
    $registrationProfiles = get_registrationProfiles($billing_contact_id);
    if (count($registrationProfiles) > 0) {
        foreach ($registrationProfiles as $profile) {
            $id = $profile["id"];
            $title = $profile["title"];
            _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts("{$title}", array('domain' => $domain)), 'name' => "{$name}_{$id}", 'permission' => 'profile edit'));
            _tournament_civix_insert_navigation_menu($menu, "{$path}/{$name}_{$id}", array('label' => ts("Find Contacts", array('domain' => $domain)), 'name' => "{$name}_{$id}_list", 'url' => "civicrm/profile?gid={$id}&reset=1&force=1", 'permission' => 'profile edit'));
            _tournament_civix_insert_navigation_menu($menu, "{$path}/{$name}_{$id}", array('label' => ts("New Contact", array('domain' => $domain)), 'name' => "{$name}_{$id}_add", 'url' => "civicrm/profile/create?gid={$id}&reset=1", 'permission' => 'profile create'));
        }
    }
    $path = path();
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Register Contacts for Tournament', $domain), 'name' => 'registration', 'permission' => 'edit event participants', 'separator' => 1));
    _tournament_civix_insert_navigation_menu($menu, "{$path}/registration", array('label' => ts('Register a contact', $domain), 'name' => 'registerParticipant', 'url' => registrationRelativeURL("?"), 'permission' => 'edit event participants'));
    _tournament_civix_insert_navigation_menu($menu, "{$path}/registration", array('label' => ts('List/edit contacts already registered', $domain), 'name' => 'participantList', 'url' => registrationReportRelativeURL("?"), 'permission' => 'edit event participants'));
    $path = path();
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Team Builder', array('domain' => $domain)), 'name' => "teamBuilder", 'permission' => 'edit groups', 'separator' => 1));
    _tournament_civix_insert_navigation_menu($menu, "{$path}/teamBuilder", array('label' => ts('New Team', array('domain' => $domain)), 'name' => 'NewTeam', 'url' => "civicrm/tournament/team/add?reset=1", 'permission' => 'edit groups'));
    _tournament_civix_insert_navigation_menu($menu, "{$path}/teamBuilder", array('label' => ts('List/edit existing teams', array('domain' => $domain)), 'name' => 'teamList', 'url' => "civicrm/tournament/team/search", 'permission' => 'edit groups'));
    $path = path();
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Advanced Operations', $domain), 'name' => 'bulkOperations', 'permission' => 'edit event participants', 'url' => bulkOperationsRelativeURL("?"), 'separator' => 1));
    $path = null;
    $name = "TournamentAdmin";
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Tournament Admins', array('domain' => $domain)), 'name' => $name, 'permission' => 'edit all contacts'));
    $path = $name;
    $record = named_profile_get("Billing Organization Profile");
    $id = $record["id"];
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Billing Organizations', array('domain' => $domain)), 'name' => 'BillingOrganizations', 'url' => "civicrm/profile?gid={$id}", 'permission' => 'view all contacts'));
    $record = named_report_get("Preliminary Estimates Summary");
    $id = $record["id"];
    _tournament_civix_insert_navigation_menu($menu, "{$path}/BillingOrganizations", array('label' => ts('Preliminary Estimates', array('domain' => $domain)), 'name' => 'PreliminaryEstimates', 'url' => "civicrm/report/instance/{$id}?reset=1", 'permission' => 'view all contacts'));
    $record = named_group_get("Billing Contacts");
    $id = $record["id"];
    _tournament_civix_insert_navigation_menu($menu, $path, array('label' => ts('Billing Individuals', array('domain' => $domain)), 'name' => 'BillingContacts', 'url' => "civicrm/group/search?context=smog&gid={$id}&reset=1&force=1", 'permission' => 'view all contacts'));
    _tournament_civix_navigationMenu($menu);
}
开发者ID:agloa,项目名称:tournament,代码行数:78,代码来源:tournament.php

示例9: pb_isset

    print '
					<a href="#" class="transition-300 pb-flat-btn" id="MobMenu"><span></span></a>
					<a href="#" class="transition-300 pb-flat-btn" id="SearchBtn"><i class="glyphicon glyphicon-search"></i></a>
				';
    pb_isset(pb_isset_session('user_id'), '
						<a href="#" class="transition-300 pb-flat-btn" id="MyCardbtn" data-overHead="#MyCardBox"><i class="zmdi zmdi-card"></i></a>
						<a href="#" id="NewProductbtn" class="transition-300 pb-flat-btn" data-overHead="#NewProductBox"><i class="zmdi zmdi-plus-square"></i></a>
					');
}
?>
	
	</div>
	
	<div class="col-md-4">
	    <?php 
$siteTitle = domain('title');
pb_isset(pb_isset_session('user_id'), '
				<div class="input-group MainSearchBox transition-300">
			      <input type="text" class="form-control" placeholder="Search ' . $siteTitle . '" id="headerSearch">
			      <span class="input-group-btn">
			        <button class="btn" type="button"> <span class="glyphicon glyphicon-search"></span> </button>
			      </span>
			    </div>
				', '
				<a href="/includes/php/fbapp/login.php?inicode=' . PAGE_LOAD_CODE . '&ext=true&redirect_on_login=/" class="transition-300 pb-flat-btn" id="LogOnBtn"><i class="fa fa-facebook"></i> <b>Login with Facebook</b></a>
				<div class="input-group MainSearchBox transition-300">
			      <input type="text" class="form-control" placeholder="Search ' . $siteTitle . '" id="headerSearch">
			      <span class="input-group-btn">
			        <button class="btn" type="button"> <span class="glyphicon glyphicon-search"></span> </button>
			      </span>
			    </div>
开发者ID:JosephsPlace,项目名称:PccBay,代码行数:31,代码来源:header.php

示例10: pb_include

	</header>
	<?php 
pb_include('/MasterPages/MainMenu');
?>
	
	<!-- Begin Content -->
	<div class="container match-window-height">
		<div class="row">
			
			<div class="col-lg-10 col-lg-offset-1 pb-page-block" style="padding-bottom:20px;min-height:50px;">
				<br />				
				<form class="pb-main-search" autocomplete="off">
					<div class="pb-main-search-wrapper">
						<input type="hidden" name="" />
						<input type="text"   name="q" placeholder="Search <?php 
print domain('title');
?>
" />
						<div class="pb-main-search-submit">
							<input type="submit" name="s" value="" />
							<i class="zmdi zmdi-search"></i>
						</div>
					</div>
					<div class="pb-main-search-results"></div>
				</form>
	
			</div>
			
		</div>
	</div>
开发者ID:JosephsPlace,项目名称:PccBay,代码行数:30,代码来源:index.php

示例11: elseif

        if (empty($child)) {
            echo "</span></a></li>";
        } elseif (!empty($child) || $child != null) {
            echo "</span><span class='fa arrow  '></span></a>";
            echo "<ul class='nav nav-first-level'>";
            foreach ($child as $k => $v) {
                // echo "<li><a href='".$v['url']."'>".$v['title']."</a>";
                $grandchild = $this->menu_model->getchild($v['id']);
                echo "<li><a href='" . domain() . $v['module'] . "/" . $v['url'] . "'><span class='nav-label'>" . $v['title'];
                if (empty($grandchild)) {
                    echo "</span></a></li>";
                } elseif (!empty($grandchild) || $grandchild != null) {
                    echo "</span><span class='fa arrow  '></span></a>";
                    echo "<ul class='nav nav-second-level'>";
                    foreach ($grandchild as $kunci => $val) {
                        echo "<li><a href='#'   data-remote-target='#ajax-remote' data-load-remote='" . domain() . $val['module'] . "/" . $val['url'] . "/getdatatables'>" . $val['title'] . "</a>";
                    }
                    echo "</ul>";
                    echo "</li>";
                }
            }
            echo "</ul>";
            echo "</li>";
        }
    }
}
?>
                </ul>

            </div>
        </nav>
开发者ID:roniwahyu,项目名称:Sistem-Informasi-Peternakan,代码行数:31,代码来源:sidebar_manual_ok.php

示例12: elseif

                     echo "<li class='disabled'><a href='#' title='" . $v['title'] . "'>" . $v['title'];
                 }
             } else {
                 if ($isactive == '1') {
                     echo '<li><a class="" href="#" title="' . $v['title'] . '" data-load="' . $url3 . 'getdatatables" data-table="' . $url3 . 'tables" data-remote-target="#ajax-remote">' . $v['title'] . '</a>';
                 } else {
                     echo '<li class="disabled"><a class="" href="#" title="' . $v['title'] . '" data-load="' . $url3 . 'getdatatables" data-table="' . $url3 . 'tables" data-remote-target="#ajax-remote">' . $v['title'] . '</a>';
                 }
             }
             if (empty($grandchild)) {
                 echo "</a></li>";
             } elseif (!empty($grandchild) || $grandchild != null) {
                 echo "</a>";
                 echo "<ul class='nav nav-third-level'>";
                 foreach ($grandchild as $kunci => $val) {
                     $url = domain() . $val['module'] . "/" . $val['url'] . "/";
                     $isajax = $val['is_ajax_url'];
                     if ($isajax == '0') {
                         echo "<li><a href='" . $url . "' title='" . $val['title'] . "'>" . $val['title'] . "</a>";
                     } else {
                         echo '<li><a class="" title="' . $val['title'] . '" href="#" data-load="' . $url . 'getdatatables" data-table="' . $url . 'tables" data-remote-target="#ajax-remote">' . $val['title'] . '</a></li>';
                     }
                 }
                 echo "</ul>";
                 echo "</li>";
             }
         }
         echo "</ul>";
         echo "</li>";
     }
 }
开发者ID:roniwahyu,项目名称:Sistem-Informasi-Peternakan,代码行数:31,代码来源:sidebar.php

示例13: pb_addtocart

function pb_addtocart($item_id)
{
    return '/graph/addtocart?id=' . $item_id . '&accessToken=' . pb_og('token') . '&redirect=' . domain('actual_link');
}
开发者ID:JosephsPlace,项目名称:PccBay,代码行数:4,代码来源:commonFunctions.php

示例14: domain

" class="pull-right btn btn-xs btn-warning">Semua</a>
                </div>
                <div class="panel-body">
                    <?php 
$this->load->view('recording_ayam/aktivitas_recording');
?>
                </div>
            </div>
    </div>
    <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
            	
            <a class="" href="#modal-id" data-toggle="modal" data-load="<?php 
echo domain();
?>
farm/recording_pakan/getdatatables" data-table="<?php 
echo domain();
?>
farm/recording_pakan/tables" data-remote-target="#modal-id .modal-body">
           
                <div class="widget style1 blue-bg">
                        <div class="row">
                            <div class="col-xs-12 text-center">
                            <!-- <i class="fa fa-cubes fa-5x"></i> -->
                            <img src="<?php 
echo assets_url();
?>
/images/Barley-64.png">
                            </div>
                            <div class="col-xs-12 text-center">
                                <span>Feeds</span>
                                <h3 class="font-bold">Recording Pakan</h3>
开发者ID:roniwahyu,项目名称:Sistem-Informasi-Peternakan,代码行数:31,代码来源:dashboard_widget.php

示例15: loggedClass

<footer class="<?php 
loggedClass('col-md-9', 'col-md-12');
?>
">
	<div style="float: left;">
		<a href="/privacypolicy">Privacy Policy</a> |
		<a href="/faq">FAQ's</a> |
		<a href="/services">Services</a> |
		<a href="/downloads">Downloads</a> |
		<a href="/s">Search</a>
	</div>
	&copy; copyright <?php 
print date('Y');
?>
, <?php 
print domain('title');
?>
 All rights reserved.
	<br />
	<small><em style="font-size:8px"><?php 
print domain('domain');
?>
 is not associated with or managed by Pensacola Christian College</em></small>
	<!-- <br /><em>Secure data is not stored localy</em> --> 
</footer>
开发者ID:JosephsPlace,项目名称:PccBay,代码行数:25,代码来源:footer-partWidth.php


注:本文中的domain函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。